*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── BASE ───────────────────────────────────── */
html,
body,
* {
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--base-color);
  min-height: 100vh;
  background: var(--base-bg);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

/* ─── HEADER ─────────────────────────────────── */
.header {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 148px;
  padding: 36px 28px 32px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(135deg, var(--header-v2-gradient-start) 0%, var(--header-v2-gradient-mid) 45%, var(--header-v2-gradient-end) 100%);
  box-shadow: 0 18px 40px var(--header-v2-shadow);
}


.header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--header-v2-circle);
  pointer-events: none;
}

.header-left {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -.3px;
}

.header-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--header-v2-subtitle);
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.header-btn {
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--header-btn-v2-bg);
  border: 1px solid var(--header-btn-v2-border);
  transition: transform .2s ease, background .2s ease;
}

.header-btn:hover {
  transform: translateY(-2px);
  background: var(--header-btn-v2-hover);
}

.header-btn:active {
  transform: scale(.95);
}

.header-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--header-btn-v2-stroke);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.header-btn.loading {
  pointer-events: none;
}

.header-btn.loading svg {
  animation: spin .9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══════════════════════════════════════════════
   POPUP ADD CUSTOMER (pac = popup-add-customer)
   ══════════════════════════════════════════════ */

.pac-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pac-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Box */
.pac-box {
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  background: var(--card-bg, #fff);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.4,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
}
.pac-overlay.show .pac-box {
  transform: translateY(0);
}

/* Desktop — centered modal */
@media (min-width: 769px) {
  .pac-overlay {
    align-items: center;
  }
  .pac-box {
    border-radius: 24px;
    max-height: 88dvh;
    transform: scale(.94);
  }
  .pac-overlay.show .pac-box {
    transform: scale(1);
  }
}

/* ── Header ── */
.pac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-color, #e8ddd0);
  flex-shrink: 0;
}
.pac-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #2d2d2d);
  letter-spacing: -.2px;
}
.pac-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-soft, #f5ede3);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.pac-close-btn:hover { background: var(--border-color, #e8ddd0); }
.pac-close-btn svg {
  width: 18px; height: 18px;
  stroke: var(--text-primary, #2d2d2d);
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ── Scroll body ── */
.pac-form {
  flex: 1;
  overflow-y: auto;
  padding: 0 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Foto ── */
.pac-foto-section {
  padding: 18px 22px 0;
  flex-shrink: 0;
}
.pac-foto-preview {
  width: 100%;
  height: 130px;
  border-radius: 16px;
  border: 2px dashed var(--primary, #C9A67B);
  background: var(--bg-soft, #f9f3ec);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  position: relative;
}
.pac-foto-preview:hover { border-color: var(--primary-dark, #a8824e); background: var(--bg-hover, #f3e8da); }
.pac-foto-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  border-radius: 14px;
}
.pac-foto-icon {
  width: 32px; height: 32px;
  stroke: var(--primary, #C9A67B);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}
.pac-foto-label {
  font-size: 13px;
  color: var(--primary, #C9A67B);
  font-weight: 600;
}

/* ── Form group ── */
.pac-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pac-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #7a6a5a);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pac-required { color: #d94f4f; margin-left: 2px; }

.pac-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 12px;
  background: var(--input-bg, #faf6f2);
  color: var(--text-primary, #2d2d2d);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
}
.pac-input:focus {
  border-color: var(--primary, #C9A67B);
  box-shadow: 0 0 0 3px rgba(201,166,123,.15);
}
.pac-textarea { resize: none; }

/* ── Dropdown ── */
.pac-dropdown { position: relative; }
.pac-dropdown-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 12px;
  background: var(--input-bg, #faf6f2);
  color: var(--text-primary, #2d2d2d);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .18s;
  text-align: left;
}
.pac-dropdown-btn:focus,
.pac-dropdown.active .pac-dropdown-btn {
  border-color: var(--primary, #C9A67B);
  box-shadow: 0 0 0 3px rgba(201,166,123,.15);
  outline: none;
}
.pac-dropdown-btn svg {
  width: 16px; height: 16px;
  stroke: var(--text-secondary, #7a6a5a);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  flex-shrink: 0;
  transition: transform .2s;
}
.pac-dropdown.active .pac-dropdown-btn svg { transform: rotate(180deg); }

.pac-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  padding: 6px;
}
.pac-dropdown.active .pac-dropdown-list { display: block; }

.pac-dropdown-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary, #2d2d2d);
  cursor: pointer;
  transition: background .15s;
}
.pac-dropdown-item:hover { background: var(--bg-soft, #f5ede3); }
.pac-dropdown-item.active {
  background: var(--bg-soft, #f5ede3);
  color: var(--primary-dark, #a8824e);
  font-weight: 600;
}
.pac-dropdown-item .pac-item-sub {
  font-size: 11px;
  color: var(--text-secondary, #7a6a5a);
  margin-top: 2px;
}

/* ── Data Kemarin ── */
.pac-data-kemarin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pac-dk-empty {
  font-size: 13px;
  color: var(--text-secondary, #7a6a5a);
  padding: 10px 0;
}
.pac-dk-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pac-dk-key {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #2d2d2d);
  background: var(--bg-soft, #f5ede3);
  border-radius: 10px;
  padding: 10px 12px;
}
.pac-dk-qty {
  width: 88px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 10px;
  background: var(--input-bg, #faf6f2);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary, #2d2d2d);
  outline: none;
  text-align: center;
  transition: border-color .18s;
}
.pac-dk-qty:focus {
  border-color: var(--primary, #C9A67B);
  box-shadow: 0 0 0 3px rgba(201,166,123,.15);
}

/* ── Footer ── */
.pac-footer {
  padding: 14px 22px 22px;
  flex-shrink: 0;
  border-top: 1px solid var(--border-color, #e8ddd0);
}
.pac-save-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--primary, #C9A67B);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pac-save-btn:hover:not(:disabled) {
  background: var(--primary-dark, #a8824e);
  transform: translateY(-1px);
}
.pac-save-btn:active:not(:disabled) { transform: scale(.97); }
.pac-save-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.pac-save-btn.loading {
  opacity: .8;
  pointer-events: none;
}

/* ── Loading spinner inline ── */
.pac-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pac-spin .7s linear infinite;
}
@keyframes pac-spin { to { transform: rotate(360deg); } }

/* ── Swipe handle mobile ── */
@media (max-width: 768px) {
  .pac-header::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    border-radius: 2px;
    background: var(--border-color, #e8ddd0);
  }
  .pac-header { padding-top: 26px; }
}

.pac-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pac-overlay.show { opacity: 1; pointer-events: all; }
.pac-box {
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  background: var(--card-bg, #fff);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.4,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
}
.pac-overlay.show .pac-box { transform: translateY(0); }
@media (min-width: 769px) {
  .pac-overlay { align-items: center; }
  .pac-box { border-radius: 24px; max-height: 88dvh; transform: scale(.94); }
  .pac-overlay.show .pac-box { transform: scale(1); }
}
.pac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-color, #e8ddd0);
  flex-shrink: 0;
  position: relative;
}
.pac-header-title { font-size: 17px; font-weight: 700; color: var(--text-primary, #2d2d2d); }
.pac-close-btn {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-soft, #f5ede3);
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.pac-close-btn:hover { background: var(--border-color, #e8ddd0); }
.pac-close-btn svg { width: 18px; height: 18px; stroke: var(--text-primary, #2d2d2d); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.pac-form {
  flex: 1; overflow-y: auto;
  padding: 0 22px 8px;
  display: flex; flex-direction: column; gap: 16px;
}
.pac-foto-section { padding: 18px 22px 0; flex-shrink: 0; }
.pac-foto-preview {
  width: 100%; height: 130px;
  border-radius: 16px;
  border: 2px dashed var(--primary, #C9A67B);
  background: var(--bg-soft, #f9f3ec);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; overflow: hidden;
  transition: border-color .2s, background .2s;
  position: relative;
}
.pac-foto-preview:hover { border-color: var(--primary-dark, #a8824e); }
.pac-foto-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: 14px; }
.pac-foto-icon { width: 32px; height: 32px; stroke: var(--primary, #C9A67B); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.pac-foto-label { font-size: 13px; color: var(--primary, #C9A67B); font-weight: 600; }
.pac-group { display: flex; flex-direction: column; gap: 6px; }
.pac-label { font-size: 12px; font-weight: 600; color: var(--text-secondary, #7a6a5a); text-transform: uppercase; letter-spacing: .4px; }
.pac-required { color: #d94f4f; margin-left: 2px; }
.pac-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 12px;
  background: var(--input-bg, #faf6f2);
  color: var(--text-primary, #2d2d2d);
  font-size: 14px; font-family: inherit;
  outline: none; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}
.pac-input:focus { border-color: var(--primary, #C9A67B); box-shadow: 0 0 0 3px rgba(201,166,123,.15); }
.pac-textarea { resize: none; }
.pac-dropdown { position: relative; }
.pac-dropdown-btn {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 12px;
  background: var(--input-bg, #faf6f2);
  color: var(--text-primary, #2d2d2d);
  font-size: 14px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: border-color .18s; text-align: left;
}
.pac-dropdown.active .pac-dropdown-btn { border-color: var(--primary, #C9A67B); box-shadow: 0 0 0 3px rgba(201,166,123,.15); outline: none; }
.pac-dropdown-btn svg { width: 16px; height: 16px; stroke: var(--text-secondary, #7a6a5a); stroke-width: 2.2; stroke-linecap: round; fill: none; flex-shrink: 0; transition: transform .2s; }
.pac-dropdown.active .pac-dropdown-btn svg { transform: rotate(180deg); }
.pac-dropdown-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 220px; overflow-y: auto;
  z-index: 10; display: none; padding: 6px;
}
.pac-dropdown.active .pac-dropdown-list { display: block; }
.pac-dropdown-item { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-primary, #2d2d2d); cursor: pointer; transition: background .15s; }
.pac-dropdown-item:hover { background: var(--bg-soft, #f5ede3); }
.pac-dropdown-item.active { background: var(--bg-soft, #f5ede3); color: var(--primary-dark, #a8824e); font-weight: 600; }
.pac-item-sub { font-size: 11px; color: var(--text-secondary, #7a6a5a); margin-top: 2px; }
.pac-data-kemarin { display: flex; flex-direction: column; gap: 8px; }
.pac-dk-empty { font-size: 13px; color: var(--text-secondary, #7a6a5a); padding: 10px 0; }
.pac-dk-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pac-dk-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 56px;
}
.pac-dk-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #7a6a5a);
  text-align: center;
}
.pac-dk-qty {
  width: 100%;
  padding: 10px 6px;
  border: 1.5px solid var(--border-color, #e8ddd0);
  border-radius: 10px;
  background: var(--input-bg, #faf6f2);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary, #2d2d2d);
  outline: none;
  text-align: center;
  transition: border-color .18s;
  box-sizing: border-box;
}
.pac-dk-qty:focus { border-color: var(--primary, #C9A67B); box-shadow: 0 0 0 3px rgba(201,166,123,.15); }
.pac-footer { padding: 14px 22px 22px; flex-shrink: 0; border-top: 1px solid var(--border-color, #e8ddd0); }
.pac-save-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: var(--primary, #C9A67B); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s, opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pac-save-btn:hover:not(:disabled) { background: var(--primary-dark, #a8824e); transform: translateY(-1px); }
.pac-save-btn:active:not(:disabled) { transform: scale(.97); }
.pac-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.pac-save-btn.loading { opacity: .8; pointer-events: none; }
.pac-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pac-spin .7s linear infinite; }
@keyframes pacFadeIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes pac-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .pac-header::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: var(--border-color, #e8ddd0); }
  .pac-header { padding-top: 26px; }
}

/* ─── CONTENT ────────────────────────────────── */
.content {
  padding: 24px 24px 0;
}

.content-wrap {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 20px;
  align-items: stretch;
  height: calc(100dvh - 240px);
  min-height: 0;
}

.content-wrap.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  touch-action: none;
}

/* ─── CONTENT HEIGHT CONTROL ────────────────── */
.content-fit {
  height: calc(100dvh - 50px);
  min-height: 680px;
  max-height: calc(100dvh - 20px);
  padding-bottom: 12px;
}

.content-fit .content-left,
.content-fit .content-right {
  height: 100%;
}

.content-fit .customer-card,
.content-fit .aside-card {
  height: 100%;
  min-height: 0;
}

.aside-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.aside-body::-webkit-scrollbar {
  display: none;
}

/* ─── GLASS CARD BASE ────────────────────────── */
.customer-card,
.aside-card {
  border-radius: 32px;
  padding: 26px;
  background: linear-gradient(
    145deg,
    var(--glass-card-gradient-start) 0%,
    var(--glass-card-gradient-end) 100%
  );
  border: 1px solid var(--glass-card-border);
  box-shadow:
    0 24px 56px var(--glass-card-shadow),
    inset 0 1px 0 var(--glass-card-inset);
}

/* ─── CUSTOMER CARD ──────────────────────────── */
.content-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.customer-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.customer-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.customer-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.customer-label {
  width: 96px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--customer-label-color);
}

.customer-input,
.customer-dropdown-btn {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--customer-input-color);
  background: var(--customer-input-bg);
  transition: background .2s ease, box-shadow .2s ease;
}

.customer-input:focus {
  background: var(--customer-input-focus-bg);
  box-shadow: 0 0 0 3px var(--customer-input-focus-ring);
}

/* ─── DROPDOWN ───────────────────────────────── */
.customer-dropdown {
  width: 100%;
  position: relative;
}

.customer-dropdown-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.customer-dropdown-btn:hover {
  background: rgba(255, 255, 255, .78);
}

.customer-dropdown-arrow {
  font-size: 18px;
  opacity: .7;
  transition: transform .22s ease;
}

.customer-dropdown-popup.show + .customer-dropdown-btn .customer-dropdown-arrow,
.customer-dropdown-btn[aria-expanded="true"] .customer-dropdown-arrow {
  transform: rotate(180deg);
}

.customer-dropdown-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 22px;
  padding: 8px;
  background: var(--dropdown-popup-bg);
  border: 1px solid var(--dropdown-popup-border);
  box-shadow:
    0 24px 56px var(--dropdown-popup-shadow),
    inset 0 1px 0 var(--dropdown-popup-inset);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30;
  scrollbar-width: none;
}

.customer-dropdown-popup::-webkit-scrollbar {
  display: none;
}

.customer-dropdown-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.customer-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-dropdown-item {
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .18s ease;
}

.customer-dropdown-item:hover {
  background: var(--dropdown-item-hover);
}

.customer-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dropdown-name-color);
}

.customer-dropdown-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--dropdown-role-color);
}
/* EDIT CUSTOMER */
.edit-customer-btn {
  width: 100%; height: 38px; margin-top: 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: all .15s;
}
.edit-customer-btn svg { width: 15px; height: 15px }
.edit-customer-btn:hover { border-color: var(--primary); color: var(--primary) }

.edit-foto-btn {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  height: 30px; padding: 0 12px; border-radius: 20px;
  background: rgba(0,0,0,.5); border: none; color: #fff;
  font-size: 12px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
}
.edit-foto-btn svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 1.8 }
.edit-photo-card { position: relative }

.edit-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); font-family: inherit;
  font-size: 13px; color: var(--text); outline: none; transition: border .15s;
  margin-top: 4px;
}
.edit-input:focus { border-color: var(--primary) }
.edit-textarea { min-height: 70px; resize: vertical; line-height: 1.5 }
.edit-select { cursor: pointer }

.edit-save-btn {
  width: 100%; height: 40px; margin-top: 16px;
  border-radius: 10px; border: none;
  background: var(--primary); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: background .15s;
}
.edit-save-btn:hover    { background: var(--primary-dark) }
.edit-save-btn:disabled { opacity: .6; cursor: not-allowed }
.edit-save-btn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round }
/* ─── CUSTOMER LIST ──────────────────────────── */
.customer-list {
  flex: 1;
  min-height: 0;
  display: flex;
  padding-top: 30px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.customer-list::-webkit-scrollbar {
  display: none;
}

.customer-placeholder {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 24px;
  padding: 40px 24px;
  background: linear-gradient(
    135deg,
    var(--customer-placeholder-gradient-start),
    var(--customer-placeholder-gradient-end)
  );
  border: 1px dashed var(--customer-placeholder-border);
}

.placeholder-lottie {
  width: 340px;
  height: 340px;
  margin-bottom: 8px;
  pointer-events: none;
}

.placeholder-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--customer-placeholder-title);
}

.placeholder-subtitle {
  margin-top: 8px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--customer-placeholder-subtitle);
}

.customer-item {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 15px;
  border-radius: 50px;
  background: var(--customer-item-bg);
  border: 1px solid var(--customer-item-border);
  transition: background .18s ease, transform .18s ease;
  cursor: pointer;
}

.customer-item:hover {
  background: var(--customer-item-hover);
}

.customer-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--customer-photo-border);
}

.customer-info {
  flex: 1;
  min-width: 0;
}

.customer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--customer-name-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-distance {
  margin-top: 3px;
  font-size: 12px;
  color: var(--customer-distance-color);
  font-weight: 500;
}

.customer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.customer-action-btn {
  position: relative;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--customer-action-bg);
  border: 1px solid var(--customer-action-border);
  transition:
    transform .18s ease,
    background .18s ease;
}

.customer-action-btn:hover {
  background: var(--customer-action-hover);
  transform: translateY(-1px);
  z-index: 999;
}

.customer-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--customer-action-svg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.customer-action-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--customer-action-tooltip-bg);
  color: var(--customer-action-tooltip-color);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .18s ease,
    transform .18s ease;
  pointer-events: none;
}

.customer-action-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform:
    translateX(-50%)
    translateY(-2px);
}

/* ─── ASIDE ──────────────────────────────────── */
.content-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.aside-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aside-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--aside-header-border);
}

.aside-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.aside-owner-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aside-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aside-custom-dropdown {
  position: relative;
}

.aside-filter-btn {
  display: none;
}

.aside-dropdown-trigger {
  min-width: 105px;
  height: 38px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--customer-input-color);
  background: var(--aside-dropdown-trigger-bg);
  border: 1px solid var(--aside-dropdown-trigger-border);
  transition: background .2s ease, transform .18s ease;
}

.aside-dropdown-trigger:hover {
  background: var(--aside-dropdown-trigger-hover);
  transform: translateY(-1px);
}

.aside-dropdown-arrow {
  font-size: 14px;
  opacity: .65;
  transition: transform .2s ease;
}

.aside-dropdown-trigger.active .aside-dropdown-arrow {
  transform:
    rotate(180deg);
}

.aside-dropdown-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  z-index: 60;
  padding: 5px;
  border-radius: 16px;
  background: var(--aside-dropdown-popup-bg);
  border: 1px solid var(--aside-dropdown-popup-border);
  box-shadow: 0 12px 28px var(--aside-dropdown-popup-shadow);
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(.98);
  transition: .16s ease;
}

.aside-dropdown-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.aside-dropdown-item {
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--customer-input-color);
  line-height: 1.15;
  transition:
    background .16s ease,
    transform .16s ease;
}

.aside-dropdown-item:hover {
  background: var(--aside-dropdown-item-hover);
  transform: translateX(2px);
}

.aside-dropdown-item:hover {
  background: var(--aside-dropdown-item-hover2);
}

.aside-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aside-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.aside-search {
  position: relative;
  width: 220px;
}

.aside-search-input {
  width: 100%;
  height: 42px;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--customer-input-color);
  background: var(--aside-search-bg);
  border: 1px solid var(--aside-search-border);
}

.aside-search-input:focus {
  background: var(--aside-search-focus);
}

.aside-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  background: var(--aside-search-suggest-bg);
  border: 1px solid var(--aside-search-suggest-border);
  box-shadow: 0 18px 36px var(--aside-search-suggest-shadow);
  z-index: 50;
  scrollbar-width: none;
}

.aside-search-suggest::-webkit-scrollbar {
  display: none;
}

.aside-search-suggest.show {
  display: flex;
}

.aside-search-item {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s ease;
}

.aside-search-item:hover {
  background: var(--aside-search-item-hover);
}

.aside-search-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--aside-search-name);
}

.aside-search-owner {
  font-size: 11px;
  color: var(--aside-search-owner);
}

.aside-key {
  font-weight: 700;
  color: var(--aside-key-color);
}

.aside-value {
  font-weight: 600;
  color: var(--aside-value-color);
}

.aside-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.aside-customer-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-photo-card {
  width: 100%;
  aspect-ratio: 4/2;
  overflow: hidden;
  border-radius: 24px;
  background: var(--aside-photo-bg);
  border: 1px solid var(--aside-photo-border);
}

.aside-customer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aside-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aside-photo-empty);
  font-size: 14px;
  font-weight: 600;
}

.aside-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aside-detail-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--aside-detail-bg);
  border: 1px solid var(--aside-detail-border);
  overflow: hidden;
}

.aside-full {
  grid-column: 1 / -1;
}

.detail-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--aside-detail-key);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--aside-detail-value);
  word-break: break-word;
}

.aside-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--aside-title-color);
  margin-bottom: 18px;
}

.aside-placeholder {
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--aside-placeholder-color);
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(
    135deg,
    var(--aside-placeholder-gradient-start),
    var(--aside-placeholder-gradient-end)
  );
  border: 1px dashed var(--aside-placeholder-border);
}

.aside-logo {
  width: 380px;
  max-width: 70%;
  object-fit: contain;
  opacity: .9;
  user-select: none;
  pointer-events: none;
}

/* ─── DELETE POPUP ─────────────────────────── */
.delete-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--delete-overlay-bg);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.delete-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.delete-popup-card {
  width: 100%;
  max-width: 420px;
  border-radius: 34px;
  padding: 28px;
  background: linear-gradient(
    145deg,
    var(--delete-card-gradient-start),
    var(--delete-card-gradient-end)
  );
  border: 1px solid var(--delete-card-border);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 24px 56px var(--delete-card-shadow);
  transform: translateY(20px) scale(.95);
  transition: .25s ease;
}

.delete-popup-overlay.show .delete-popup-card {
  transform: translateY(0) scale(1);
}

.delete-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--delete-title-color);
  text-align: center;
}

.delete-popup-subtitle {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--delete-subtitle-color);
}

.delete-popup-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.delete-popup-btn {
  flex: 1;
  height: 52px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  transition: .18s ease;
}

.delete-popup-btn:hover {
  transform: translateY(-1px);
}

.delete-popup-btn.cancel {
  background: var(--delete-cancel-bg);
  color: var(--delete-cancel-color);
  border: 1px solid var(--delete-cancel-border);
}

.delete-popup-btn.danger {
  background: linear-gradient(135deg, var(--delete-danger-gradient-start), var(--delete-danger-gradient-end));
  color: var(--delete-danger-color);
}

.delete-popup-btn.loading {
  pointer-events: none;
  opacity: .7;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  outline: none;
  transition: .18s ease;
}

.detail-status.active {
  color: var(--status-active-color);
  background: var(--status-active-bg);
  border: 1px solid var(--status-active-border);
  cursor: default;
}

.detail-status.inactive {
  color: var(--status-inactive-color);
  background: var(--status-inactive-bg);
  border: 1px solid var(--status-inactive-border);
  cursor: pointer;
}

.detail-status.inactive:hover {
  transform: translateY(-1px);
  background: var(--status-inactive-hover);
}

.delete-popup-btn.success {
  background: linear-gradient(135deg, var(--delete-success-gradient-start), var(--delete-success-gradient-end));
  color: var(--delete-danger-color);
}

.delete-popup-btn.loading {
  pointer-events: none;
  opacity: .75;
}

/* ─── PRIVIEW MAP ───────────────────── */
.customer-map-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 14px;
}

.customer-leaflet-map {
  flex: 1;
  min-height: 320px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--map-border);
  background: var(--map-bg);
}

.visit-map-btn {
  flex-shrink: 0;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--visit-map-gradient-start),
    var(--visit-map-gradient-end)
  );
  color: var(--visit-map-color);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.visit-map-btn:hover {
  transform: translateY(-2px);
}

.map-empty {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--map-empty-bg);
  border: 1px solid var(--map-empty-border);
  color: var(--map-empty-color);
  font-weight: 600;
}

/* ─── ROLLING CUSTOMER ───────────────────── */
.rolling-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rolling-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--rolling-title-color);
}

.rolling-subtitle {
  font-size: 13px;
  color: var(--rolling-subtitle-color);
  line-height: 1.6;
}

.rolling-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rolling-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: var(--rolling-user-bg);
  border: 1px solid var(--rolling-user-border);
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.rolling-user:hover {
  transform: translateY(-2px);
  background: var(--rolling-user-hover);
}

.rolling-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rolling-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rolling-photo-empty-bg);
  color: var(--rolling-photo-empty-color);
  font-size: 20px;
  font-weight: 700;
}

.rolling-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rolling-name-color);
}

.rolling-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--rolling-role-color);
}

.rolling-alert-card {
  margin-top: 8px;
  padding: 18px;
  border-radius: 22px;
  background: var(--rolling-alert-bg);
  border: 1px solid var(--rolling-alert-border);
  line-height: 1.7;
  font-size: 13px;
  color: var(--rolling-alert-color);
}

/* ─── DRAG CUSTOMER ───────────────────────── */
.dragging-customer {
  opacity: .68 !important;
  transform: scale(.96) rotate(-1deg);
  background: var(--dragging-bg) !important;
  border: 1px solid var(--dragging-border) !important;
  box-shadow: 0 18px 40px var(--dragging-shadow);
  z-index: 9999;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

/* ─── ROLLING ACTIVE ───────────────────── */
.rolling-hover {
  transform: scale(1.03);
  background: var(--rolling-hover-bg) !important;
  border: 1px solid var(--rolling-hover-border);
  box-shadow: 0 16px 36px var(--rolling-hover-shadow);
}

.rolling-loader {
  width: 26px;
  height: 26px;
  margin: auto;
  border-radius: 50%;
  border: 3px solid var(--rolling-loader-border);
  border-top: 3px solid var(--rolling-loader-top);
  animation: rollingSpin .8s linear infinite;
}

@keyframes rollingSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── DRAG PREVIEW ───────────────────────── */
.drag-customer-preview {
  position: fixed;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 18px 42px var(--drag-preview-shadow);
  border: 4px solid var(--drag-preview-border);
  animation: dragPop .18s ease;
}

.drag-customer-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drag-preview-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--drag-preview-empty-bg);
  color: var(--drag-preview-empty-color);
  font-size: 24px;
  font-weight: 700;
}

@keyframes dragPop {
  from {
    transform: translate(-50%, -50%) scale(.7);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

/* ================================
   APPROVAL ROLLING
   ================================ */

.approval-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 16px;
  box-shadow: 0 4px 24px var(--primary-shadow-md);
}

.approval-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-glass-hover);
}

.approval-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 3px;
}

.approval-subtitle {
  font-size: 12px;
  color: var(--primary-text-muted);
}

/* ─── LIST ─────────────────────── */
.approval-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── LOADING ──────────────────── */
.approval-loading {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--primary-text-muted);
}

/* ─── PLACEHOLDER ──────────────── */
.approval-placeholder {
  padding: 36px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--placeholder);
}

/* ─── ITEM ─────────────────────── */
.approval-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-border);
  background: transparent;
  transition: opacity .25s ease, transform .25s ease;
}

.approval-item:last-child {
  border-bottom: none;
}

/* ─── ITEM HEADER ──────────────── */
.approval-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.approval-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-item-type {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-bg-sm);
  color: var(--primary-text-muted);
  border: 1px solid var(--primary-border-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── ITEM BODY ────────────────── */
.approval-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--surface-border);
  margin-bottom: 12px;
}

.approval-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.approval-item-label {
  font-size: 11px;
  color: var(--placeholder);
  flex-shrink: 0;
  padding-top: 1px;
}

.approval-item-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
  line-height: 1.4;
}

/* ─── ACTIONS ──────────────────── */
.approval-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.approval-btn {
  height: 38px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.approval-btn:active {
  transform: scale(0.96);
  opacity: .8;
}

.approval-btn:disabled {
  cursor: not-allowed;
}

.approval-btn--reject {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.approval-btn--reject:hover {
  background: var(--danger-bg-hover);
}

.approval-btn--approve {
  background: var(--primary-bg-sm);
  color: var(--text-heading);
  border: 1px solid var(--primary-border);
}

.approval-btn--approve:hover {
  background: var(--primary-bg-md);
}

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width:900px) {

  .header {
    min-height: 128px;
    padding: 28px 20px 26px;
    border-radius: 0 0 32px 32px;
  }

  .header h1 {
    font-size: 24px;
  }

  .content {
    padding: 16px 0 0;
    overflow: hidden;
  }

  .content-wrap {
    display: flex;
    flex-direction: row;

    gap: 0;

    width: 100%;
    height:
      calc(100dvh - 180px);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .content-wrap::-webkit-scrollbar {
    display: none;
  }

  .content-left,
  .content-right {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;

    height: 100%;

    padding: 0 16px;

    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .customer-card,
  .aside-card {
    height: 100%;
    border-radius: 26px;
    padding: 20px;
  }

  .customer-label {
    width: 80px;
    font-size: 13px;
  }

  .customer-input,
  .customer-dropdown-btn {
    height: 46px;
    font-size: 13px;
  }

  .customer-name {
    font-size: 14px;
  }

  .customer-photo {
    width: 46px;
    height: 46px;
  }

  .customer-list {
    min-height: 0;
  }

  .customer-action-btn {
    width: 38px;
    height: 38px;
  }

  .aside-detail-list {
    grid-template-columns: 1fr;
  }

  .aside-full {
    grid-column: auto;
  }
}