



























































































































































































































































































/* ==================== MI CSS VARIABLES ==================== */
:root,
[data-theme="light"] {
  --mi-card-bg: #ffffff;
  --mi-card-border: #e4eaf0;
  --mi-card-shadow: rgba(0, 0, 0, 0.05);
  --mi-card-shadow-hover: rgba(10, 74, 140, 0.1);
  --omak-gold: #F5A623;
  --omak-gold-light: rgba(245, 166, 35, 0.10);
  --omak-gold-border: rgba(245, 166, 35, 0.30);
  --mi-page-title: #1a1a2e;
  --mi-page-subtitle: #6b7280;

  --mi-section-header-color: #0a4a8c;
  --mi-section-divider: #e8ecf2;

  --mi-sec-bg: #f8fafc;
  --mi-sec-border: #e8ecf2;
  --mi-sec-title-color: #0a4a8c;

  --mi-field-label: #374151;
  --mi-field-input-bg: #ffffff;
  --mi-field-input-border: #e0e7ef;
  --mi-field-input-color: #333;
  --mi-field-input-focus-border: #0a4a8c;
  --mi-field-input-focus-shadow: rgba(10, 74, 140, 0.1);

  --mi-filter-btn-bg: #f1f5f9;
  --mi-filter-btn-color: #374151;
  --mi-filter-btn-border: #e0e7ef;
  --mi-filter-btn-hover-bg: #e2e8f0;
  --mi-filter-btn-hover-border: #0a4a8c;
  --mi-filter-btn-hover-color: #0a4a8c;
  --mi-filter-btn-hover-shadow: rgba(10, 74, 140, 0.12);

  --mi-stat-subtitle-color: #9ca3af;

  --mi-item-bg: #f8fafc;
  --mi-item-border: #e8ecf2;
  --mi-item-hover-bg: #eef4fb;
  --mi-item-hover-border: #c5d8f0;
  --mi-item-name-color: #1a1a2e;
  --mi-item-value-color: #0a4a8c;

  --mi-spinner-border: #c5d8f0;

  --mi-radio-label-color: #374151;
  --mi-vertical-divider-bg: #e4eaf0;

  --mi-no-perm-title: #1a1a2e;
  --mi-no-perm-desc: #6b7280;

  /* Table */
  --mi-table-header-bg: #f1f5f9;
  --mi-table-header-color: #374151;
  --mi-table-border: #e4eaf0;
  --mi-table-row-hover: #eef4fb;
  --mi-table-cell-color: #1a1a2e;

  /* Badge */
  --mi-badge-bg: #dbeafe;
  --mi-badge-color: #1e40af;
  --mi-badge-border: #bfdbfe;
}
[data-theme="dark"] {
  --mi-card-bg: #16213e;
  --mi-card-border: #2d3748;
  --mi-card-shadow: rgba(0, 0, 0, 0.25);
  --mi-card-shadow-hover: rgba(90, 173, 255, 0.12);
  --omak-gold: #FFB830;
  --omak-gold-light: rgba(255, 184, 48, 0.10);
  --omak-gold-border: rgba(255, 184, 48, 0.28);
  --mi-page-title: #e2e8f0;
  --mi-page-subtitle: #a0aec0;

  --mi-section-header-color: #e2e8f0;
  --mi-section-divider: #2d3748;

  --mi-sec-bg: #1a2744;
  --mi-sec-border: #2d3748;
  --mi-sec-title-color: #93c5fd;

  --mi-field-label: #cbd5e0;
  --mi-field-input-bg: #1a2744;
  --mi-field-input-border: #3a4a6b;
  --mi-field-input-color: #e2e8f0;
  --mi-field-input-focus-border: #5aadff;
  --mi-field-input-focus-shadow: rgba(90, 173, 255, 0.15);

  --mi-filter-btn-bg: #1a2744;
  --mi-filter-btn-color: #cbd5e0;
  --mi-filter-btn-border: #3a4a6b;
  --mi-filter-btn-hover-bg: #243358;
  --mi-filter-btn-hover-border: #5aadff;
  --mi-filter-btn-hover-color: #5aadff;
  --mi-filter-btn-hover-shadow: rgba(90, 173, 255, 0.15);

  --mi-stat-subtitle-color: #718096;

  --mi-item-bg: #1a2744;
  --mi-item-border: #2d3748;
  --mi-item-hover-bg: #243358;
  --mi-item-hover-border: #3a4a6b;
  --mi-item-name-color: #e2e8f0;
  --mi-item-value-color: #5aadff;

  --mi-spinner-border: #2d3748;

  --mi-radio-label-color: #cbd5e0;
  --mi-vertical-divider-bg: #2d3748;

  --mi-no-perm-title: #e2e8f0;
  --mi-no-perm-desc: #a0aec0;

  /* Table dark */
  --mi-table-header-bg: #1a2744;
  --mi-table-header-color: #cbd5e0;
  --mi-table-border: #2d3748;
  --mi-table-row-hover: #243358;
  --mi-table-cell-color: #e2e8f0;

  /* Badge dark */
  --mi-badge-bg: #1e3a5f;
  --mi-badge-color: #93c5fd;
  --mi-badge-border: #2a4a7f;
}

/* ==================== PAGE ENTRANCE ANIMATIONS ==================== */
.page-header {
  -webkit-animation: mi-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: mi-fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  -webkit-animation-delay: 0.05s;
          animation-delay: 0.05s;
}
.mi-form-card:nth-of-type(1) {
  -webkit-animation: mi-fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: mi-fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  -webkit-animation-delay: 0.10s;
          animation-delay: 0.10s;
}
.mi-form-card:nth-of-type(2) {
  -webkit-animation: mi-fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: mi-fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  -webkit-animation-delay: 0.18s;
          animation-delay: 0.18s;
}
.mi-promo-row {
  -webkit-animation: mi-fadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation: mi-fadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mi-promo-row:nth-child(1) {
  -webkit-animation-delay: 0.10s;
          animation-delay: 0.10s;
}
.mi-promo-row:nth-child(2) {
  -webkit-animation-delay: 0.14s;
          animation-delay: 0.14s;
}
.mi-promo-row:nth-child(3) {
  -webkit-animation-delay: 0.18s;
          animation-delay: 0.18s;
}
.mi-promo-row:nth-child(4) {
  -webkit-animation-delay: 0.22s;
          animation-delay: 0.22s;
}
.mi-promo-row:nth-child(5) {
  -webkit-animation-delay: 0.26s;
          animation-delay: 0.26s;
}
.mi-promo-row:nth-child(6) {
  -webkit-animation-delay: 0.30s;
          animation-delay: 0.30s;
}
.mi-promo-row:nth-child(7) {
  -webkit-animation-delay: 0.34s;
          animation-delay: 0.34s;
}
.mi-promo-row:nth-child(8) {
  -webkit-animation-delay: 0.38s;
          animation-delay: 0.38s;
}
.mi-promo-row:nth-child(n+9) {
  -webkit-animation-delay: 0.40s;
          animation-delay: 0.40s;
}
@-webkit-keyframes mi-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes mi-fadeSlideUp {
from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@-webkit-keyframes mi-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}
@keyframes mi-fadeSlideDown {
from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
}
to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 20px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mi-page-title);
  margin: 0 0 4px 0;
  border-left: 4px solid var(--omak-gold);
  padding-left: 10px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--mi-page-subtitle);
  margin: 0;
  padding-left: 14px;
}

/* ==================== FORM CARD (outer wrapper, matches viw-card) ==================== */
.mi-form-card {
  background: var(--mi-card-bg);
  border-radius: 6px;
  border: 1px solid var(--mi-card-border);
  -webkit-box-shadow: 0 2px 12px var(--mi-card-shadow);
          box-shadow: 0 2px 12px var(--mi-card-shadow);
  padding: 20px 22px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-bottom: 20px;
  position: relative;
}

/* ==================== SECTION BLOCK (boxed sub-section, matches vsec-block) ==================== */
.mi-sec-block {
  background: var(--mi-sec-bg);
  border: 1px solid var(--mi-sec-border);
  border-radius: 6px;
  padding: 14px 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.mi-sec-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mi-sec-title-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mi-sec-border);
}

/* ==================== BREADCRUMB ==================== */
.mi-breadcrumb-trail {
  font-size: 12px;
  font-weight: 700;
  color: var(--omak-gold);
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  background: var(--omak-gold-light);
  border: 1px solid var(--omak-gold-border);
  padding: 2px 9px;
  border-radius: 20px;
}

/* ==================== FIELD INPUT ==================== */
.mi-field-input {
  border: 1.5px solid var(--mi-field-input-border) !important;
  border-radius: 4px !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  color: var(--mi-field-input-color) !important;
  background: var(--mi-field-input-bg) !important;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s !important;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s !important;
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
}
.mi-field-input:focus {
  border-color: var(--mi-field-input-focus-border) !important;
  -webkit-box-shadow: 0 0 0 3px var(--mi-field-input-focus-shadow) !important;
          box-shadow: 0 0 0 3px var(--mi-field-input-focus-shadow) !important;
  outline: none !important;
}
.mi-field-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==================== RADIO LABEL ==================== */
.mi-radio-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mi-radio-label-color);
  cursor: pointer;
  white-space: nowrap;
}

/* ==================== ARCHIVE ICON BUTTON ==================== */
.um-btn-archive {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--mi-filter-btn-bg);
  color: var(--mi-filter-btn-color);
  border: 1.5px solid var(--mi-filter-btn-border);
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.um-btn-archive:hover {
  background: var(--mi-filter-btn-hover-bg);
  border-color: var(--mi-filter-btn-hover-border);
  color: var(--mi-filter-btn-hover-color);
}
.um-btn-archive--active {
  background: #0a4a8c !important;
  color: #fff !important;
  border-color: #0a4a8c !important;
}
.archived-icon {
  color: darkgray;
  cursor: pointer;
}

/* ==================== ACTION BUTTONS ==================== */
.mi-btn-action {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
}
.mi-btn-submit {
  background: #0a4a8c;
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
          box-shadow: 0 2px 8px rgba(10, 74, 140, 0.25);
}
.mi-btn-submit:hover:not(:disabled) {
  background: #073a70;
  -webkit-box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
          box-shadow: 0 4px 14px rgba(10, 74, 140, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.mi-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.mi-btn-edit {
  background: var(--mi-item-hover-bg);
  color: #0a4a8c;
  border: 1.5px solid var(--mi-item-hover-border) !important;
  font-size: 12px;
  padding: 0 14px;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
.mi-btn-edit:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd !important;
  color: #1e40af;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 3px 8px rgba(10, 74, 140, 0.18);
          box-shadow: 0 3px 8px rgba(10, 74, 140, 0.18);
}
.mi-btn-edit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[data-theme="dark"] .mi-btn-edit {
  background: #1a2744;
  color: #5aadff;
  border-color: #2a3f5f !important;
}
[data-theme="dark"] .mi-btn-edit:hover:not(:disabled) {
  background: #243358;
  border-color: #5aadff !important;
  color: #93c5fd;
}

/* ==================== FILTER PILL TOGGLE ==================== */
.mi-filter-pill-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: var(--mi-filter-btn-bg);
  border: 1.5px solid var(--mi-filter-btn-border);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.mi-filter-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 30px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mi-filter-btn-color);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  margin-bottom: 0;
}
.mi-filter-pill:hover:not(.mi-filter-pill--active) {
  background: var(--mi-filter-btn-hover-bg);
  color: var(--mi-filter-btn-hover-color);
}
.mi-filter-pill--active {
  background: #0a4a8c;
  color: #ffffff;
  -webkit-box-shadow: 0 2px 8px rgba(10, 74, 140, 0.28);
          box-shadow: 0 2px 8px rgba(10, 74, 140, 0.28);
}
[data-theme="dark"] .mi-filter-pill--active {
  background: #1a5fa8;
  color: #e0f0ff;
  -webkit-box-shadow: 0 2px 8px rgba(90, 173, 255, 0.2);
          box-shadow: 0 2px 8px rgba(90, 173, 255, 0.2);
}

/* ==================== FILTER SEARCH WRAP ==================== */
.mi-filter-search-wrap {
  position: relative;
  max-width: 240px;
  width: 100%;
}
.mi-filter-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--mi-stat-subtitle-color);
  pointer-events: none;
}

/* ==================== PROMOTION TABLE ==================== */
.mi-promo-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid var(--mi-table-border);
}
.mi-promo-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
  background: var(--mi-card-bg);
}
.mi-promo-table thead tr {
  background: var(--mi-table-header-bg);
}
.mi-promo-table thead th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mi-table-header-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid var(--mi-table-border);
  white-space: nowrap;
  text-align: left;
}
.mi-promo-table thead th:nth-child(1),
.mi-promo-table tbody td:nth-child(1) {
  width: 22%;
}
.mi-promo-table thead th:nth-child(2),
.mi-promo-table tbody td:nth-child(2) {
  width: 14%;
}
.mi-promo-table thead th:nth-child(3),
.mi-promo-table tbody td:nth-child(3) {
  width: 18%;
}
.mi-promo-table thead th:nth-child(4),
.mi-promo-table tbody td:nth-child(4) {
  width: 14%;
}
.mi-promo-table thead th:nth-child(5),
.mi-promo-table tbody td:nth-child(5) {
  width: 14%;
}
.mi-promo-table thead th:nth-child(6),
.mi-promo-table tbody td:nth-child(6) {
  width: 110px;
  position: sticky;
  right: 0;
  background: var(--mi-card-bg);
  -webkit-box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.08);
          box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.08);
}
.mi-promo-table thead th:nth-child(6) {
  background: var(--mi-table-header-bg);
  z-index: 2;
}
.mi-promo-table tbody td:nth-child(6) {
  z-index: 1;
}
.mi-promo-table tbody tr:hover td:nth-child(6) {
  background: var(--mi-table-row-hover);
}
.mi-promo-table tbody tr {
  border-bottom: 1px solid var(--mi-table-border);
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.mi-promo-table tbody tr:last-child {
  border-bottom: none;
}
.mi-promo-table tbody tr:hover {
  background: var(--mi-table-row-hover);
}
.mi-promo-table tbody td {
  padding: 13px 16px;
  color: var(--mi-table-cell-color);
  vertical-align: middle;
  overflow: hidden;
}
.mi-cell-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
.mi-promo-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--mi-item-name-color);
}
.mi-promo-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--mi-badge-bg);
  color: var(--mi-badge-color);
  border: 1px solid var(--mi-badge-border);
  max-width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
}
.mi-promo-desc {
  font-size: 11.5px;
  color: var(--mi-stat-subtitle-color);
  opacity: 0.85;
}
.mi-promo-date {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mi-item-value-color);
  white-space: nowrap;
}
.mi-promo-empty {
  font-size: 13px;
  color: var(--mi-stat-subtitle-color);
  opacity: 0.5;
}

/* ==================== NO PERMISSION ==================== */
.mi-no-permission {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.mi-no-perm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mi-no-perm-title);
  margin: 0 0 8px 0;
}
.mi-no-perm-desc {
  font-size: 14px;
  color: var(--mi-no-perm-desc);
  margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
.mi-form-card {
    padding: 16px 14px;
}
}
@media (max-width: 600px) {
.page-header>div {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-align: start !important;
        -ms-flex-align: start !important;
            align-items: flex-start !important;
    gap: 12px;
}
}

