* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #1f3e32;
  background: #f4f7f5;
}

body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      #eef6f1 0,
      #f7f9f8 280px
    );
}

button,
input,
select {
  font: inherit;
}

.app {
  max-width: 1500px;

  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;

  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 15px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #135c3c,
      #2d9a67
    );

  box-shadow:
    0 10px 25px
    rgba(23,96,63,.20);

  font-size: 15px;
  font-weight: 900;
}

.brand h1 {
  margin: 0;

  color: #173c2e;

  font-size: 23px;
  letter-spacing: -.4px;
}

.brand p {
  margin: 3px 0 0;

  color: #789086;

  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;

  gap: 12px;
}

.updated {
  color: #83958e;

  font-size: 11px;
}

.refresh {
  padding: 10px 14px;

  border:
    1px solid #d4e2da;

  border-radius: 11px;

  background: #fff;
  color: #23533f;

  font-weight: 750;

  cursor: pointer;
}

.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 12px;

  margin-bottom: 18px;
}

.metric {
  padding: 17px;

  border:
    1px solid #dfe9e3;

  border-radius: 17px;

  background: rgba(
    255,
    255,
    255,
    .92
  );

  box-shadow:
    0 8px 24px
    rgba(29,76,55,.05);
}

.metric.primary {
  color: white;

  border-color: transparent;

  background:
    linear-gradient(
      135deg,
      #155f40,
      #25885c
    );
}

.metric span {
  display: block;

  color: #80948a;

  font-size: 10px;
  font-weight: 750;

  text-transform: uppercase;
  letter-spacing: .6px;
}

.metric.primary span {
  color:
    rgba(255,255,255,.75);
}

.metric strong {
  display: block;

  margin-top: 8px;

  color: #193f30;

  font-size: 25px;
}

.metric.primary strong {
  color: white;
}

.metric small {
  display: block;

  margin-top: 4px;

  color: #91a39a;

  font-size: 10px;
}

.metric.primary small {
  color:
    rgba(255,255,255,.70);
}

.panel {
  overflow: hidden;

  border:
    1px solid #dee8e2;

  border-radius: 19px;

  background: #fff;

  box-shadow:
    0 10px 28px
    rgba(27,72,52,.05);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 19px 20px;

  border-bottom:
    1px solid #edf1ef;
}

.panel-header.compact {
  padding-bottom: 14px;
}

.panel-header h2 {
  margin: 0;

  color: #1e4938;

  font-size: 16px;
}

.panel-header p {
  margin: 4px 0 0;

  color: #899a92;

  font-size: 11px;
}

.legend {
  display: flex;

  gap: 13px;

  color: #70867c;

  font-size: 10px;
}

.dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 4px;

  border-radius: 50%;
}

.dot.live {
  background: #1b9c5c;
}

.dot.offline {
  background: #a9b5af;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;

  border-collapse: collapse;
}

th {
  padding: 11px 14px;

  color: #84958d;
  background: #f8faf9;

  text-align: left;

  font-size: 9px;
  font-weight: 850;

  text-transform: uppercase;
  letter-spacing: .4px;

  white-space: nowrap;
}

td {
  padding: 14px;

  border-top:
    1px solid #eef2ef;

  color: #3b594d;

  font-size: 11px;

  white-space: nowrap;
}

.seller-name strong {
  display: block;

  color: #1e4938;

  font-size: 12px;
}

.seller-name span {
  display: block;

  margin-top: 3px;

  color: #91a097;

  font-size: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding: 5px 8px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 850;
}

.badge.live {
  color: #087847;
  background: #e4f6eb;
}

.badge.offline {
  color: #71827a;
  background: #edf1ef;
}

.badge.pending {
  color: #a3630a;
  background: #fff3dd;
}

.badge.completed {
  color: #087847;
  background: #e4f6eb;
}

.money {
  color: #116242;
  font-weight: 850;
}

.stock-value {
  font-weight: 800;
}

.map-link {
  color: #187451;

  font-size: 10px;
  font-weight: 750;

  text-decoration: none;
}

.lower-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 16px;

  margin-top: 16px;
}

.payment-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;

  padding: 17px;
}

.payment-item,
.stock-item {
  padding: 14px;

  border:
    1px solid #e2ebe6;

  border-radius: 13px;

  background: #fbfdfc;
}

.payment-item span,
.stock-item span {
  display: block;

  color: #83958d;

  font-size: 10px;
}

.payment-item strong,
.stock-item strong {
  display: block;

  margin-top: 5px;

  color: #194732;

  font-size: 18px;
}

.stock-control {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;

  padding: 17px;
}

.empty-row {
  padding: 30px;

  color: #899a92;

  text-align: center;
}

@media (
  max-width: 1100px
) {

  .summary-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .payment-grid,
  .stock-control {
    grid-template-columns:
      repeat(2, 1fr);
  }
}

@media (
  max-width: 700px
) {

  .app {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .lower-grid {
    grid-template-columns:
      1fr;
  }
}

.admin-user {
  padding: 7px 10px;
  border-radius: 9px;
  background: #eaf5ee;
  color: #17603f;
  font-size: 11px;
  font-weight: 800;
}

.logout {
  padding: 10px 14px;
  border: 1px solid #e5d4d4;
  border-radius: 11px;
  background: white;
  color: #8b3b3b;
  font-weight: 750;
  cursor: pointer;
}

.seller-detail-btn {
  padding: 7px 11px !important;

  border:
    1px solid #bad8c8 !important;

  border-radius: 8px !important;

  background:
    #eef8f2 !important;

  color:
    #176142 !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  cursor: pointer !important;
}

.seller-detail-btn:hover {
  background:
    #dff1e7 !important;
}

.seller-location-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 24px;
}

.seller-location-box strong {
  display: block;

  color: #147448;

  font-size: 12px;
}

.seller-location-box span {
  display: block;

  margin-top: 6px;

  color: #536f62;

  font-size: 11px;
}

.seller-location-box small {
  display: block;

  margin-top: 6px;

  color: #8a9b93;

  font-size: 9px;
}

.seller-location-box a {
  padding: 8px 11px;

  border-radius: 9px;

  background: #eaf6ef;

  color: #176344;

  font-size: 10px;

  font-weight: 800;

  text-decoration: none;
}

.seller-detail-btn {
    min-width: 88px !important;

    padding: 7px 11px !important;

    border:
        1px solid #c9dfd3 !important;

    border-radius: 9px !important;

    background:
        #edf7f1 !important;

    color:
        #176043 !important;

    font-size:
        9px !important;

    font-weight:
        850 !important;

    cursor: pointer !important;

    box-shadow: none !important;
}

.seller-detail-btn:hover {
    border-color:
        #9fcab4 !important;

    background:
        #dff1e7 !important;
}
