﻿.customer-main{max-width:1600px}.customer-heading{margin-bottom:18px}.primary-action,.secondary-action{border:0;border-radius:12px;padding:12px 16px;font-weight:800;transition:.2s ease}.primary-action{background:#2563eb;color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.18)}.primary-action:hover{background:#1d4ed8;transform:translateY(-1px)}.secondary-action{background:#eef2ff;color:#1d4ed8}.secondary-action:hover{background:#dbeafe}.customer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.customer-stats article{background:#fff;border:1px solid #dbe3ef;border-radius:16px;padding:16px 18px;box-shadow:0 12px 30px rgba(15,23,42,.06);border-left:5px solid #2563eb}.customer-stats article:nth-child(2){border-left-color:#16a34a}.customer-stats article:nth-child(3){border-left-color:#f59e0b}.customer-stats span{display:block;color:#64748b;font-size:13px;font-weight:800}.customer-stats strong{display:block;color:#0f172a;font-size:28px;margin-top:8px}.customer-layout{display:grid;grid-template-columns:minmax(420px,.95fr) minmax(520px,1.35fr);gap:18px;align-items:start}.customer-card{background:#fff;border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}.card-title,.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid #dbe3ef}.card-title h3,.list-toolbar h3{margin:0;font-size:18px}.card-title span{background:#e0f2fe;color:#0369a1;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900}.list-toolbar p{margin:5px 0 0;color:#64748b;font-size:13px;font-weight:700}.list-toolbar input{max-width:320px;border:1px solid #dbe3ef;border-radius:12px;padding:11px 13px;outline:none}.list-toolbar input:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}#customerForm{padding:18px}.form-grid{display:grid;gap:14px}.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.form-group.full{grid-column:1/-1}.form-group select,.form-group textarea{width:100%;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:13px 14px;color:#0f172a;outline:none;transition:.2s ease}.form-group textarea{resize:vertical;min-height:86px}.form-group select:focus,.form-group textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.form-group input[readonly]{background:#f1f5f9;color:#475569;cursor:default}.form-group input.is-invalid,.form-group select.is-invalid,.form-group textarea.is-invalid{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.10)}.form-actions{display:flex;gap:10px;margin-top:18px}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:760px}.table-wrap th{background:#f8fafc;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.05em;text-align:left;padding:12px;border-bottom:1px solid #dbe3ef}.table-wrap td{padding:12px;border-bottom:1px solid #edf2f7;color:#1f2937;font-size:14px}.customer-name{font-weight:900;color:#0f172a}.customer-sub{display:block;color:#64748b;font-size:12px;margin-top:2px}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900}.status-pill.active{background:#dcfce7;color:#166534}.status-pill.inactive{background:#fee2e2;color:#991b1b}.row-actions{display:flex;gap:7px}.row-actions button{border:0;border-radius:9px;padding:7px 9px;font-size:12px;font-weight:800}.edit-btn{background:#e0f2fe;color:#0369a1}.delete-btn{background:#fee2e2;color:#991b1b}.empty-row{text-align:center;color:#64748b;padding:34px!important}.customer-toast{position:fixed;right:20px;bottom:20px;background:#0f172a;color:#fff;border-radius:12px;padding:12px 16px;font-weight:800;box-shadow:0 18px 40px rgba(15,23,42,.22);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s ease;z-index:100}.customer-toast.show{opacity:1;transform:translateY(0)}
@media (max-width:1250px){.customer-layout{grid-template-columns:1fr}.customer-card{min-width:0}}
@media (max-width:760px){.customer-stats,.two-cols{grid-template-columns:1fr}.list-toolbar{align-items:flex-start;flex-direction:column}.list-toolbar input{max-width:none;width:100%}.form-actions{flex-direction:column}.primary-action,.secondary-action{width:100%}}

.pulse-form{animation:pulseForm .9s ease}
@keyframes pulseForm{0%{box-shadow:0 0 0 0 rgba(37,99,235,.45)}100%{box-shadow:0 12px 30px rgba(15,23,42,.06)}}


.customer-layout.list-only{grid-template-columns:1fr}.customer-layout.list-only .list-card{min-width:0}.customer-modal[hidden]{display:none}.customer-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:22px}.customer-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(5px)}.customer-modal-dialog{position:relative;width:min(980px,100%);max-height:92vh;overflow:auto;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.35)}.modal-card{width:100%;box-shadow:none}.modal-card .card-title{position:sticky;top:0;z-index:2}.card-title p{margin:5px 0 0;color:#64748b;font-size:13px;font-weight:700}.modal-title-actions{display:flex;align-items:center;gap:10px}.modal-close{border:0;border-radius:10px;background:#fee2e2;color:#991b1b;font-weight:900;padding:8px 10px}.customer-modal-open{overflow:hidden}
@media (max-width:760px){.customer-modal{padding:10px;align-items:flex-start}.customer-modal-dialog{max-height:96vh}.modal-title-actions{align-items:flex-end;flex-direction:column}.modal-close{width:auto}.modal-card .card-title{align-items:flex-start}}

/* Modern module refresh */
.customer-stats article,.user-stats article,.customer-card,.user-card,.quick-customer-card{border-radius:22px!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important}.primary-action,.quick-actions .btn-primary{background:linear-gradient(135deg,#2f66f2,#1f4fd0)!important;box-shadow:0 16px 34px rgba(47,102,242,.24)!important}.list-toolbar,.card-title,.quick-customer-header{background:linear-gradient(180deg,#fbfdff,#f4f7fb)!important}.table-wrap th{background:#f3f7fc!important}.customer-modal-backdrop,.user-modal-backdrop,.quick-customer-backdrop{background:rgba(9,18,33,.62)!important}.customer-modal-dialog,.user-modal-dialog,.quick-customer-dialog{border-radius:24px!important}.status-pill,.role-pill{border-radius:999px}.edit-btn{background:#e0f2fe!important;color:#075985!important}.delete-btn,.modal-close,.quick-customer-close{background:#fee2e2!important;color:#991b1b!important}
/* Compact Professional Redesign - final override */
.customer-main{padding:16px!important;max-width:1360px!important}.customer-heading{margin-bottom:12px!important}.customer-heading h2{font-size:22px!important;line-height:1.15!important}.customer-heading p,.customer-heading .eyebrow{font-size:10.5px!important}
.customer-stats{gap:10px!important;margin-bottom:12px!important}.customer-stats article{padding:12px 14px!important;border-radius:12px!important}.customer-stats span{font-size:11.5px!important}.customer-stats strong{font-size:22px!important;margin-top:4px!important}
.customer-layout{gap:12px!important}.customer-card{border-radius:12px!important}.card-title,.list-toolbar{padding:10px 12px!important}.card-title h3,.list-toolbar h3{font-size:14px!important}.card-title span,.list-toolbar span{font-size:11px!important}
#customerForm{padding:12px!important}.form-grid{gap:10px!important}.form-actions{margin-top:12px!important;gap:7px!important}.list-toolbar input{height:38px!important;font-size:12.5px!important}.table-wrap th,.table-wrap td{padding:8px 9px!important;font-size:12px!important}.status-pill{font-size:10.5px!important;padding:3px 7px!important}.row-actions button{padding:5px 7px!important;font-size:10.5px!important;border-radius:7px!important}
.customer-modal{padding:14px!important}.customer-modal-dialog{width:min(760px,100%)!important;border-radius:14px!important}
/* Field + Icon Polish - compact final pass */
html{font-size:12.5px!important}
body{font-size:12.5px!important}
input,select,textarea,.ts-control,.tom-select,.choices__inner{min-height:34px!important;font-size:12px!important;line-height:1.25!important;padding:7px 9px!important;border-radius:8px!important}
select{background-size:14px!important;background-position:right 9px center!important;padding-right:30px!important}
input::placeholder,textarea::placeholder{font-size:11.5px!important;color:#9aa4b2!important}
.form-group label,.input-label,label{font-size:11px!important;line-height:1.2!important;margin-bottom:4px!important}
.field-error,.error-message,.invalid-feedback{font-size:10px!important;line-height:1.25!important;margin-top:3px!important}
button,.btn,.primary-button,.primary-action,.secondary-action{min-height:34px!important;font-size:11.5px!important;line-height:1.2!important;padding:7px 10px!important;border-radius:8px!important}
svg,.nav-icon svg,.cms-nav-icon svg,.header-icon svg,.cms-header-icon svg,.bell-icon svg,.btn svg,button svg{width:13px!important;height:13px!important;stroke-width:2!important}
.nav-icon,.cms-nav-icon{width:24px!important;height:24px!important;border-radius:7px!important}
.card,.panel,.customer-card,.user-card,.stat-card{border-radius:11px!important}
.card-header,.card-title,.list-toolbar,.panel-header{padding:9px 11px!important}
.table-wrap th,.table-wrap td,th,td{font-size:11.5px!important;padding:7px 8px!important}
.status-pill,.role-pill,.badge,.tag{font-size:10px!important;padding:3px 6px!important;border-radius:999px!important}
/* Premium Scrollbar Polish */
*{scrollbar-width:thin;scrollbar-color:#9aa7bb transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent;border-radius:999px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#a8b3c5,#7d8899);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#7c8aa0,#5f6b7c);border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
.sidebar-nav,.cms-sidebar-nav{scrollbar-color:rgba(148,163,184,.55) transparent}
.sidebar-nav::-webkit-scrollbar,.cms-sidebar-nav::-webkit-scrollbar{width:6px}
.sidebar-nav::-webkit-scrollbar-thumb,.cms-sidebar-nav::-webkit-scrollbar-thumb{background:rgba(148,163,184,.42);border:1px solid rgba(15,23,42,.35);border-radius:999px}
.sidebar-nav::-webkit-scrollbar-thumb:hover,.cms-sidebar-nav::-webkit-scrollbar-thumb:hover{background:rgba(203,213,225,.65)}
.customer-modal,.user-modal,.quick-customer-modal,.modal{scrollbar-gutter:stable;overscroll-behavior:contain}
.customer-modal::-webkit-scrollbar,.user-modal::-webkit-scrollbar,.quick-customer-modal::-webkit-scrollbar,.modal::-webkit-scrollbar{width:7px}
.customer-modal::-webkit-scrollbar-track,.user-modal::-webkit-scrollbar-track,.quick-customer-modal::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track{background:rgba(15,23,42,.08);border-radius:999px;margin:12px 0}
.customer-modal::-webkit-scrollbar-thumb,.user-modal::-webkit-scrollbar-thumb,.quick-customer-modal::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2563eb,#14b8a6);border-radius:999px;border:2px solid rgba(255,255,255,.75);background-clip:padding-box}
.customer-modal-dialog,.user-modal-dialog,.quick-customer-dialog{max-height:calc(100vh - 36px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.customer-modal-dialog form,.user-modal-dialog form,.quick-customer-dialog form{overflow:auto!important;padding-right:12px!important;scrollbar-gutter:stable}
.customer-modal-dialog form::-webkit-scrollbar,.user-modal-dialog form::-webkit-scrollbar,.quick-customer-dialog form::-webkit-scrollbar{width:7px}
.customer-modal-dialog form::-webkit-scrollbar-track,.user-modal-dialog form::-webkit-scrollbar-track,.quick-customer-dialog form::-webkit-scrollbar-track{background:#eef3f9;border-radius:999px;margin:8px 0}
.customer-modal-dialog form::-webkit-scrollbar-thumb,.user-modal-dialog form::-webkit-scrollbar-thumb,.quick-customer-dialog form::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2f66f2,#0ea66b);border-radius:999px;border:2px solid #eef3f9;background-clip:padding-box}
.table-wrap,.list-card{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.table-wrap::-webkit-scrollbar{height:7px;width:7px}.table-wrap::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px}.table-wrap::-webkit-scrollbar-track{background:#eef2f7;border-radius:999px}
/* Modal Scroll Fix - keep header fixed, scroll form body */
.customer-modal,.user-modal,.quick-customer-modal{align-items:center!important;overflow:hidden!important}
.customer-modal-dialog,.user-modal-dialog,.quick-customer-dialog{max-height:calc(100vh - 28px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.customer-modal-dialog .modal-card,.user-modal-dialog .modal-card,.quick-customer-dialog{display:flex!important;flex-direction:column!important;max-height:calc(100vh - 28px)!important;min-height:0!important;overflow:hidden!important}
.customer-modal-dialog .card-title,.user-modal-dialog .card-title,.quick-customer-header{flex:0 0 auto!important;position:relative!important;top:auto!important}
#customerForm,#userForm,.quick-customer-form{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:14px!important;overscroll-behavior:contain!important}
#customerForm::-webkit-scrollbar,#userForm::-webkit-scrollbar,.quick-customer-form::-webkit-scrollbar{width:7px!important}
#customerForm::-webkit-scrollbar-track,#userForm::-webkit-scrollbar-track,.quick-customer-form::-webkit-scrollbar-track{background:#edf2f7!important;border-radius:999px!important;margin:8px 0!important}
#customerForm::-webkit-scrollbar-thumb,#userForm::-webkit-scrollbar-thumb,.quick-customer-form::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2563eb,#0ea66b)!important;border-radius:999px!important;border:2px solid #edf2f7!important;background-clip:padding-box!important}
@media (max-width:760px){.customer-modal,.user-modal,.quick-customer-modal{align-items:flex-start!important;padding:8px!important}.customer-modal-dialog,.user-modal-dialog,.quick-customer-dialog,.customer-modal-dialog .modal-card,.user-modal-dialog .modal-card{max-height:calc(100vh - 16px)!important}}
