
  /* ---------- wrapper ---------- */
  .ss-wrap {
    position: relative;
    width: 320px;
  }

  /* hidden native select — keeps the value in the form */
  .ss-wrap select {
    display: none;
  }

  /* ---------- trigger button ---------- */
  .ss-trigger {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0.5px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #fff;
    color: #1a1a18;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
  }
  .ss-trigger:hover  { border-color: rgba(0,0,0,0.4); }
  .ss-trigger.open   { border-color: rgba(0,0,0,0.4); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

  .ss-trigger-label.placeholder { color: #888780; }

  .ss-trigger-right { display: flex; align-items: center; gap: 6px; }

  .ss-clear {
    font-size: 13px;
    color: #888780;
    cursor: pointer;
    display: none;
    padding: 2px 4px;
    line-height: 1;
  }
  .ss-clear:hover { color: #1a1a18; }

  .ss-chevron {
    font-size: 11px;
    color: #888780;
    transition: transform .15s;
  }
  .ss-trigger.open .ss-chevron { transform: rotate(180deg); }

  /* ---------- dropdown ---------- */
  .ss-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.4);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
  }
  .ss-dropdown.open { display: block; }

  /* ---------- search input ---------- */
  .ss-search-wrap {
    padding: 8px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
  }
  .ss-search {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    border: 0.5px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    background: #f5f4f0;
    color: #1a1a18;
    font-size: 13px;
    outline: none;
  }
  .ss-search:focus {
    border-color: rgba(0,0,0,0.35);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
  }

  /* ---------- list ---------- */
  .ss-list {
    max-height: 200px;
    overflow-y: auto;
  }
  .ss-opt {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a18;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ss-opt:hover    { background: #f5f4f0; }
  .ss-opt.selected { background: #f5f4f0; font-weight: 500; }
  .ss-opt.selected .ss-tick { display: inline; }
  .ss-tick { display: none; font-size: 12px; color: #888780; }

  .ss-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f0eeea;
    color: #5f5e5a;
    border: 0.5px solid rgba(0,0,0,0.1);
    margin-left: 8px;
  }

  .ss-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #888780;
    font-style: italic;
  }

  /* ---------- demo form ---------- */
  label.field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5e5a;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .submit-btn {
    margin-top: 16px;
    height: 36px;
    padding: 0 20px;
    border: 0.5px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    background: transparent;
    color: #1a1a18;
    font-size: 14px;
    cursor: pointer;
  }
  .submit-btn:hover { background: rgba(0,0,0,0.04); }

  .result {
    margin-top: 12px;
    padding: 10px 14px;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #f5f4f0;
    font-size: 13px;
    color: #5f5e5a;
  }
  .result strong { color: #1a1a18; }


/* ======================================================================
   KADA SALES — SHARED UI STYLES
   Consolidated from per-view <style> blocks to eliminate repetition.
   Loaded globally via user.php layout.
   ====================================================================== */


/* ------------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------------ */
.app-main__inner { padding: 5px !important; }


/* ------------------------------------------------------------------
   FILTER BAR UTILITIES  — appear in nearly every list/report view
   ------------------------------------------------------------------ */
.widt   { width: 130px; }
.inline { display: inline-block; margin: 2px 1px; }


/* ------------------------------------------------------------------
   BUTTON SYSTEM  — moved from user.php inline <style>
   ------------------------------------------------------------------ */
.button-70 {
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0,0,0,.2) 0 3px 8px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: .9em;
    font-weight: bolder;
    margin: 2px;
    padding: 6px 7px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.bg-button-70-w    { background-image: linear-gradient(#f5b824, #f7b924); color: #333; }
.bg-button-70-navy { background-image: linear-gradient(#0d70ea, #1a4283); color: #fff; }
.bg-button-70-pri  { background-image: linear-gradient(#0dccea, #0d70ea); color: #fff; }
.bg-button-70-def  { background-image: linear-gradient(#f9f9f9, #ffffff); color: #555; border: 1px solid #ddd; }
.bg-button-70-dan  { background-image: linear-gradient(#e62143, #a12550); color: #fff; }
.bg-button-70-suc  { background-image: linear-gradient(#00D775, #28a745); color: #fff; }

.bg-light-pri {
    background-image: linear-gradient(#d4e2f7, #f5f7fe, #d4e2f7);
    color: #0d70ea;
    border: 1px solid #bfd3f2 !important;
}


/* ------------------------------------------------------------------
   TYPOGRAPHY UTILITIES  — moved from user.php inline <style>
   ------------------------------------------------------------------ */
.txt-style {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji" !important;
    font-weight: normal;
}
.txt-8   { font-size: .8rem !important; }
.txt-navy { color: rgba(26, 66, 131, 1) !important; }


/* ------------------------------------------------------------------
   KADA NAVY DESIGN SYSTEM  — card & header patterns
   ------------------------------------------------------------------ */

/* Primary card */
.kad-card {
    border: 1px solid #c8ceee;
    border-radius: 6px;
    /* overflow: hidden; */
    background: #fff;
    margin-bottom: 14px;
}

/* Navy gradient header (primary) */
.kad-card-hdr {
    background: linear-gradient(90deg, #001051 0%, #1a2f8f 100%);
    color: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.kad-card-hdr h4,
.kad-card-hdr h5,
.kad-card-hdr h6 { margin: 0; color: #fff; }

/* Neutral secondary header */
.kad-card-hdr-sec {
    background: #fafbfc;
    color: #2d3748;
    padding: 8px 14px;
    border-bottom: 1px solid #e8eaf0;
}

/* Ghost buttons for use inside .kad-card-hdr */
.btn-kad-ghost {
    background: rgb(26, 47, 142, .74);  /*rgba(255,255,255,.14); */
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    font-size: .8rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}
.btn-kad-ghost:hover { background: rgba(26, 47, 142,.95); color: #fff; text-decoration: none; }

.btn-kad-danger {
    background: rgba(220,53,69,.8);
    color: #fff;
    border: none;
    font-size: .8rem;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-kad-danger:hover { background: #dc3545; color: #fff; }

/* Navy search/action button */
.btn-kad-search {
    background: linear-gradient(90deg, #001051, #1a2f8f);
    color: #fff;
    border: none;
    padding: 5px 18px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    height: 31px;
}

/* Outline/clear button */
.btn-kad-clear {
    background: #fff;
    color: #001051;
    border: 1px solid #c8ceee;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .8rem;
    text-decoration: none;
}
.btn-kad-clear:hover { background: #eaedfa; color: #001051; text-decoration: none; }


/* ------------------------------------------------------------------
   TABLE UTILITIES
   ------------------------------------------------------------------ */

/* Add .tbl-compact to <table> for dense list/report views */
.tbl-compact td,
.tbl-compact th { padding: 2px 3px !important; }

/* Standard report table header */
.tbl-hdr-navy thead th {
    background: rgba(0,16,81,.08);
    color: #001051;
    font-size: 1rem;
    font-weight: 600;
    padding: 7px;
    border-color: #e8eaf0;
}
.tbl-hdr-navy tbody td {
    font-size: 1rem;
    vertical-align: middle;
    padding: 4px 6px;
    border-color: #e8eaf0;
}
.tbl-hdr-navy tbody tr:hover { background: #f4f5fb; }

.kad-section-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #c9d0d8;
    margin-bottom: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.kad-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f3f6;
    background: #fafbfc;
    padding: 9px 16px;    
    justify-content: space-between;
    flex-wrap: wrap;
}

.kad-card-header .pf-h-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kad-card-header .pf-icon {
    width: 28px!important; height: 28px!important;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff; flex-shrink: 0;
}

.kad-card-header .pf-title {
  margin: 0; font-weight: 600; font-size: 14px; color: #2d3748; letter-spacing: .3px;
}

.pf-icon-n {
  background:linear-gradient(135deg,#001051,#1a2f8f);
}

.pf-icon-w {
  background:linear-gradient(135deg,#f6ad55,#dd6b20);
}

.pf-icon-s {
  background:linear-gradient(135deg,#48bb78,#38a169);
}

.pf-icon-p {
  background:linear-gradient(135deg,#4299e1,#2b6cb0);
}
.kad-card-body { padding: 10px 20px; }

/* ------------------------------------------------------------------
   PRINT HELPERS
   ------------------------------------------------------------------ */
@media print {
    .no-print,
    .hid { display: none !important; }
}