:root{
  --bg:#f6f8fb;
  --panel:#ffffff;
  --panel-soft:#fbfcfe;
  --text:#1f2937;
  --muted:#667085;
  --line:#dde5ee;
  --line-strong:#c8d3df;
  --brand:#1f3a5f;
  --brand-2:#2d5baf;
  --brand-soft:#eef4ff;
  --danger:#a11d1d;
  --danger-soft:#fef2f2;
  --success:#166534;
  --success-soft:#ecfdf5;
  --warning:#9a6700;
  --warning-soft:#fff7e6;
  --radius:16px;
  --shadow:0 10px 28px rgba(15,23,42,.05);
  --shadow-soft:0 6px 18px rgba(15,23,42,.04);
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit}
.crm-topbar{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(8px)}
.crm-topbar-inner{max-width:1560px;margin:0 auto;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.crm-brand{display:flex;align-items:center;gap:12px;min-width:0}
.crm-logo{height:42px;display:block;max-width:100%}
.crm-nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.crm-nav-link{text-decoration:none;color:var(--brand);background:#f8fafc;border:1px solid var(--line);padding:10px 14px;border-radius:12px;font-size:14px;font-weight:700;line-height:1;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease}
.crm-nav-link:hover{background:#f1f5f9;border-color:var(--line-strong);box-shadow:var(--shadow-soft)}
.crm-nav-link.active{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 8px 22px rgba(31,58,95,.18)}
.crm-nav-link.logout{color:#8b1e1e}
.page{max-width:1560px;margin:0 auto;padding:28px 22px 40px}
.page-title{margin:0 0 6px;font-size:30px;font-weight:800;letter-spacing:-.02em}
.page-subtitle{margin:0 0 22px;color:var(--muted);font-size:15px}
.section-title{margin:28px 0 14px;font-size:18px;font-weight:800}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
.panel h2{margin:0 0 16px;font-size:20px;color:#182536}
.label{display:block;margin:0 0 7px;font-weight:700;font-size:13px;color:#425466}
input,select,textarea,button{font:inherit}
input,select,textarea{width:100%;min-width:0;padding:12px 13px;border:1px solid #cfd8e3;border-radius:12px;background:#fff;font-size:14px;color:var(--text);outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
input::placeholder,textarea::placeholder{color:#94a3b8}
input:hover,select:hover,textarea:hover{border-color:#bac8d7}
input:focus,select:focus,textarea:focus{border-color:#8cabd4;box-shadow:0 0 0 3px rgba(45,91,175,.10);background:#fff}
textarea{min-height:120px;resize:vertical}
input[type="checkbox"]{width:auto;min-width:auto;padding:0;box-shadow:none;accent-color:var(--brand)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.row-3{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(110px,.7fr) minmax(180px,1.3fr);gap:14px;margin-bottom:14px}
.row-tight-3{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(180px,1.2fr) minmax(180px,1.2fr);gap:14px;margin-bottom:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:12px 16px;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 8px 18px rgba(31,58,95,.16)}
.btn-primary:hover{background:#223f68}
.btn-light{background:#fff;color:var(--brand);border-color:var(--line)}
.btn-light:hover{background:#f8fafc;border-color:var(--line-strong)}
.btn-dark{background:#334155;color:#fff}
.btn-dark:hover{background:#293548}
.btn-blue{background:var(--brand-2);color:#fff;box-shadow:0 8px 18px rgba(45,91,175,.16)}
.btn-blue:hover{background:#264e97}
.msg{padding:12px 14px;border-radius:12px;margin-bottom:14px;font-size:14px}
.ok{background:var(--success-soft);color:var(--success);border:1px solid #bbf7d0}
.err{background:var(--danger-soft);color:#991b1b;border:1px solid #fecaca}
.layout-split{display:grid;grid-template-columns:minmax(430px,540px) minmax(0,1fr);gap:20px;align-items:start}
.layout-record{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:20px;align-items:start}
.stack{display:grid;gap:20px}
.grid-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.card h3{margin:0 0 8px;color:var(--muted);font-size:14px;font-weight:700}
.num{font-size:34px;font-weight:800;line-height:1;color:#182536}
.pill{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.badge{display:inline-block;background:var(--brand-soft);color:var(--brand-2);border-radius:999px;padding:5px 8px;font-size:12px;font-weight:700;margin-right:6px;margin-top:6px}
.filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(160px,1fr)) auto;gap:10px;align-items:end;margin-bottom:16px}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:8px}
.small-table,table{width:100%;border-collapse:collapse}
.small-table th,.small-table td,th,td{padding:12px 10px;border-bottom:1px solid #e9eff5;text-align:left;font-size:14px;vertical-align:top}
.small-table tbody tr:hover,tbody tr:hover{background:#fbfdff}
.small-table th,th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;background:#fbfcfe}
.link{color:var(--brand);text-decoration:none;font-weight:700}
.link:hover{text-decoration:underline}
.info-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f7;font-size:14px}
.info-row b{color:#314155}
.info-row:last-child{border-bottom:0}

.file-list{list-style:none;margin:0;padding:0}
.file-list li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.file-list li:last-child{border-bottom:0}
.file-entry-main{
  min-width:0;
  flex:1 1 auto;
}
.file-entry-name{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
  display:inline-block;
  max-width:100%;
  word-break:break-word;
}
.file-entry-name:hover{text-decoration:underline}
.file-entry-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.file-entry-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.file-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#f8fafc;
  color:#334155;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  line-height:1;
  transition:all .15s ease;
}
.file-action:hover{
  background:#eef4f8;
  border-color:var(--line-strong);
}
.file-action.download{
  color:var(--brand);
}
.file-action.delete{
  background:#fff5f5;
  border-color:#fecaca;
  color:#991b1b;
}
.file-action.delete:hover{
  background:#fee2e2;
}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.empty-box{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:12px;padding:18px;color:var(--muted)}
.muted{color:var(--muted)}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#f4f7fa 0%,#eef3f7 100%)}
.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 45px rgba(15,23,42,.10);padding:34px 30px 30px}
.login-logo{display:block;max-width:230px;height:auto;margin:0 auto 18px}
.login-title{text-align:center;margin:0 0 6px;font-size:26px;font-weight:800;color:var(--brand)}
.login-subtitle{text-align:center;margin:0 0 24px;color:var(--muted);font-size:14px}
.login-card .btn{width:100%;margin-top:8px;padding:13px 16px}
@media (max-width:1280px){.layout-split{grid-template-columns:1fr}.layout-record{grid-template-columns:1fr}.grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.crm-topbar-inner{align-items:flex-start;flex-direction:column}.crm-nav{justify-content:flex-start}.row,.row-3,.row-tight-3,.filters,.grid-cards{grid-template-columns:1fr}.page{padding:20px 14px 30px}.page-title{font-size:24px}.panel{padding:16px}.login-card{padding:28px 20px 22px}}

.page-narrow{max-width:1100px}
.page-actions-between{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.form-grid{display:grid;gap:14px;margin-bottom:14px}
.form-group{min-width:0}
.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cols-address{grid-template-columns:minmax(220px,1.4fr) minmax(90px,.55fr) minmax(180px,1.1fr) minmax(110px,.65fr)}
.cols-upload{grid-template-columns:minmax(0,1fr) 180px}
.form-group-xs{max-width:140px}
.form-group-sm{max-width:170px}
.flags-row{align-items:start}
.check-stack{display:grid;gap:10px;padding-top:10px}
.check-stack label{display:flex;align-items:flex-start;gap:8px;color:#334155;font-size:14px}
.filter-buttons{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.filters-records{grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr)}
.small-text{font-size:12px}
.pill.soft{background:color-mix(in srgb, var(--soft-color) 12%, white);color:var(--soft-color);border:1px solid color-mix(in srgb, var(--soft-color) 18%, white)}
.btn-danger-tool{background:#8b1e1e;color:#fff;box-shadow:0 8px 18px rgba(139,30,30,.14)}
.btn-danger-tool:hover{background:#741717}
.btn-outline-danger{background:#fff;color:#8b1e1e;border-color:#efc3c3}
.btn-outline-danger:hover{background:#fff5f5;border-color:#e5aaaa}
.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.status-box{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.status-box h3{margin:0 0 6px;font-size:14px;color:var(--muted)}
.status-box .value{font-size:24px;font-weight:800;color:#182536}
.status-box .note{margin-top:6px;font-size:12px;color:var(--muted)}
.note-box{padding:14px 16px;border-radius:14px;background:#f8fafc;border:1px solid var(--line);color:#334155;font-size:14px;line-height:1.55}
.priority-box{padding:16px;border-radius:16px;border:1px solid #ecd8b1;background:#fff9ed}
.priority-box h3{margin:0 0 6px;font-size:15px;color:#7c4a03}
.priority-box p{margin:0;color:#7a5a2d;line-height:1.55}
.actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.actions-grid .btn{width:100%}
.info-table td:first-child{width:32%;color:var(--muted);font-weight:700}
.info-table td:last-child{font-weight:600;color:#1f2937}
.notice-inline{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:#fff7e6;color:#9a6700;border:1px solid #f3d9a7;font-size:12px;font-weight:800}
.notice-inline.alert{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.help-inline{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}
.block-title{margin:0 0 12px;font-size:18px;font-weight:800;color:#182536}
.block-subtitle{margin:-4px 0 14px;color:var(--muted);font-size:13px}
.inline-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.inline-form .form-group{flex:1 1 220px}
.note-history{display:grid;gap:10px}
.note-item{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.note-item-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px;color:var(--muted);font-size:12px}
.note-item-body{white-space:pre-wrap;line-height:1.55;color:#334155;font-size:14px}
.note-item.is-priority{border-color:#f0d29a;background:#fffaf0}
.note-item.is-action{border-color:#cfe0f4;background:#f9fbff}
.note-item.is-danger{border-color:#f6c8c8;background:#fff7f7}
.section-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:grid;place-items:center;padding:18px;z-index:100}
.modal-card{width:min(560px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 60px rgba(15,23,42,.16);padding:22px}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.modal-title{margin:0;font-size:22px;font-weight:800;color:#182536}
.modal-close{border:0;background:#f8fafc;color:#334155;width:38px;height:38px;border-radius:12px;font-size:20px;line-height:1;cursor:pointer}
.modal-text{margin:0 0 14px;color:var(--text)}
.danger-text{color:#8b1e1e;font-weight:700}
@media (max-width:760px){.cols-2,.cols-3,.cols-address,.cols-upload,.filters-records{grid-template-columns:1fr}.form-group-xs,.form-group-sm{max-width:none}.page-actions-between{align-items:stretch}.filter-buttons{display:grid;grid-template-columns:1fr 1fr}}

.toolbar-vertical{display:grid;grid-template-columns:1fr;gap:12px}
.tool-buttons-wide .btn{padding:13px 16px;justify-content:flex-start;transition:all .15s ease}
.tool-buttons-wide .btn:hover{opacity:.98;transform:translateY(-1px)}

.file-upload-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
}
.file-upload-grid .form-group{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-width:0;
  margin:0;
}

.file-picker{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-height:50px;
  padding:8px 10px;
  border:1px solid #cfd8e3;
  border-radius:12px;
  background:var(--panel-soft);
  cursor:pointer;
  transition:all .15s ease;
  overflow:hidden;
}
.file-picker:hover{border-color:#9fb4cd;background:#f7fbff}
.file-picker:focus-within{border-color:#8cabd4;box-shadow:0 0 0 3px rgba(45,91,175,.10);background:#fff}
.file-input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.file-picker-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:138px;
  max-width:170px;
  padding:9px 12px;
  border-radius:10px;
  background:#334155;
  color:#fff;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
}
.file-picker-name{
  display:block;
  min-width:0;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#334155;
  font-size:13px;
  font-weight:600;
  padding-right:4px;
}
.file-upload-submit{
  width:auto !important;
  min-width:138px;
  min-height:50px;
  padding:12px 18px;
  justify-content:center;
  align-self:end;
  flex:0 0 auto;
}

.card-link{display:block;text-decoration:none;color:inherit}
.card-link:hover{transform:translateY(-2px)}
.card-emphasis{background:linear-gradient(135deg,#2b4469 0%,#334155 100%);color:#fff}
.card-emphasis h3{color:#dbe6f3}
.summary-pill{margin-top:10px;background:#edf2f7;color:#0f172a}
.summary-pill.dark{background:rgba(255,255,255,.14);color:#fff}
.dashboard-top-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard-renewals-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:8px}
.dashboard-matrix th,.dashboard-matrix td{text-align:center}
.dashboard-matrix th:first-child,.dashboard-matrix td:first-child{text-align:left}
.matrix-link{display:inline-flex;min-width:56px;justify-content:center;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #dbe2ea;text-decoration:none;color:#0f172a;font-weight:800}
.matrix-link:hover{background:#eef4f8}
.matrix-link.total{background:var(--brand);color:#fff;border-color:var(--brand)}

.dashboard-scroll-panel{
  height:380px;
  overflow-y:auto;
  overflow-x:auto;
}

.dashboard-scroll-panel table{
  margin:0;
}

.dashboard-table-compact thead th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:2;
}

@media (max-width:1280px){
  .dashboard-top-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:900px){
  .file-upload-grid{grid-template-columns:1fr}
  .file-picker{grid-template-columns:1fr}
  .file-picker-button{width:100%;max-width:none;min-width:0}
  .file-upload-submit{width:100% !important;min-width:0;align-self:auto}
}

@media (max-width:760px){
  .dashboard-top-grid,.dashboard-renewals-grid{grid-template-columns:1fr}
  .file-upload-grid{grid-template-columns:1fr}
  .file-picker{grid-template-columns:1fr;align-items:stretch}
  .tool-buttons-wide .btn{justify-content:center}
  .file-upload-submit{width:100% !important;min-width:0}
  .file-list li{flex-direction:column;align-items:stretch}
  .file-entry-actions{justify-content:flex-start}
  .dashboard-scroll-panel{height:300px}
}

/* records.php only — search row up, dates/actions row down */
.filters.filters-records{
  grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr);
  gap:10px;
  align-items:end;
}

.filters.filters-records .form-group:nth-child(1),
.filters.filters-records .form-group:nth-child(2),
.filters.filters-records .form-group:nth-child(3),
.filters.filters-records .form-group:nth-child(4){
  grid-column:auto;
}

.filters.filters-records .form-group:nth-child(5),
.filters.filters-records .form-group:nth-child(6){
  grid-column:span 1;
}

.filters.filters-records .filter-buttons{
  grid-column:span 2;
  justify-content:flex-start;
  align-items:end;
  flex-wrap:wrap;
}

.filters.filters-records .filter-buttons .btn{
  min-width:140px;
}

@media (max-width:760px){
  .filters.filters-records{
    grid-template-columns:1fr;
  }

  .filters.filters-records .form-group:nth-child(1),
  .filters.filters-records .form-group:nth-child(2),
  .filters.filters-records .form-group:nth-child(3),
  .filters.filters-records .form-group:nth-child(4),
  .filters.filters-records .form-group:nth-child(5),
  .filters.filters-records .form-group:nth-child(6),
  .filters.filters-records .filter-buttons{
    grid-column:auto;
  }

  .filters.filters-records .filter-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:520px){
  .filters.filters-records .filter-buttons{
    grid-template-columns:1fr;
  }
}

/* upload_customer.php — stronger separation / mobile readability */
.upload-customer-page{
  max-width:980px;
}

.upload-shell{
  padding:28px;
  border-radius:22px;
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}

.upload-customer-page .page-title{
  margin-bottom:8px;
  font-size:32px;
  line-height:1.1;
  color:#182536;
}

.upload-customer-page .page-subtitle{
  margin-bottom:20px;
  font-size:15px;
  color:var(--muted);
}

.upload-intro{
  margin-bottom:12px;
  padding:14px 16px;
  border:1px solid #dbe7f5;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff 0%, #f3f7fd 100%);
  color:#334155;
  font-size:14px;
  line-height:1.6;
}

.upload-customer-page form{
  margin-top:22px;
}

.upload-doc-card{
  margin:0 0 22px;
  padding:18px;
  border:1px solid #dbe4ef;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.upload-doc-title{
  display:block;
  margin:0 0 10px;
  padding-bottom:10px;
  border-bottom:1px solid #edf2f7;
  font-size:18px;
  line-height:1.3;
  font-weight:800;
  color:#1f2f46;
}

.upload-doc-help{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.upload-status-group{
  margin:0 0 14px;
  padding:12px 0 0;
}

.upload-files-group{
  margin:0;
  padding:2px 0 0;
}

.upload-status-group .label,
.upload-files-group .label{
  margin-bottom:8px;
  font-size:13px;
  font-weight:800;
  color:#425466;
}

.upload-files-help{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.upload-existing-box{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #d9e4ef;
  border-radius:12px;
  background:#f8fbfe;
}

.upload-existing-title{
  margin:0 0 8px;
  font-size:12px;
  font-weight:800;
  color:#22324a;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.upload-existing-item{
  padding:8px 0;
  border-bottom:1px solid #e8eef5;
  font-size:13px;
  color:#334155;
  line-height:1.5;
}

.upload-existing-item:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.upload-existing-date{
  color:#667085;
  font-size:12px;
}

.upload-note-history{
  margin-top:6px;
  margin-bottom:18px;
}

.upload-customer-page textarea[name="customer_note"]{
  min-height:130px;
}

.upload-customer-page .toolbar{
  margin-top:20px;
}

.upload-customer-page .toolbar .btn{
  min-width:180px;
  padding:13px 18px;
}

.upload-customer-page .msg.ok,
.upload-customer-page .msg.err{
  margin-bottom:16px;
}

@media (max-width:760px){
  .upload-shell{
    padding:18px 14px;
    border-radius:16px;
  }

  .upload-customer-page .page-title{
    font-size:26px;
  }

  .upload-customer-page .page-subtitle{
    margin-bottom:16px;
  }

  .upload-intro{
    margin-bottom:10px;
    padding:12px 13px;
    font-size:13px;
    line-height:1.55;
  }

  .upload-customer-page form{
    margin-top:18px;
  }

  .upload-doc-card{
    margin-bottom:18px;
    padding:14px;
    border-radius:16px;
  }

  .upload-doc-title{
    margin-bottom:8px;
    padding-bottom:8px;
    font-size:17px;
    line-height:1.28;
  }

  .upload-doc-help{
    margin-bottom:12px;
    font-size:13px;
  }

  .upload-status-group{
    margin-bottom:12px;
    padding-top:10px;
  }

  .upload-files-group{
    padding-top:0;
  }

  .upload-customer-page .toolbar .btn{
    width:100%;
    min-width:0;
  }
}

.dashboard-dual-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}
.dashboard-section-card{
  min-width:0;
}
.dashboard-section-title{
  margin-top:0;
}
.dashboard-scroll-panel{
  height:420px;
  min-width:0;
}
.dashboard-date-cell,
.dashboard-priority-cell{
  display:grid;
  gap:6px;
  min-width:0;
}
.dashboard-date-cell strong,
.dashboard-priority-cell strong{
  font-size:13px;
  color:#182536;
  word-break:break-word;
}
.dashboard-date-badge{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:4px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#264e97;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}
.dashboard-date-badge.is-alert{
  background:#fff4e5;
  color:#9a6700;
}
.dashboard-meta-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}
.dashboard-table-compact td{
  min-width:0;
}
@media (max-width:1180px){
  .dashboard-dual-grid{grid-template-columns:1fr}
}
.dashboard-dual-grid > .dashboard-section-card:first-child .dashboard-section-title{
  padding-top:10px;
}