/* =========================================================
   RK FARM ADMIN
   SUPPLIER MASTER — PREMIUM ENTERPRISE UI
   ========================================================= */

.rk-sup-page-title {
  margin: 0 !important;
  font-size: 29px !important;
  font-weight: 800 !important;
  letter-spacing: -.6px;
  color: #093e30 !important;
}

.rk-sup-subtitle {
  margin: 7px 0 25px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #6d8178 !important;
}


/* KPI CARDS */

.rk-sup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.rk-sup-stat {
  position: relative;
  min-height: 140px;
  padding: 21px 22px;
  overflow: hidden;

  border: 1px solid #d8e5df;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fcfa
    );

  box-shadow:
    0 12px 30px
    rgba(17,69,50,.065);
}

.rk-sup-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;

  background:
    linear-gradient(
      180deg,
      #0a7d5a,
      #16a474
    );
}

.rk-sup-stat-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #657a70;
}

.rk-sup-stat-value {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
  color: #083f31;
}

.rk-sup-stat-note {
  margin-top: 10px;
  font-size: 12px;
  color: #819188;
}


/* TOOLBAR */

.rk-sup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 18px;
}

.rk-sup-search {
  width: min(420px, 100%);
  min-height: 46px;

  padding: 0 15px;

  border: 1px solid #ceddd6;
  border-radius: 10px;

  background: #fff;

  font-size: 14px;
  color: #183e33;

  box-shadow:
    0 2px 7px
    rgba(18,71,51,.04);
}

.rk-sup-search:focus {
  outline: none;
  border-color: #168160;

  box-shadow:
    0 0 0 4px
    rgba(20,130,96,.10);
}


/* TABLE */

.rk-sup-table-card {
  overflow: hidden;

  border: 1px solid #d8e5df;
  border-radius: 17px;

  background: #fff;

  box-shadow:
    0 14px 38px
    rgba(15,65,48,.075);
}

.rk-sup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rk-sup-table th {
  height: 58px;
  padding: 0 17px;

  border-bottom: 1px solid #dce7e1;

  background:
    linear-gradient(
      180deg,
      #f8fbf9,
      #f3f8f5
    );

  text-align: left;

  font-size: 11px;
  font-weight: 850;
  letter-spacing: .6px;
  text-transform: uppercase;

  color: #64786f;
  white-space: nowrap;
}

.rk-sup-table td {
  padding: 18px 17px;

  border-bottom: 1px solid #edf2ef;

  vertical-align: middle;

  font-size: 13px;
  line-height: 1.5;

  color: #27483e;
}

.rk-sup-table tbody tr:hover {
  background: #f9fcfa;
}

.rk-sup-table tbody tr:last-child td {
  border-bottom: 0;
}

.rk-sup-name strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #093f31;
}

.rk-sup-name span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #74877e;
}


/* BADGES */

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

  min-height: 29px;

  padding: 5px 10px;

  border-radius: 999px;

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

.rk-sup-badge.active {
  background: #e6f7ee;
  color: #08724f;
}

.rk-sup-badge.inactive {
  background: #f0f2f1;
  color: #66766f;
}

.rk-sup-badge.suspended {
  background: #fff0f0;
  color: #a44242;
}

.rk-sup-type {
  display: inline-flex;

  padding: 6px 10px;

  border: 1px solid #d8e5df;
  border-radius: 8px;

  background: #f7faf8;

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

  color: #426259;
}


/* ACTIONS */

.rk-sup-actions {
  display: flex;
  gap: 7px;
}

.rk-sup-button {
  min-height: 37px;

  padding: 0 13px;

  border: 1px solid #cadbd3;
  border-radius: 9px;

  background: #fff;

  font-size: 11px;
  font-weight: 800;

  color: #174c3c;

  cursor: pointer;
}

.rk-sup-button.primary {
  border-color: #086d50;

  background:
    linear-gradient(
      135deg,
      #0b7958,
      #076248
    );

  color: #fff;
}


/* MODAL */

.rk-sup-modal {
  width: min(900px, 94vw) !important;
  max-height: 91vh !important;

  overflow-y: auto !important;

  border-radius: 20px !important;

  box-shadow:
    0 35px 90px
    rgba(0,0,0,.30) !important;
}

.rk-sup-modal .rk-sm-modal-head h3 {
  font-size: 23px !important;
  font-weight: 800 !important;
  color: #093e30 !important;
}

.rk-sup-section {
  margin-bottom: 23px;
  padding: 22px;

  border: 1px solid #dce8e2;
  border-radius: 14px;

  background: #fbfdfc;
}

.rk-sup-section h4 {
  margin: 0 0 17px;

  font-size: 15px;
  font-weight: 800;

  color: #0a4233;
}

.rk-sup-empty {
  padding: 50px 20px;
  text-align: center;

  font-size: 14px;

  color: #71847b;
}


@media (max-width: 1250px) {
  .rk-sup-summary {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .rk-sup-summary {
    grid-template-columns: 1fr;
  }

  .rk-sup-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rk-sup-search {
    width: 100%;
  }
}
