﻿.cms-quotation-page{background:#eef2f7;min-height:100vh}.cms-shell{min-height:100vh;display:flex;background:#eef2f7}.cms-sidebar{width:282px;background:#0f172a;color:#e5e7eb;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:50;transition:.25s ease}.cms-sidebar-brand{height:76px;display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid rgba(255,255,255,.08)}.cms-sidebar-brand img{width:42px;height:42px;border-radius:10px}.cms-sidebar-brand strong{display:block;font-size:17px;color:#fff}.cms-sidebar-brand span{display:block;font-size:12px;color:#94a3b8}.cms-sidebar-nav{padding:14px;display:grid;gap:6px;overflow:auto}.cms-nav-link{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#cbd5e1;border-radius:12px;padding:12px 13px;text-align:left;font-weight:700;transition:.2s ease;text-decoration:none}.cms-nav-link:hover{background:rgba(255,255,255,.08);color:#fff}.cms-nav-link.active{background:#2563eb;color:#fff}.cms-nav-icon{width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.10);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;flex:0 0 auto}.cms-nav-button{font:inherit;cursor:pointer}.cms-main-area{flex:1;min-width:0}.cms-top-header{height:76px;background:#fff;border-bottom:1px solid #dbe3ef;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:40}.cms-header-left,.cms-header-right,.cms-header-title,.cms-profile-button{display:flex;align-items:center}.cms-header-left{gap:18px}.cms-header-title{gap:12px}.cms-header-title img{width:42px;height:42px;border-radius:10px}.cms-header-title h1{margin:0;font-size:20px;color:#0f172a}.cms-header-title p{margin:3px 0 0;color:#64748b;font-size:12px}.cms-header-right{gap:14px}.cms-header-icon,.cms-notification-button,.cms-profile-button{border:1px solid #dbe3ef;background:#fff;border-radius:12px;color:#334155;font-weight:800}.cms-header-icon{padding:10px 12px}.cms-notification-button{height:42px;min-width:64px;display:flex;gap:7px;align-items:center;justify-content:center}.cms-notification-button b{background:#ef4444;color:#fff;border-radius:999px;font-size:10px;padding:2px 6px}.cms-profile-menu{position:relative}.cms-profile-button{gap:9px;padding:6px 10px}.cms-profile-button img{width:34px;height:34px;border-radius:999px}.cms-profile-dropdown{position:absolute;right:0;top:52px;width:190px;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 22px 55px rgba(15,23,42,.10);padding:8px}.cms-profile-dropdown button{display:block;width:100%;background:#fff;border:0;text-align:left;padding:10px 12px;border-radius:10px;color:#334155;font-weight:700}.cms-profile-dropdown button:hover{background:#f1f5f9}.cms-module-main{padding:22px;max-width:1500px;margin:0 auto}.cms-module-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.cms-module-heading p{margin:0 0 6px;color:#2563eb;font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.08em}.cms-module-heading h2{margin:0;font-size:28px;color:#0f172a}.cms-module-chip{background:#fff;border:1px solid #dbe3ef;border-radius:12px;padding:10px 14px;color:#475569;font-weight:800}.cms-quotation-page .app-container{max-width:none;margin:0;background:transparent;box-shadow:none}.cms-quotation-page .app-header{display:none}.cms-quotation-page .main-content{padding:0}.cms-quotation-page .card{box-shadow:0 12px 30px rgba(15,23,42,.06);border:1px solid #dbe3ef}.cms-quotation-page .status-bar{border-radius:12px;margin-top:16px}.cms-sidebar.collapsed{width:88px}.cms-sidebar.collapsed .cms-sidebar-brand div,.cms-sidebar.collapsed .cms-nav-link span:last-child{display:none}
@media (max-width:1180px){.cms-sidebar{position:fixed;left:0;transform:translateX(-100%)}.cms-sidebar.open{transform:translateX(0)}.cms-sidebar.collapsed{width:282px}.cms-main-area{width:100%}}
@media (max-width:760px){.cms-top-header{padding:0 14px}.cms-header-title p,.cms-profile-button span{display:none}.cms-module-main{padding:16px}.cms-module-heading{align-items:flex-start;flex-direction:column}.cms-module-heading h2{font-size:24px}}

.quick-customer-modal[hidden]{display:none}.quick-customer-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:22px}.quick-customer-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(5px)}.quick-customer-dialog{position:relative;width:min(900px,100%);max-height:92vh;overflow:auto;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.35)}.quick-customer-card{background:#fff;border:1px solid #dbe3ef;border-radius:18px;overflow:hidden}.quick-customer-header{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #dbe3ef;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.quick-customer-header h3{margin:0;color:#0f172a;font-size:18px}.quick-customer-header p{margin:5px 0 0;color:#64748b;font-size:13px;font-weight:700}.quick-customer-close{border:0;border-radius:10px;background:#fee2e2;color:#991b1b;font-weight:900;padding:8px 10px}.quick-customer-form{padding:18px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quick-grid .full-width{grid-column:1/-1}.quick-customer-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:13px 14px;color:#0f172a;outline:none;resize:vertical}.quick-actions{display:flex;gap:10px;margin-top:18px}.quick-modal-open{overflow:hidden}
@media (max-width:760px){.quick-customer-modal{padding:10px;align-items:flex-start}.quick-grid{grid-template-columns:1fr}.quick-actions{flex-direction:column}.quick-actions .btn{width:100%}.quick-customer-header{align-items:flex-start;flex-direction:column}}

/* 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}

/* Final quotation shell icon polish */
.cms-nav-icon svg,.bell-icon svg,.cms-header-icon svg{width:18px;height:18px;display:block;fill:currentColor}.cms-nav-link.active .cms-nav-icon{background:rgba(255,255,255,.18)}.icon-label{display:inline-flex;align-items:center;gap:8px}.cms-sidebar{border-right:1px solid rgba(255,255,255,.06)}.cms-nav-link{font-size:15px;letter-spacing:.01em}.cms-profile-button,.cms-module-chip{box-shadow:0 10px 24px rgba(15,23,42,.06)}.cms-module-main{animation:cmsPageIn .25s ease}.cms-quotation-page .card{transition:transform .18s ease,box-shadow .18s ease}.cms-quotation-page .card:hover{transform:translateY(-1px);box-shadow:0 22px 52px rgba(15,23,42,.10)!important}@keyframes cmsPageIn{from{opacity:.7;transform:translateY(6px)}to{opacity:1;transform:none}}
/* Compact Professional Redesign - final override */
.cms-sidebar{width:238px!important;background:#101827!important}.cms-sidebar.collapsed{width:70px!important}.cms-sidebar-brand{height:60px!important;padding:10px 13px!important;gap:9px!important}.cms-sidebar-brand img{width:32px!important;height:32px!important;border-radius:10px!important}.cms-sidebar-brand strong{font-size:14px!important;line-height:1.1!important}.cms-sidebar-brand span{font-size:10.5px!important}.cms-sidebar-nav{padding:9px!important;gap:3px!important}.cms-nav-link{padding:8px 9px!important;border-radius:10px!important;font-size:12.5px!important;gap:9px!important;margin:1px 0!important;font-weight:700!important}.cms-nav-icon{width:26px!important;height:26px!important;border-radius:8px!important}.cms-nav-icon svg,.bell-icon svg,.cms-header-icon svg{width:14px!important;height:14px!important}
.cms-top-header{height:60px!important;padding:0 16px!important;background:#fff!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important}.cms-header-left{gap:10px!important}.cms-header-right{gap:8px!important}.cms-header-title{gap:9px!important}.cms-header-title img{width:32px!important;height:32px!important;border-radius:10px!important}.cms-header-title h1{font-size:16px!important;line-height:1.1!important}.cms-header-title p{font-size:10.5px!important;margin-top:2px!important}.cms-header-icon,.cms-notification-button,.cms-profile-button{min-height:34px!important;border-radius:10px!important;font-size:12px!important;padding:6px 9px!important}.cms-notification-button{min-width:52px!important}.cms-notification-button b{font-size:9px!important;padding:1px 5px!important}.cms-profile-button img{width:26px!important;height:26px!important}
.cms-module-main{padding:16px!important;max-width:1360px!important}.cms-module-heading{margin-bottom:12px!important}.cms-module-heading h2{font-size:22px!important;line-height:1.15!important}.cms-module-heading p{font-size:10.5px!important}.cms-module-chip{padding:7px 10px!important;border-radius:9px!important;font-size:11.5px!important}.quick-customer-dialog{width:min(720px,100%)!important;border-radius:14px!important}.quick-customer-header{padding:10px 12px!important}.quick-customer-header h3{font-size:14px!important}.quick-customer-form{padding:12px!important}.quick-grid{gap:10px!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}}

/* Working Profile Menu */
.profile-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:18px;z-index:500}.profile-modal{width:min(620px,100%);background:#fff;border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 28px 70px rgba(15,23,42,.22);overflow:hidden}.profile-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5eaf3;background:linear-gradient(180deg,#f8fbff,#eef4ff)}.profile-modal-head span{display:block;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}.profile-modal-head h3{margin:0;font-size:17px;color:#0f172a}.profile-modal-close{width:32px!important;height:32px!important;min-height:32px!important;border:0;border-radius:9px;background:#fee2e2;color:#991b1b;font-size:20px!important;font-weight:900;line-height:1!important;padding:0!important}.profile-modal-body{padding:16px}.profile-mini-card{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #dbe3ef;background:#f8fafc;border-radius:12px;padding:11px 12px;margin-bottom:12px}.profile-mini-card strong{font-size:15px;color:#0f172a}.profile-mini-card span{font-size:11px;font-weight:800;color:#2563eb;background:#eaf1ff;border-radius:999px;padding:5px 9px}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.profile-form-grid.one-col{grid-template-columns:1fr}.profile-form-grid label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#1f2937}.profile-form-grid input{width:100%;border:1px solid #d8e1ee;border-radius:9px;min-height:36px;padding:8px 10px;font-size:12px;color:#111827;outline:none}.profile-form-grid input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}.profile-form-grid input[readonly]{background:#f8fafc;color:#64748b}.profile-help{margin:12px 0 0;color:#64748b;font-size:11px}.profile-modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #e5eaf3;background:#f8fafc}.profile-primary,.profile-secondary{border:0;border-radius:9px;min-height:34px;padding:8px 12px;font-size:12px;font-weight:850}.profile-primary{background:#2563eb;color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.22)}.profile-secondary{background:#eaf1ff;color:#1d4ed8}.profile-toast{position:fixed;right:18px;bottom:18px;background:#0f172a;color:#fff;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:850;box-shadow:0 18px 40px rgba(15,23,42,.25);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease;z-index:600}.profile-toast.show{opacity:1;transform:translateY(0)}@media(max-width:640px){.profile-form-grid{grid-template-columns:1fr}.profile-modal{border-radius:15px}.profile-modal-actions{flex-direction:column}.profile-primary,.profile-secondary{width:100%}}

/* Profile Popup Refinement */
.profile-modal-head span{font-weight:700!important}.profile-modal-head h3{font-weight:650!important}.profile-mini-card strong{font-weight:650!important}.profile-mini-card span{font-weight:650!important}.profile-form-grid label{font-weight:600!important;color:#334155!important}.profile-form-grid input{font-weight:400!important;background-repeat:no-repeat!important;background-position:10px 50%!important;background-size:13px 13px!important;padding-left:31px!important}.profile-form-grid input[readonly]{font-weight:400!important}.profile-help{font-weight:400!important}.profile-primary,.profile-secondary{font-weight:650!important}.profile-toast{font-weight:650!important}
#profileEditName{background-image:var(--fi-user)!important}#profileEditUsername{background-image:var(--fi-user)!important}#profileEditMobile{background-image:var(--fi-phone)!important}#profileEditEmail{background-image:var(--fi-mail)!important}#profileCurrentPassword,#profileNewPassword,#profileConfirmPassword{background-image:var(--fi-lock)!important}.profile-form-grid input[readonly]{background-image:var(--fi-note)!important}
