:root {
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --green: #149447;
  --green-dark: #0f7537;
  --green-deep: #0b5f2d;
  --green-soft: #ecf9f0;
  --green-softer: #f7fcf8;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #18212f;
  --muted: #667382;
  --line: #dfe5eb;
  --line-strong: #cbd4dd;
  --red: #c73535;
  --orange: #b96c09;
  --blue: #2865c7;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --max: 1760px;
  --control-height: 52px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

button,
input,
select,
textarea {
  font-size: 16px;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
  text-decoration: none;
}

svg.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

input,
select,
textarea,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

input::placeholder,
textarea::placeholder {
  color: #929dab;
}

:focus-visible {
  outline: 3px solid rgba(20, 148, 71, 0.22);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

/* =========================================================
   APP HEADER & NAVIGATION
   Tuned for 24-inch displays (typically 1920 x 1080)
   ========================================================= */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(14px);
}

.top-inner {
  width: min(100%, var(--max));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 218px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo,
.mini-logo,
.big-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 7px 18px rgba(20, 148, 71, 0.22);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-text {
  color: #7DD3FC;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.45px;
}

.global-search {
  position: relative;
  flex: 1;
  max-width: 880px;
}

.global-search > span {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 49px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.global-search input:hover {
  border-color: #aebbc6;
}

.global-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 148, 71, 0.1);
}

.header-context {
  min-width: 190px;
  min-height: 52px;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.header-context > .icon {
  color: var(--green);
}

.header-context > span {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.header-context b {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-context small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.icon-button {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #475569;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-button:hover {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #d3eadb;
}

.user-chip {
  min-height: 52px;
  padding: 5px 14px 5px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}

.avatar,
.customer-avatar {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 800;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 15px;
}

.customer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 17px;
}

.user-meta {
  display: grid;
  line-height: 1.25;
}

.user-meta b {
  font-size: 15px;
  font-weight: 700;
}

.user-meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav {
  width: min(100%, var(--max));
  min-height: 56px;
  margin: 0 auto;
  padding: 4px 32px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.desktop-nav a {
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4e5a68;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.desktop-nav a.active {
  box-shadow: inset 0 0 0 1px #d4ebdc;
}

/* =========================================================
   MAIN LAYOUT, TYPOGRAPHY & BUTTONS
   ========================================================= */
.main-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 30px 32px 112px;
}

.welcome,
.page-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.welcome h1,
.page-head h1 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(28px, 1.7vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.65px;
}

.welcome p,
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.25px;
}

.head-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 50px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(20, 148, 71, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(15, 117, 55, 0.22);
}

.btn-outline {
  color: var(--text);
  background: #fff;
  border-color: var(--line-strong);
}

.btn-outline:hover:not(:disabled) {
  color: var(--green-dark);
  border-color: #9fc9ae;
  background: var(--green-softer);
}

.btn-soft {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #d6eddd;
}

.btn-whatsapp {
  color: #147a3d;
  background: #eaf9ef;
  border-color: #c8ead3;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   DASHBOARD
   ========================================================= */
.shortcut-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.shortcut {
  min-height: 124px;
  padding: 18px 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.shortcut:hover {
  transform: translateY(-2px);
  border-color: #b9ddc5;
  box-shadow: var(--shadow);
}

.shortcut > span {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 14px;
}

.shortcut b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.shortcut small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.kpi-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  min-height: 138px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.kpi small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.kpi strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--text);
  font-size: clamp(27px, 1.55vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.55px;
  font-variant-numeric: tabular-nums;
}

.kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  min-height: 66px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}

.panel-head > a {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.responsive-table {
  max-height: min(680px, 64vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8c3cc transparent;
}

.responsive-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 17px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

th {
  color: #637081;
  background: #f8fafb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

td {
  color: #263241;
  font-size: 15px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.clickable {
  cursor: pointer;
  transition: background 0.14s ease;
}

.clickable:hover {
  background: var(--green-softer);
}

.empty-cell {
  padding: 42px 20px !important;
  color: var(--muted);
  text-align: center !important;
}

.td-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  min-height: 29px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge.success {
  color: #14743b;
  background: #eaf9ef;
}

.badge.warning {
  color: #9a5700;
  background: #fff4e4;
}

.badge.danger {
  color: #ae2929;
  background: #ffeded;
}

.badge.info {
  color: #245cb4;
  background: #eef5ff;
}

.badge.neutral {
  color: #566170;
  background: #f0f3f5;
}

.attention-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.attention-list a {
  min-height: 82px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.attention-list a:hover {
  background: #fbfcfd;
  border-color: var(--line-strong);
}

.att-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
}

.danger-bg {
  color: var(--red);
  background: #fff0f0;
}

.warning-bg {
  color: var(--orange);
  background: #fff6e7;
}

.green-bg {
  color: var(--green-dark);
  background: var(--green-soft);
}

.attention-list b {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.attention-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mobile-transaction-list {
  display: none;
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.flash.success {
  color: #14743b;
  background: #eaf9ef;
  border: 1px solid #cdebd7;
}

.flash.danger {
  color: #ae2929;
  background: #ffeded;
  border: 1px solid #ffd0d0;
}

/* =========================================================
   PAWN FORM / TRANSACTION WORKSPACE
   ========================================================= */
.pawn-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 430px;
  align-items: start;
  gap: 18px;
}

.workspace-main,
.detail-main {
  display: grid;
  gap: 18px;
}

.form-section .panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.step-circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #d3ebdb;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.form-body {
  padding: 21px;
}

.customer-search {
  display: flex;
  gap: 11px;
}

.input-icon {
  position: relative;
  flex: 1;
  min-width: 0;
}

.input-icon > .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon input {
  padding-left: 47px !important;
}

.customer-search input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.filters input,
.filters select,
.action-select {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.customer-search input,
.form-grid input,
.form-grid select,
.filters input,
.filters select,
.action-select {
  min-height: var(--control-height);
  padding: 12px 14px;
}

.form-grid textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

input[readonly],
textarea[readonly] {
  color: #4f5c6a;
  background: #f7f9fa;
}

.customer-search input:hover,
.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover,
.filters input:hover,
.filters select:hover,
.action-select:hover {
  border-color: #aebac5;
}

.customer-search input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.filters input:focus,
.filters select:focus,
.action-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 148, 71, 0.09);
}

.customer-results {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.customer-result {
  width: 100%;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.customer-result:hover {
  background: var(--green-softer);
  border-color: #b8ddc4;
}

.customer-result > span:nth-child(2) {
  display: grid;
}

.customer-result b {
  font-size: 16px;
}

.customer-result small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.customer-result em {
  color: var(--green-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.selected-customer {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8fff9;
  border: 1px solid #cae8d4;
  border-radius: 12px;
}

.selected-customer > div {
  display: grid;
}

.selected-customer b {
  font-size: 16px;
}

.selected-customer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.selected-customer > span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.loading-line,
.empty-mini {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  padding: 0;
  color: var(--green-dark);
  background: none;
  border: 0;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #4f5c6a;
  font-size: 15px;
  font-weight: 650;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.money-input {
  position: relative;
}

.money-input > span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 43px;
  font-variant-numeric: tabular-nums;
}

.info-note,
.alert-box {
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.55;
}

.info-note {
  color: #176038;
  background: var(--green-soft);
  border: 1px solid #cae8d4;
}

.warning-box {
  color: #87500a;
  background: #fff5e8;
  border: 1px solid #f0d6ab;
}

.danger-box {
  color: #a52b2b;
  background: #ffeded;
  border: 1px solid #ffd0d0;
}

.hidden {
  display: none !important;
}

.photo-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upload-box {
  position: relative;
  min-height: 150px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  background: #fafbfc;
  border: 1.5px dashed #aeb9c4;
  border-radius: 13px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.upload-box:hover {
  color: var(--green-dark);
  background: var(--green-softer);
  border-color: var(--green);
}

.upload-box b {
  margin-top: 9px;
  color: var(--text);
  font-size: 15px;
}

.upload-box small {
  margin-top: 3px;
  font-size: 13px;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.summary-panel,
.detail-side .sticky-card {
  position: sticky;
  top: 154px;
  height: max-content;
}

.summary-top {
  padding: 21px;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
}

.summary-top small {
  color: #daf5e3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.summary-top h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.summary-body {
  padding: 20px;
}

.summary-row {
  padding: 11px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.summary-row > span {
  color: var(--muted);
}

.summary-row > b {
  max-width: 62%;
  text-align: right;
  overflow-wrap: anywhere;
}

.amount-card {
  margin: 16px 0;
  padding: 16px;
  background: #f7faf8;
  border: 1px solid #deebe2;
  border-radius: 13px;
}

.amount-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.amount-card strong {
  display: block;
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.fee-list {
  margin-bottom: 14px;
  display: grid;
  gap: 7px;
}

.fee-list > div {
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f5f7f8;
  border-radius: 9px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.summary-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================
   FILTERS & TRANSACTION DETAIL
   ========================================================= */
.filters {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.filters form {
  display: flex;
  align-items: center;
  gap: 11px;
}

.filters .wide {
  flex: 1;
}

.filters select {
  width: auto;
  min-width: 220px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 420px;
  align-items: start;
  gap: 18px;
}

.detail-cards {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-cards article {
  min-width: 0;
  padding: 17px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.detail-cards small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-cards h3 {
  margin: 6px 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}

.detail-cards p {
  margin: 0;
  color: #53606e;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.photo-preview-grid {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-preview-grid a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f3f5;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.photo-preview-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-preview-grid a:hover img {
  transform: scale(1.025);
}

.photo-preview-grid span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.action-stack {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.action-stack form {
  display: grid;
}

.action-select {
  margin-bottom: 8px;
}

.payment-preview {
  margin-top: 14px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.payment-preview > div {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.payment-preview > div span {
  color: var(--muted);
}

.payment-preview strong {
  color: var(--green-dark);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.payment-preview small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   CUSTOMERS, DUE DATE & SETTINGS
   ========================================================= */
.customer-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 14px;
}

.customer-card {
  min-width: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.customer-card:hover {
  border-color: #b8ddc4;
  box-shadow: var(--shadow-sm);
}

.customer-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.3;
}

.customer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mini-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-tags span {
  padding: 5px 8px;
  color: #52606d;
  background: #f1f4f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.due-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.due-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.due-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.due-top small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.due-top h3 {
  margin: 4px 0;
  font-size: 19px;
  line-height: 1.3;
}

.due-card > p {
  margin: 11px 0;
  color: var(--muted);
  font-size: 15px;
}

.due-meta {
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #f7f9fa;
  border-radius: 11px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.due-meta > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.due-actions {
  margin-top: 13px;
  display: flex;
  gap: 9px;
}

.due-actions .btn {
  flex: 1;
  font-size: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.setting-card {
  min-height: 245px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.setting-card > .icon {
  color: var(--green-dark);
}

.setting-card h3 {
  margin: 14px 0 7px;
  font-size: 19px;
  line-height: 1.3;
}

.setting-card p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.setting-card .btn {
  margin-top: auto;
}

.empty-state {
  padding: 46px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

/* =========================================================
   MOBILE TRANSACTION CARDS & NAVIGATION
   ========================================================= */
.mobile-nav,
.mobile-more {
  display: none;
}

.mobile-transaction-list.pad-mobile {
  padding: 12px;
}

.mobile-transaction {
  padding: 13px;
  display: grid;
  gap: 8px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-transaction > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.mobile-transaction small {
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   LOGIN
   ========================================================= */
.login-body {
  min-height: 100vh;
  padding: 30px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(20, 148, 71, 0.13), transparent 30%),
    linear-gradient(135deg, #eefaf2, #f4f6f8 64%);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 460px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  padding: 64px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 95, 45, 0.96), rgba(20, 148, 71, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 42%);
}

.big-logo {
  width: 72px;
  height: 72px;
  color: var(--green-dark);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.login-brand h1 {
  margin: 24px 0 10px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.login-brand > p {
  max-width: 580px;
  margin: 0;
  color: #dcf4e5;
  font-size: 18px;
  line-height: 1.75;
}

.login-points {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.login-points > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.login-card {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.45px;
}

.login-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.login-card form {
  display: grid;
  gap: 10px;
}

.login-card label {
  margin-top: 8px;
  color: #4f5c69;
  font-size: 15px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap > .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 14px 0 47px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 148, 71, 0.09);
}

.login-card .btn {
  margin-top: 12px;
  min-height: 54px;
}

.login-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   MEDIUM DESKTOP / LAPTOP
   ========================================================= */
@media (max-width: 1320px) {
  :root {
    --max: 1240px;
  }

  .header-context {
    display: none;
  }

  .top-inner,
  .desktop-nav,
  .main-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .brand {
    min-width: 170px;
  }

  .brand-text {
    font-size: 21px;
  }

  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pawn-workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 1040px) {
  .dashboard-grid,
  .pawn-workspace,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel,
  .detail-side .sticky-card {
    position: static;
  }

  .customer-grid,
  .due-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-meta {
    display: none;
  }

  .brand {
    min-width: 136px;
  }

  .global-search {
    max-width: none;
  }
}

/* =========================================================
   PHONE / SMALL TABLET
   ========================================================= */
@media (max-width: 760px) {
  :root {
    --control-height: 48px;
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .top-inner {
    min-height: var(--header-height);
    padding: 8px 11px;
    gap: 8px;
  }

  .brand {
    min-width: auto;
  }

  .brand-text {
    display: none;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .global-search input {
    height: 42px;
    padding-left: 42px;
    font-size: 14px;
  }

  .global-search > span {
    left: 13px;
  }

  .head-actions {
    gap: 3px;
  }

  .head-actions > .icon-button:first-child,
  .user-chip {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .desktop-nav {
    display: none;
  }

  .main-content {
    padding: 18px 11px 92px;
  }

  .welcome,
  .page-head {
    margin-bottom: 16px;
    align-items: center;
    gap: 12px;
  }

  .welcome h1,
  .page-head h1 {
    margin-bottom: 4px;
    font-size: 24px;
  }

  .welcome p,
  .page-head p {
    font-size: 14px;
  }

  .welcome .btn,
  .page-head > .btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .page-head > .badge {
    flex: none;
  }

  .head-buttons {
    display: grid;
    justify-items: end;
  }

  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .shortcut {
    min-height: 96px;
    padding: 11px 5px;
    border-radius: 13px;
    box-shadow: none;
  }

  .shortcut > span {
    width: 40px;
    height: 40px;
    margin-bottom: 7px;
  }

  .shortcut b {
    font-size: 12px;
  }

  .shortcut small {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi {
    min-height: 116px;
    padding: 14px;
    box-shadow: none;
  }

  .kpi small {
    font-size: 12px;
  }

  .kpi strong {
    font-size: 22px;
  }

  .kpi p {
    font-size: 11px;
  }

  .dashboard-grid {
    gap: 11px;
  }

  .panel {
    border-radius: 14px;
    box-shadow: none;
  }

  .panel-head {
    min-height: 58px;
    padding: 12px 14px;
  }

  .panel-head h2 {
    font-size: 17px;
  }

  .panel-head > a {
    font-size: 13px;
  }

  .responsive-table {
    display: none;
  }

  .mobile-transaction-list {
    padding: 11px;
    display: grid;
    gap: 8px;
  }

  .attention-list {
    padding: 11px;
  }

  .attention-list a {
    min-height: 76px;
    padding: 12px;
  }

  .attention-list b {
    font-size: 14px;
  }

  .attention-list small {
    font-size: 12px;
  }

  .form-body {
    padding: 14px;
  }

  .form-section .panel-head {
    padding: 11px 13px;
  }

  .form-section .panel-head h2 {
    font-size: 17px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .form-grid label {
    font-size: 14px;
  }

  .customer-search,
  .filters form {
    display: grid;
  }

  .filters {
    padding: 13px;
  }

  .filters select {
    width: 100%;
    min-width: 0;
  }

  .customer-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .customer-result em {
    grid-column: 2;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid .upload-box:last-child {
    grid-column: 1 / -1;
  }

  .upload-box {
    min-height: 126px;
  }

  .summary-body {
    padding: 15px;
  }

  .summary-row {
    font-size: 14px;
  }

  .amount-card strong {
    font-size: 27px;
  }

  .detail-cards {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .photo-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }

  .customer-grid,
  .due-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .customer-grid {
    padding: 12px;
  }

  .due-card {
    padding: 15px;
  }

  .due-actions {
    flex-direction: column;
  }

  .setting-card {
    min-height: auto;
    padding: 18px;
  }

  .setting-card p {
    min-height: auto;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.07);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-height: 48px;
    padding: 4px 2px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: var(--muted);
    background: #fff;
    border: 0;
    border-radius: 9px;
    font-size: 11px;
  }

  .mobile-nav a.active {
    color: var(--green-dark);
    background: var(--green-soft);
  }

  .mobile-more {
    position: fixed;
    right: 9px;
    bottom: 76px;
    z-index: 59;
    width: min(280px, calc(100vw - 18px));
    padding: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
  }

  .mobile-more.open {
    display: grid;
  }

  .mobile-more a {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    font-size: 15px;
  }

  .mobile-more a:hover {
    background: #f3f5f6;
  }

  .login-body {
    padding: 12px;
  }

  .login-shell {
    width: 100%;
    min-height: 0;
    max-width: 460px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .login-brand {
    display: none;
  }

  .login-card {
    padding: 30px 22px;
  }

  .mobile-brand {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-brand b {
    color: var(--green-dark);
    font-size: 22px;
  }

  .mini-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .login-card h2 {
    font-size: 26px;
  }
}

/* Extra breathing room on large 24-inch and larger displays. */
@media (min-width: 1600px) {
  td {
    padding: 18px 17px;
    font-size: 16px;
  }

  .panel-head h2 {
    font-size: 20px;
  }

  .shortcut b {
    font-size: 17px;
  }

  .kpi small,
  .kpi p {
    font-size: 14px;
  }

  .attention-list b {
    font-size: 16px;
  }

  .attention-list small,
  .form-grid label,
  .summary-row,
  .due-meta {
    font-size: 15px;
  }

  .top-inner,
  .desktop-nav,
  .main-content {
    padding-left: 36px;
    padding-right: 36px;
  }

  .shortcut-grid,
  .kpi-grid,
  .dashboard-grid,
  .pawn-workspace,
  .detail-grid,
  .workspace-main,
  .detail-main {
    gap: 20px;
  }

  .customer-grid,
  .due-grid,
  .settings-grid {
    gap: 16px;
  }
}

.upload-box .upload-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box.has-file {
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-end;
  border-style: solid;
  border-color: var(--green);
  color: #fff;
}

.upload-box.has-file::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(10, 25, 16, 0.78) 100%);
}

.upload-box.has-file > .icon {
  display: none;
}

.upload-box.has-file b,
.upload-box.has-file small {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Context cabang dan waktu pada desktop besar. */
.app-shell {
  min-height: 100vh;
}

.header-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 14px;
  color: var(--green-dark);
  background: var(--green-softer);
  border: 1px solid #d8ebde;
  border-radius: 13px;
  white-space: nowrap;
}

.header-context > .icon {
  width: 21px;
  height: 21px;
}

.header-context > span {
  display: grid;
  line-height: 1.25;
}

.header-context b {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.header-context small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.form-grid input[type="file"] {
  min-height: 54px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fafcfd;
}

.form-grid input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 8px 14px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cce7d5;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
}

.mobile-nav button.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

@media (max-width: 1460px) {
  .header-context {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-context {
    display: none;
  }

  .form-grid input[type="file"] {
    min-height: 52px;
  }
}

/* =========================================================
   V1.2 — TYPOGRAPHY, FORMAT RUPIAH & FOTO TAMBAHAN
   Sistem font mengikuti karakter antarmuka ChatGPT tanpa
   memerlukan file font eksternal/proprietary.
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  letter-spacing: -0.006em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
}

.btn,
.desktop-nav a,
.panel-head h2,
.form-grid label {
  font-weight: 600;
}

/* Input rupiah menampilkan 150.000, 100.000, 10.000 saat diketik. */
.currency-input {
  padding-right: 16px !important;
  text-align: right;
  font-size: 17px !important;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.money-input > span {
  left: 15px;
  color: #43505e;
  font-size: 16px;
  font-weight: 700;
}

.money-input input.currency-input {
  padding-left: 52px;
}

.amount-card strong,
.kpi strong,
.payment-preview strong,
.fee-list b,
td {
  font-variant-numeric: tabular-nums;
}

.photo-section-title {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.photo-section-title h3,
.additional-photo-head h3,
.photo-gallery-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.photo-section-title p,
.additional-photo-head p,
.photo-gallery-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.photo-requirement {
  min-height: 31px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  flex: none;
  color: #9a5700;
  background: #fff4e4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.additional-photo-section {
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.additional-photo-head {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.extra-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.extra-photo-card {
  min-width: 0;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.extra-photo-card:focus-within {
  background: #fff;
  border-color: #a8d6b7;
  box-shadow: 0 0 0 4px rgba(20, 148, 71, 0.07);
}

.extra-photo-card-head {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 38px;
  align-items: end;
  gap: 9px;
}

.extra-photo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  align-self: end;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 11px;
}

.extra-photo-name {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.extra-photo-name > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.extra-photo-name input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  font-size: 14px;
  font-weight: 600;
}

.extra-photo-name input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 148, 71, 0.09);
}

.remove-extra-photo {
  width: 38px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #7a4550;
  background: #fff;
  border: 1px solid #ead8dc;
  border-radius: 9px;
}

.remove-extra-photo:hover {
  color: var(--red);
  background: #fff2f2;
  border-color: #efbcbc;
}

.optional-upload {
  min-height: 138px;
  background: #fff;
}

.additional-photo-footer {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  background: #f7f9fa;
  border-radius: 10px;
}

.additional-photo-footer > span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.additional-photo-footer small {
  font-size: 12px;
}

.photo-gallery-head {
  margin: 4px 20px 13px;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.photo-preview-grid span {
  max-width: calc(100% - 18px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1280px) {
  .extra-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .photo-section-title,
  .additional-photo-head,
  .additional-photo-footer,
  .photo-gallery-head {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-requirement {
    align-self: flex-start;
  }

  .additional-photo-head .btn {
    width: 100%;
  }

  .extra-photo-grid {
    grid-template-columns: 1fr;
  }

  .extra-photo-card {
    padding: 11px;
  }

  .optional-upload {
    min-height: 126px;
  }

  .additional-photo-footer {
    display: grid;
  }

  .photo-gallery-head {
    margin: 2px 12px 11px;
  }
}


/* =========================================================
   CUSTOMER CREATE PAGE
   ========================================================= */
.customer-create-panel {
  max-width: 1180px;
  margin: 0 auto;
}

.customer-create-head {
  padding: 22px 24px;
  align-items: center;
}

.customer-create-head > div > h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.3;
}

.customer-create-head > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.customer-create-body {
  padding: 24px;
}

.customer-form-grid {
  gap: 18px 20px;
}

.customer-form-grid label {
  font-size: 15px;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.customer-photo-preview {
  max-width: 560px;
  margin-top: 20px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.customer-photo-preview-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
}

.customer-photo-preview-title b,
.customer-photo-preview-title small {
  display: block;
}

.customer-photo-preview-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.customer-photo-preview img {
  width: 100%;
  max-height: 320px;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.customer-form-actions {
  padding: 18px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 767px) {
  .customer-create-head,
  .customer-create-body {
    padding: 16px;
  }

  .customer-form-actions {
    padding: 14px 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: sticky;
    bottom: 70px;
    z-index: 8;
    background: rgba(255,255,255,.96);
  }

  .customer-form-actions .btn {
    width: 100%;
  }

  /* Android/mobile: beri ruang agar tombol foto identitas terakhir tidak tertutup action bar sticky. */
  .customer-create-panel .customer-id-photo-grid {
    margin-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   V1.2.2 — KUNCI LAYAR HP & FOTO PELANGGAN DENGAN KTP
   ========================================================= */
.customer-id-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2px;
}

.customer-id-upload {
  min-height: 178px;
  background: #fbfcfd;
}

.device-lock-section {
  margin-top: 20px;
  padding: 18px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.device-lock-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.device-lock-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 12px;
}

.device-lock-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
}

.device-lock-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.device-lock-grid {
  align-items: start;
}

.secret-input-wrap {
  position: relative;
}

.secret-input-wrap input {
  padding-right: 54px !important;
}

.secret-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 9px;
}

.pattern-box {
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pattern-copy b,
.pattern-copy small {
  display: block;
}

.pattern-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.pattern-grid {
  position: relative;
  width: min(300px, 100%);
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pattern-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.pattern-link-line {
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: .82;
  filter: drop-shadow(0 1px 1px rgba(20, 148, 71, .14));
}

.pattern-grid button {
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  min-height: 62px;
  color: var(--text);
  background: #f7f9fa;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  transition: .15s ease;
}

.pattern-grid button:hover,
.pattern-grid button.selected {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(20,148,71,.09);
}

.pattern-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.pattern-result-row > span {
  color: var(--muted);
}

.pattern-result-row > b {
  min-width: 120px;
  font-variant-numeric: tabular-nums;
}

.btn-small {
  min-height: 36px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

.security-note {
  margin-top: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #365143;
  background: #eef8f1;
  border: 1px solid #d0e8d7;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.device-lock-detail {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.device-lock-detail > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.device-lock-detail > div:first-child span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.device-secret-line {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-secret-line code {
  min-width: 110px;
  padding: 8px 10px;
  color: #27323d;
  background: #f3f5f7;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: .04em;
}

.sensitive-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.customer-document-grid {
  margin: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 12px;
}

.customer-document-grid a {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.customer-document-grid img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.customer-document-grid span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(17,24,39,.76);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 767px) {
  .customer-id-photo-grid {
    grid-template-columns: 1fr;
  }

  .customer-id-upload {
    min-height: 150px;
  }

  .device-lock-section {
    padding: 14px;
  }

  .pattern-grid {
    width: min(270px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .pattern-grid button {
    min-height: 58px;
  }

  .customer-document-grid {
    margin: 0 12px 14px;
    grid-template-columns: 1fr;
  }

  .customer-document-grid img {
    height: 220px;
  }
}


/* =========================================================
   V1.2.4 — KAMERA / WEBCAM LANGSUNG
   ========================================================= */
.photo-capture-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-capture-card > .upload-box {
  width: 100%;
  flex: 1 1 auto;
}

.photo-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-action-btn {
  min-height: 44px;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.photo-action-btn:hover {
  color: var(--green-dark);
  background: var(--green-softer);
  border-color: var(--green);
}

.photo-action-btn:active { transform: translateY(1px); }
.photo-action-btn svg { flex: 0 0 auto; }

.camera-open { overflow: hidden; }

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 22px;
  display: none;
  place-items: center;
  background: rgba(12, 18, 28, .76);
  backdrop-filter: blur(6px);
}

.camera-modal.open { display: grid; }

.camera-dialog {
  width: min(1020px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
}

.camera-dialog-head {
  padding: 20px 22px 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.camera-eyebrow {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .7px;
}

.camera-dialog-head h2 {
  margin: 4px 0 3px;
  font-size: 25px;
  line-height: 1.2;
}

.camera-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.camera-icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #475467;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.camera-toolbar {
  padding: 0 22px 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.camera-device-field {
  min-width: 280px;
  display: grid;
  gap: 6px;
  color: #52606d;
  font-size: 12px;
  font-weight: 800;
}

.camera-device-field select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.camera-switch-btn { min-height: 44px; }

.camera-stage {
  position: relative;
  width: calc(100% - 44px);
  aspect-ratio: 16 / 9;
  margin: 0 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0c1119;
  border-radius: 16px;
}

.camera-stage video,
.camera-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c1119;
}

.camera-guide {
  position: absolute;
  inset: 7%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 14px;
}

.camera-guide::before,
.camera-guide::after,
.camera-guide span::before,
.camera-guide span::after {
  position: absolute;
  width: 42px;
  height: 42px;
  content: '';
  border-color: rgba(255,255,255,.9);
  border-style: solid;
}
.camera-guide::before { left:-1px; top:-1px; border-width:3px 0 0 3px; border-radius:10px 0 0 0; }
.camera-guide::after { right:-1px; top:-1px; border-width:3px 3px 0 0; border-radius:0 10px 0 0; }
.camera-guide span::before { left:-1px; bottom:-1px; border-width:0 0 3px 3px; border-radius:0 0 0 10px; }
.camera-guide span::after { right:-1px; bottom:-1px; border-width:0 3px 3px 0; border-radius:0 0 10px 0; }
.camera-stage.is-captured .camera-guide { display:none; }

.camera-loading {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0,0,0,.6);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.camera-message {
  min-height: 43px;
  padding: 11px 22px 0;
  color: #52606d;
  font-size: 13px;
  line-height: 1.55;
}

.camera-dialog-actions {
  padding: 14px 22px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.camera-dialog-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 700px) {
  .camera-modal { padding: 0; align-items: end; }
  .camera-dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 20px 20px 0 0;
  }
  .camera-dialog-head { padding: 16px 14px 11px; }
  .camera-dialog-head h2 { font-size: 20px; }
  .camera-toolbar { padding: 0 14px 10px; align-items: stretch; }
  .camera-device-field { min-width: 0; flex: 1; }
  .camera-switch-btn { width: 48px; padding: 0; font-size: 0; }
  .camera-stage { width: calc(100% - 28px); margin: 0 14px; aspect-ratio: 3 / 4; }
  .camera-message { padding-left: 14px; padding-right: 14px; }
  .camera-dialog-actions { padding: 11px 14px calc(14px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:1fr 1fr; }
  .camera-dialog-actions .btn { justify-content:center; }
  .photo-action-row { grid-template-columns: 1fr 1fr; }
  .photo-action-btn { min-height: 46px; font-size: 12px; }
}

@media (max-width: 767px) {
  .photo-grid > .photo-capture-card:last-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   V1.2.5 - MASTER MEREK & TIPE HP
   ========================================================= */
.panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.master-field-help {
  min-height: 20px;
  margin-top: 1px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.setting-card-featured {
  background: linear-gradient(145deg, #ffffff 0%, #f4fff7 100%);
  border-color: #cfe9d7;
}

.page-eyebrow {
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .65px;
}

.master-page-head {
  align-items: flex-end;
}

.master-stats {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 220px 260px minmax(320px, 1fr);
  gap: 12px;
}

.master-stat-card {
  min-height: 100px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.master-stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green-dark);
  background: var(--green-softer);
  border-radius: 13px;
}

.master-stat-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.master-stat-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.master-stat-wide strong {
  font-size: 19px;
}

.master-entry-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 14px;
}

.master-entry-card .panel-head > .icon {
  color: var(--green-dark);
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.master-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.master-model-form {
  display: grid;
  grid-template-columns: .72fr 1.28fr auto;
  align-items: end;
  gap: 10px;
}

.master-inline-form label,
.master-model-form label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.master-inline-form input,
.master-model-form input,
.master-model-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.master-list-panel {
  margin-bottom: 16px;
}

.master-list-head {
  min-height: 76px;
}

.master-brand-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.master-brand-card {
  min-height: 80px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.master-brand-card.is-inactive {
  background: #f8f9fa;
  opacity: .72;
}

.master-brand-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-initial {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green-dark);
  background: var(--green-softer);
  border-radius: 11px;
  font-size: 17px;
  font-weight: 900;
}

.master-brand-main strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-brand-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.master-table th,
.master-table td {
  vertical-align: middle;
}

.align-right { text-align: right !important; }
.inline-form { display: inline; }
.row-muted { opacity: .62; }

.master-empty {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}
.master-empty > .icon { color: var(--green-dark); }
.master-empty h3 { margin: 10px 0 5px; color: var(--text); }
.master-empty p { max-width: 580px; margin: 0 auto; line-height: 1.55; }

@media (max-width: 1250px) {
  .master-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .master-entry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .master-stats { grid-template-columns: 1fr 1fr; }
  .master-stat-wide { grid-column: 1 / -1; }
  .master-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .master-model-form { grid-template-columns: 1fr 1fr; }
  .master-model-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .panel-head-actions { width: 100%; justify-content: stretch; }
  .panel-head-actions .btn { flex: 1; }
  .master-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .master-stat-card { min-height: 86px; padding: 13px; }
  .master-stat-card strong { font-size: 20px; }
  .master-stat-wide { grid-column: 1 / -1; }
  .master-entry-grid { gap: 10px; }
  .master-inline-form,
  .master-model-form { grid-template-columns: 1fr; }
  .master-model-form .btn { grid-column: auto; }
  .master-brand-grid { grid-template-columns: 1fr; padding: 10px; }
  .master-page-head { align-items: stretch; }
  .master-page-head .btn { width: 100%; }
}

.master-model-field {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.quick-model-wrap {
  padding: 11px;
  background: #f6fbf7;
  border: 1px solid #d5eadb;
  border-radius: 11px;
}

.quick-model-wrap input {
  margin-top: 1px;
}

/* =========================================================
   V1.2.6 - SEARCHABLE MEREK & TIPE HP
   ========================================================= */
.searchable-master-field {
  position: relative;
  min-width: 0;
}

.searchable-master-field input {
  padding-right: 46px !important;
}

.master-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #75808d;
  transform: translateY(-50%);
  pointer-events: none;
}

.searchable-master-field input:focus + datalist + .master-search-icon,
.searchable-master-field input:focus ~ .master-search-icon {
  color: var(--green-dark);
}

.searchable-master-field input:disabled {
  color: #7b8490;
  background: #f4f6f7;
  cursor: not-allowed;
}

@media (min-width: 1200px) {
  .searchable-master-field input {
    min-height: 54px;
    font-size: 16px;
  }
}

/* =========================================================
   V1.2.8 — ACTION SPACING & PROFESSIONAL NOTIFICATIONS
   ========================================================= */
.pawn-summary-actions {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.pawn-summary-actions + .summary-note {
  display: block;
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

.button-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: app-spin .7s linear infinite;
}

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

body.dialog-open { overflow: hidden; }

.app-toast-stack {
  position: fixed;
  z-index: 10050;
  top: 92px;
  right: 24px;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.app-toast {
  position: relative;
  min-height: 82px;
  padding: 16px 44px 17px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: start;
  overflow: hidden;
  color: var(--text);
  background: rgba(255,255,255,.985);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(25,36,48,.18), 0 3px 10px rgba(25,36,48,.08);
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}

.app-toast.show { opacity: 1; transform: translateY(0) scale(1); }

.app-toast-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.app-toast.success .app-toast-icon { color: #118240; background: #eaf8ef; }
.app-toast.warning .app-toast-icon { color: #9a5b0a; background: #fff4df; }
.app-toast.danger .app-toast-icon { color: #b53030; background: #ffeded; }
.app-toast.info .app-toast-icon { color: #2461b2; background: #edf5ff; }

.app-toast-copy strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.app-toast-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.app-toast-close {
  position: absolute;
  top: 12px;
  right: 11px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.app-toast-close:hover { color: var(--text); background: #f2f5f7; }

.app-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transform-origin: left;
  animation: app-toast-progress 4.8s linear forwards;
}
.app-toast.success .app-toast-progress { background: #23a158; }
.app-toast.warning .app-toast-progress { background: #d68a22; }
.app-toast.danger .app-toast-progress { background: #d34d4d; animation-duration: 6.5s; }
.app-toast.info .app-toast-progress { background: #4580cd; }
@keyframes app-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.app-confirm-layer {
  position: fixed;
  z-index: 10100;
  inset: 0;
  padding: 24px;
  display: none;
  place-items: center;
  background: rgba(17,27,38,.48);
  backdrop-filter: blur(5px);
}

.app-confirm-layer.open { display: grid; animation: app-fade-in .16s ease both; }
@keyframes app-fade-in { from { opacity: 0; } to { opacity: 1; } }

.app-confirm-card {
  position: relative;
  width: min(500px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(13,26,37,.30);
  animation: app-dialog-in .2s ease both;
}

@keyframes app-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-confirm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f5f7f8;
  border: 0;
  border-radius: 11px;
  font-size: 22px;
  line-height: 1;
}
.app-confirm-close:hover { color: var(--text); background: #edf1f3; }

.app-confirm-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}
.app-confirm-layer.success .app-confirm-icon { color:#128240; background:#e9f8ef; }
.app-confirm-layer.warning .app-confirm-icon { color:#9b5d0a; background:#fff4df; }
.app-confirm-layer.danger .app-confirm-icon { color:#b53030; background:#ffeded; }
.app-confirm-layer.info .app-confirm-icon { color:#2461b2; background:#edf5ff; }

.app-confirm-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.15px;
}

.app-confirm-copy h2 {
  margin: 0 44px 9px 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.35px;
}

.app-confirm-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.app-confirm-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .app-toast-stack { top: 72px; right: 12px; width: calc(100vw - 24px); }
  .app-toast { min-height: 76px; padding: 14px 42px 15px 13px; grid-template-columns: 38px minmax(0,1fr); }
  .app-toast-icon { width: 38px; height: 38px; border-radius: 10px; }
  .app-confirm-layer { padding: 14px; align-items: end; }
  .app-confirm-card { padding: 24px 18px 18px; border-radius: 20px 20px 14px 14px; }
  .app-confirm-copy h2 { font-size: 21px; }
  .app-confirm-actions { grid-template-columns: 1fr; }
  .app-confirm-actions [data-app-confirm-ok] { order: -1; }
  .pawn-summary-actions { gap: 12px; }
}

.master-filter-bar {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 240px auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.master-filter-search { min-width: 0; }
.master-filter-bar select { min-height: 50px; }
.master-filter-count { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 800px) {
  .master-filter-bar { grid-template-columns: 1fr; }
  .master-filter-count { white-space: normal; }
}


/* GADAIPRO_WHATSAPP_BRAND_FIX_V1 */
.btn-whatsapp {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #087d37 !important;
  background: #eaf9ef !important;
  border: 1px solid #b9e5c8 !important;
  font-weight: 750;
}
.btn-whatsapp .icon,
.btn-whatsapp svg {
  width: 21px !important;
  height: 21px !important;
  flex: 0 0 auto;
  color: #25D366 !important;
  fill: currentColor;
  stroke: none;
}
.btn-whatsapp:hover {
  color: #05662c !important;
  background: #ddf6e6 !important;
  border-color: #94d8ab !important;
  box-shadow: 0 7px 18px rgba(37, 211, 102, .12);
}
.btn-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .22);
  outline-offset: 2px;
}
/* END_GADAIPRO_WHATSAPP_BRAND_FIX_V1 */

/* =========================================================
   V1.2.10 — CHECKLIST PEMERIKSAAN FUNGSI HP
   ========================================================= */
.device-check-section {
  margin-top: 20px;
  padding: 18px;
  background: #f8fbf9;
  border: 1px solid #cfe7d8;
  border-radius: 14px;
}
.device-check-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.device-check-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.device-check-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.device-check-hint {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.device-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.device-check-item {
  position: relative;
  min-height: 52px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #24313d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.device-check-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.device-check-box {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 2px solid #b7c1c9;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
}
.device-check-item:has(input:checked) {
  color: #086d32;
  background: #f0faf4;
  border-color: #55b979;
  box-shadow: 0 0 0 2px rgba(20,148,71,.08);
}
.device-check-item input:checked + .device-check-box {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.device-check-note {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #536170;
  font-size: 12.5px;
}
.device-condition-detail {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8ec;
}
.device-condition-title {
  margin-bottom: 8px;
  color: #536170;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.device-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.device-condition-status {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}
.device-condition-status.is-ok {
  color: #067333;
  background: #eaf8ef;
  border: 1px solid #bfe8cc;
}
.device-condition-status.is-warning {
  color: #9a5b00;
  background: #fff7e8;
  border: 1px solid #efcf92;
}
@media (max-width: 980px) {
  .device-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .device-check-section { padding: 14px; }
  .device-check-head { display: block; }
  .device-check-hint { display: inline-block; margin-top: 9px; }
  .device-check-grid { grid-template-columns: 1fr; }
  .device-check-item { min-height: 50px; font-size: 15px; }
}

/* LIGHTSTORE_HIDE_MAIN_PAWN_NEW_NAV_V1 */
/* Sembunyikan hanya menu Gadai Baru pada navigasi utama desktop dan HP. */
.desktop-nav > a[href="index.php?page=pawn-new"],
.mobile-nav > a[href="index.php?page=pawn-new"] {
  display: none !important;
}

/* LIGHTSTORE_HIDE_ALL_PAWN_NEW_LINKS_V2 */
/* Sembunyikan semua tombol/link Gadai Baru dari UI, tanpa menghapus halaman pawn-new. */
a[href*="page=pawn-new"],
button[data-href*="page=pawn-new"] {
  display: none !important;
}

/* LIGHTSTORE_ANDROID_PAYMENT_NAV_CSS_V1 */
/* Enam menu bawah di Android: tetap muat, nyaman disentuh, dan responsif. */
@media (max-width: 767px) {
  .mobile-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .mobile-nav > a {
    min-width: 0 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .mobile-nav > a > span {
    max-width: 100%;
    font-size: 10.5px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .mobile-nav > a[data-mobile-payment-nav="1"] svg {
    display: block;
    flex: 0 0 auto;
  }
}

@media (max-width: 390px) {
  .mobile-nav > a > span {
    font-size: 9.5px !important;
  }
}

/* LIGHTSTORE_DEVICE_LOCK_PRO_V1
   Hanya merapikan tampilan bagian Kunci Layar HP.
   Tidak mengubah fungsi / data / proses transaksi.
*/
.device-lock-section {
  margin-top: 22px !important;
  padding: 20px 22px !important;
  background: #ffffff !important;
  border: 1px solid #dbe4ec !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .045) !important;
}

.device-lock-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.device-lock-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  flex: 0 0 44px !important;
}

.device-lock-head > div:last-child {
  min-width: 0 !important;
}

.device-lock-head h3 {
  margin: 0 0 4px !important;
  font-size: 19px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #172033 !important;
}

.device-lock-head p {
  margin: 0 !important;
  max-width: 980px !important;
  color: #5c6b7a !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.device-lock-section .device-lock-grid {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) !important;
  gap: 18px 22px !important;
  align-items: start !important;
}

.device-lock-section .device-lock-grid > label {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  color: #26364a !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.device-lock-section .device-lock-grid select,
.device-lock-section .device-lock-grid input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 10px !important;
  border: 1px solid #ccd8e3 !important;
  background: #fff !important;
  font-size: 15px !important;
}

.device-lock-section .device-lock-grid select:focus,
.device-lock-section .device-lock-grid input:focus {
  border-color: #4ba9e8 !important;
  box-shadow: 0 0 0 3px rgba(75,169,232,.13) !important;
  outline: 0 !important;
}

.device-lock-section .secret-input-wrap {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

.device-lock-section .secret-input-wrap input {
  padding-right: 58px !important;
}

.device-lock-section .secret-toggle {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
}

.device-lock-section .field-help {
  display: block !important;
  margin: 0 !important;
  max-width: 100% !important;
  color: #6b7b8c !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  white-space: normal !important;
}

.device-lock-section .pattern-box {
  margin-top: 18px !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
}

.device-lock-section .security-note {
  margin-top: 18px !important;
  padding: 12px 14px !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

.device-lock-section .security-note svg {
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  .device-lock-section {
    padding: 17px !important;
  }

  .device-lock-section .device-lock-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 560px) {
  .device-lock-section {
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .device-lock-head {
    align-items: flex-start !important;
    gap: 11px !important;
  }

  .device-lock-head h3 {
    font-size: 17px !important;
  }

  .device-lock-head p {
    font-size: 13px !important;
  }

  .device-lock-section .device-lock-grid select,
  .device-lock-section .device-lock-grid input {
    min-height: 46px !important;
    height: 46px !important;
  }

  .device-lock-section .secret-toggle {
    top: 3px !important;
  }
}
