/* Solo Professional Business Manager — Professional Pastel Light Theme v1.0 */
:root{
  color-scheme:light!important;
  --ink:#182230;--muted:#667085;--line:#dfe5ef;--bg:#f6f8fc;--card:#ffffff;
  --brand:#5965d8;--brand2:#7c83e8;--deep:#293056;--soft:#eef0ff;
  --ok:#18875f;--warn:#b86a12;--danger:#c43b45;--pink:#5965d8;
}
html{scrollbar-color:#aab2d9 #eef1f7!important}
body,.auth-dark{background:linear-gradient(145deg,#f8f9ff 0%,#f4f8fc 48%,#f8fbf7 100%)!important;color:#182230!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important}
::-webkit-scrollbar-track{background:#eef1f7!important}
::-webkit-scrollbar-thumb{background:#aab2d9!important;border-color:#eef1f7!important}

/* Main shell */
.sidebar{background:#ffffff!important;color:#344054!important;border-right:1px solid #e3e8f1!important;box-shadow:8px 0 30px rgba(31,43,72,.06)!important}
.brand{border-bottom-color:#e9edf4!important}
.brand-mark{background:linear-gradient(145deg,#eef0ff,#e3e7ff)!important;color:#4450bd!important;border:1px solid #d8ddff!important;box-shadow:none!important}
.brand-mark img{background:#fff!important}
.brand strong{color:#182230!important}.brand span{color:#7a8495!important}
.sidebar-nav a,.logout-link{color:#596579!important}
.sidebar-nav a span{background:#f0f2f8!important;color:#7b8495!important}
.sidebar-nav a:hover{background:#f2f4ff!important;color:#3f4bb8!important;transform:none!important;box-shadow:none!important}
.sidebar-nav a.active{background:linear-gradient(135deg,#eef0ff,#f5f2ff)!important;color:#3e49b4!important;box-shadow:inset 3px 0 0 #5965d8!important}
.sidebar-nav a.active span{background:#5965d8!important;color:#fff!important}
.logout-link{background:#fff3f3!important;color:#b33d47!important;border:1px solid #f3d7da!important}
.topbar{background:rgba(255,255,255,.92)!important;border-bottom:1px solid #e5e9f1!important;box-shadow:0 5px 22px rgba(31,43,72,.035)!important}
.eyebrow,.section-title{color:#5965d8!important}.topbar h5{color:#182230!important}.topbar-user{background:#fff!important;border-color:#e2e7ef!important;box-shadow:0 7px 22px rgba(31,43,72,.06)!important}
.content{color:#182230!important}.content>h2,.content>h3{color:#182230!important}
.page-hero{background:linear-gradient(135deg,#fff,#f2f4ff)!important;border:1px solid #e0e5f1!important;box-shadow:0 14px 38px rgba(42,54,94,.07)!important}
.page-hero h2,.page-hero h3{color:#182230!important}.page-hero p{color:#667085!important}

/* Surfaces */
.card,.form-card,.invoice-box,.quotation-box,.portal-card,.view-card,.record-card,.detail-card,.quick-action,.field-card,.mini-record,.info-grid>div,.note-box,.customer-card,.settings-card,.report-card{
  background:#fff!important;color:#182230!important;border:1px solid #dfe5ef!important;box-shadow:0 10px 30px rgba(31,43,72,.065)!important;
}
.card,.form-card,.invoice-box,.quotation-box,.portal-card{border-radius:20px!important}
.card-header{background:#f9fafc!important;border-bottom-color:#e4e9f1!important;color:#182230!important}
.card-body{color:#182230!important}
.stat-card{background:#fff!important;border-color:#e1e6ef!important}
.stat-card:before{background:linear-gradient(180deg,#7c83e8,#5965d8)!important}
.stat-card:after{background:linear-gradient(135deg,rgba(89,101,216,.11),rgba(132,204,169,.09))!important}
.stat-card small{color:#697386!important}.stat-card h3{color:#182230!important}
.workflow-card,.customer-profile-card{background:linear-gradient(135deg,#626ed9,#7d83dc)!important;color:#fff!important;border:0!important}
.workflow-card p,.customer-profile-card small{color:#eef0ff!important}
.quick-action{color:#28334b!important}.quick-action:hover{color:#4551bd!important;border-color:#cdd3f7!important;transform:translateY(-2px)!important}

/* Tables */
.table{--bs-table-bg:transparent;--bs-table-color:#273348;--bs-table-border-color:#e5e9f0!important;color:#273348!important}
.table>:not(caption)>*>*{background:#fff!important;color:#273348!important;border-color:#e5e9f0!important}
.table thead th,.table th{background:#f4f6fa!important;color:#596579!important;border-bottom:1px solid #dfe5ed!important}
.table tbody tr:hover td{background:#f8f9ff!important}
.table-responsive{border-radius:14px!important}

/* Forms */
.form-label,label{color:#344054!important}
.form-control,.form-select,.input-group-text{background:#fff!important;color:#182230!important;border:1px solid #cfd7e4!important;box-shadow:none!important}
.form-control::placeholder{color:#98a2b3!important}
.form-control:focus,.form-select:focus{background:#fff!important;color:#182230!important;border-color:#7b84df!important;box-shadow:0 0 0 .22rem rgba(89,101,216,.13)!important}
.form-select option{background:#fff!important;color:#182230!important}
.form-panel,.invoice-form,form.row.g-3.card.card-body{background:#fff!important;border-color:#dfe5ef!important;box-shadow:0 12px 34px rgba(31,43,72,.065)!important}
.field-card,.invoice-item-row,.case-field{background:#f9fafc!important;border-color:#e1e6ee!important}
.form-actions{border-top-color:#e7ebf2!important}
.upload-zone,.multi-upload-zone{background:#fafbff!important;border-color:#cbd2ed!important;color:#344054!important}
.upload-zone .icon{color:#5965d8!important}
.upload-zone input[type=file]::file-selector-button,.multi-upload-zone input[type=file]::file-selector-button{background:#5965d8!important;color:#fff!important}
.selected-file-card{background:#fff!important;border-color:#dfe5ef!important}.selected-file-card .file-name{color:#182230!important}

/* Buttons */
.btn-primary{background:linear-gradient(135deg,#5965d8,#737cde)!important;color:#fff!important;border:1px solid #5965d8!important;box-shadow:0 8px 20px rgba(89,101,216,.2)!important}
.btn-primary:hover{background:#4c57c4!important;border-color:#4c57c4!important;color:#fff!important}
.btn-outline-primary,.btn-outline-warning{color:#4b56bd!important;border-color:#aeb6ed!important;background:#fff!important}
.btn-outline-primary:hover,.btn-outline-warning:hover{background:#eef0ff!important;color:#3945ad!important;border-color:#7e88df!important}
.btn-secondary,.btn-outline-secondary{background:#fff!important;color:#596579!important;border-color:#cfd6e1!important}
.btn-outline-danger{background:#fff!important;color:#b43e48!important;border-color:#edc4c8!important}.btn-outline-danger:hover{background:#fff0f1!important;color:#9d2f39!important}
.btn-success{background:#218b67!important;border-color:#218b67!important}
.app-mobile-menu-btn{background:#5965d8!important;color:#fff!important}

/* Badges & status */
.badge-soft{background:#eef0ff!important;color:#4551b7!important}
.status-draft{background:#f0f2f5!important;color:#536071!important}.status-sent{background:#eef0ff!important;color:#4551b7!important}.status-approved{background:#eaf8f1!important;color:#177657!important}.status-rejected{background:#fff0f1!important;color:#ae3943!important}
.alert-success{background:#ebf8f1!important;color:#176e51!important;border-color:#bde4d2!important}.alert-danger{background:#fff0f1!important;color:#a5323c!important;border-color:#efc3c7!important}.alert-warning{background:#fff8e8!important;color:#916019!important;border-color:#eedcae!important}.alert-info{background:#eff6ff!important;color:#315b8f!important;border-color:#c9def5!important}

/* Portal overrides */
.portal-shell{color:#182230!important}.portal-card{background:#fff!important;color:#182230!important;border-color:#dfe5ef!important}
.portal-card small,.portal-card .text-muted{color:#697386!important}.metric{color:#5965d8!important}
.portal-table td,.portal-table th{background:transparent!important;color:#273348!important;border-color:#e5e9f0!important}.portal-table th{background:#f5f7fb!important}
.progress{background:#e9edf4!important}.progress-bar{background:linear-gradient(90deg,#5965d8,#7d86df)!important}
.status-pill{background:#f2f4ff!important;color:#4954b7!important;border-color:#d6dbf7!important}.doc-row{border-top-color:#e5e9f0!important}
.project-link,.portal-card a:not(.btn){color:#4551b7!important}.project-link:hover,.portal-card a:not(.btn):hover{color:#303ca8!important}
.portal-profile-photo{border-color:#fff!important;box-shadow:0 5px 18px rgba(31,43,72,.12)!important}.client-photo-fallback{background:#e9ecff!important;color:#4652b8!important}

/* Login and public auth pages */
.login-shell,.login-page{background:radial-gradient(circle at 14% 16%,#e8edff 0,transparent 34%),radial-gradient(circle at 86% 84%,#e7f6ef 0,transparent 32%),linear-gradient(145deg,#f8f9ff,#f5f9fc)!important}
.login-shell:before{background:linear-gradient(120deg,rgba(255,255,255,.35),transparent)!important}
.login-card{background:rgba(255,255,255,.97)!important;border:1px solid #dce3ef!important;box-shadow:0 28px 80px rgba(47,61,104,.14)!important;color:#182230!important}
.login-card h1,.login-card h2,.login-card h3,.login-card h4,.login-card h5{color:#182230!important}.login-card .text-muted{color:#697386!important}.login-card .form-label{color:#344054!important}
.login-card .form-control{background:#fff!important;color:#182230!important;border-color:#cfd7e4!important}.login-card .form-control:focus{border-color:#737dde!important;box-shadow:0 0 0 .22rem rgba(89,101,216,.13)!important}
.login-card .brand-mark{background:#eef0ff!important;color:#4652b8!important;border-color:#d5daf9!important;box-shadow:none!important}
.role-link{background:#fff!important;color:#344054!important;border-color:#dbe1eb!important}.role-link small{color:#7b8495!important}.role-link:hover{background:#f7f8ff!important;border-color:#cbd1f3!important}.role-link.active{background:#eef0ff!important;color:#3f4bb7!important;border-color:#aeb6ed!important;box-shadow:none!important}.role-link.active small{color:#626d84!important}
.login-security-notice{background:#f7f8fc!important;border-color:#e0e5ed!important;color:#697386!important}.login-security-notice strong,.login-card a{color:#4b56bd!important}.setup-panel{background:#f9fafc!important;border-color:#dfe5ed!important}.setup-panel h5{color:#182230!important}.setup-note{color:#697386!important}

/* Printing stays clean */
@media print{
 body,.auth-dark{background:#fff!important;color:#111827!important}
 .card,.invoice-box,.quotation-box,.portal-card{background:#fff!important;color:#111827!important;box-shadow:none!important}
 .table>:not(caption)>*>*{color:#111827!important;background:#fff!important;border-color:#d1d5db!important}
}

/* v1.0 — definitive premium light overrides */
html,body,body.auth-dark,.app-shell,.main,.content,.portal-body{
  background:#f5f7fb!important;
  color:#172033!important;
}
.main{min-height:100vh!important}
.content{padding-bottom:42px!important}
.content,.content p,.content li,.content span:not(.badge):not(.status-pill),.content small,.content strong,
.card,.card p,.card small,.card strong,.card h1,.card h2,.card h3,.card h4,.card h5,.card h6{
  color:#172033;
}
.text-muted,.card .text-muted,.content .text-muted{color:#697586!important}
.border-bottom,.border-top{border-color:#e3e8f1!important}

/* remove every remaining dark surface inherited from legacy theme */
.card,.card-body,.card-header,.card-footer,.quick-action,.form-card,.form-panel,.invoice-box,.quotation-box,
.portal-card,.view-card,.record-card,.detail-card,.settings-card,.report-card,.email-summary-card,
.dropdown-menu,.modal-content,.offcanvas,.list-group-item,.invoice-item-row,.field-card,.case-field,.mini-record,
.info-grid>div,.note-box,.item-total-bar,.gynae-guide,form.row.g-3.card.card-body{
  background:#fff!important;
  color:#172033!important;
  border-color:#dfe5ef!important;
}
.card-header,.card-footer{background:#f8faff!important}

/* page canvas and module headings */
.content>h1,.content>h2,.content>h3,.content>h4,.content>h5,
.content .h1,.content .h2,.content .h3,.content .h4,.content .h5{color:#172033!important}
.page-hero{background:linear-gradient(135deg,#ffffff 0%,#f1f3ff 58%,#edf8f3 100%)!important}

/* dashboard cards */
.stat-card,.quick-action{background:#fff!important;color:#172033!important}
.quick-action strong,.quick-action span,.quick-action small{color:inherit!important}
.quick-action:hover{
  background:linear-gradient(135deg,#f0f2ff,#f8f9ff)!important;
  color:#3f4ab6!important;
  border-color:#cbd2f6!important;
  box-shadow:0 16px 36px rgba(57,68,147,.11)!important;
}
.quick-action:hover strong,.quick-action:hover span,.quick-action:hover small{color:inherit!important}
.workflow-card,.customer-profile-card,.client-summary{
  background:linear-gradient(135deg,#6470da,#848be3)!important;
  color:#fff!important;
}
.workflow-card h1,.workflow-card h2,.workflow-card h3,.workflow-card h4,.workflow-card h5,
.workflow-card p,.workflow-card span,.workflow-card small,
.customer-profile-card h1,.customer-profile-card h2,.customer-profile-card h3,.customer-profile-card h4,
.customer-profile-card h5,.customer-profile-card p,.customer-profile-card span,.customer-profile-card small{
  color:#fff!important;
}

/* tables and rows */
.table,.table tbody,.table tr,.table td,.table th{color:#273348!important}
.table>:not(caption)>*>*{background:#fff!important;color:#273348!important;border-color:#e4e9f1!important}
.table thead th,.table th{background:#f3f5fa!important;color:#526078!important}
.table tbody tr:hover td{background:#f2f4ff!important;color:#25314a!important}
.portal-table td,.portal-table th{background:#fff!important;color:#273348!important}
.portal-table th{background:#f3f5fa!important}

/* forms */
.form-label,label{color:#344054!important}
.form-control,.form-select,textarea.form-control,.form-control:disabled,.form-select:disabled,.input-group-text{
  background:#fff!important;color:#172033!important;border-color:#cfd7e4!important;
}
.form-control:focus,.form-select:focus,textarea.form-control:focus{
  background:#fff!important;color:#172033!important;border-color:#6f79de!important;
  box-shadow:0 0 0 .22rem rgba(89,101,216,.13)!important;
}
.form-select option{background:#fff!important;color:#172033!important}
.form-check-input{background-color:#fff!important;border-color:#b8c1d1!important}
.form-check-input:checked{background-color:#5965d8!important;border-color:#5965d8!important}
.upload-drop-zone,.upload-zone,.multi-upload-zone{
  background:linear-gradient(135deg,#fafbff,#f4f6ff)!important;
  border:1px dashed #aeb7e9!important;color:#344054!important;
}

/* navigation and interactions */
.dropdown-item{color:#344054!important}
.dropdown-item:hover,.dropdown-item:focus{background:#f0f2ff!important;color:#3f4ab6!important}
.list-group-item:hover{background:#f5f7ff!important;color:#3f4ab6!important}
a:not(.btn):not(.sidebar-nav a):not(.logout-link){color:#4652bd}
a:not(.btn):not(.sidebar-nav a):not(.logout-link):hover{color:#303ba2}

/* user chip readability */
.topbar-user,.topbar-user span,.topbar-user strong{color:#172033!important}
.topbar-user small{color:#697586!important}

/* project documents */
.project-documents-card{overflow:hidden}
.project-documents-card .project-documents-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.project-documents-card .upload-drop-zone{padding:18px;border-radius:16px}
.project-document-list{display:grid;gap:10px}
.project-document-row{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(130px,.7fr) minmax(120px,.6fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e1e6ef;border-radius:14px;background:#fbfcff}
.project-document-row:hover{background:#f3f5ff;border-color:#cfd5f5}
.project-document-name{min-width:0}.project-document-name a{font-weight:750;word-break:break-word}.project-document-name small{display:block;color:#7a8597!important;margin-top:3px}
@media(max-width:767px){.project-document-row{grid-template-columns:1fr}.project-documents-card .project-documents-head{flex-direction:column}}

/* ========================================================================
   v1.0 — Enterprise Light UI hard reset
   Overrides legacy Gotham selectors that use higher specificity + !important.
   ======================================================================== */
html body .main,
html body .content,
html body .content-area,
html body .page-content,
html body main,
html body .module-content{
  background:transparent!important;
  color:#172033!important;
}

/* All admin add/edit/view surfaces */
html body .content .card,
html body .content .card.form-card,
html body .content .card.card-body,
html body .content .card.p-3,
html body .content .card.p-4,
html body .content form.card,
html body .content form.card.form-card,
html body .content .form-card,
html body .content .form-panel,
html body .content .invoice-form,
html body .content .invoice-box,
html body .content .quotation-box,
html body .content .metric-card,
html body .content .report-card,
html body .content .mini-record,
html body .content .document-row,
html body .content .client-detail-card,
html body .content .client-metric-card,
html body .content .detail-metric-card,
html body .content .detail-section-card,
html body .content .issued-by-box,
html body .content .email-summary-card,
html body .content .item-total-bar{
  background:#ffffff!important;
  color:#172033!important;
  border:1px solid #dfe5ef!important;
  box-shadow:0 14px 38px rgba(31,43,72,.07)!important;
}
html body .content .card.form-card,
html body .content form.card.form-card,
html body .content .form-panel{
  border-radius:20px!important;
  padding:26px!important;
}

/* Text and labels inside legacy dark panels */
html body .content .card *,
html body .content .form-card *,
html body .content .form-panel *,
html body .content .invoice-form *,
html body .content .invoice-box *,
html body .content .quotation-box *,
html body .content .metric-card *,
html body .content .detail-section-card *{
  border-color:#dfe5ef;
}
html body .content .card label,
html body .content .card .form-label,
html body .content .card .row>div>label,
html body .content .form-card label,
html body .content .form-panel label,
html body .content .invoice-form label,
html body .content .quotation-box label{
  color:#344054!important;
}
html body .content .card h1,
html body .content .card h2,
html body .content .card h3,
html body .content .card h4,
html body .content .card h5,
html body .content .card h6,
html body .content .form-card h1,
html body .content .form-card h2,
html body .content .form-card h3,
html body .content .form-card h4,
html body .content .form-card h5,
html body .content .form-card h6,
html body .content .form-card strong,
html body .content .card strong{
  color:#172033!important;
}
html body .content .card p,
html body .content .card small,
html body .content .form-card p,
html body .content .form-card small,
html body .content .text-muted{
  color:#697586!important;
}

/* Controls inside every dark legacy form */
html body .content .card .form-control,
html body .content .card .form-select,
html body .content .card textarea,
html body .content .card input,
html body .content .card select,
html body .content .form-card .form-control,
html body .content .form-card .form-select,
html body .content .form-card textarea,
html body .content .form-card input,
html body .content .form-card select,
html body .content .form-panel .form-control,
html body .content .form-panel .form-select,
html body .content .invoice-form .form-control,
html body .content .invoice-form .form-select{
  background-color:#ffffff!important;
  color:#172033!important;
  border-color:#cfd7e4!important;
}
html body .content .card input::placeholder,
html body .content .card textarea::placeholder,
html body .content .form-card input::placeholder,
html body .content .form-card textarea::placeholder{
  color:#98a2b3!important;
  opacity:1!important;
}
html body .content .card .form-control:focus,
html body .content .card .form-select:focus,
html body .content .form-card .form-control:focus,
html body .content .form-card .form-select:focus,
html body .content .form-panel .form-control:focus,
html body .content .form-panel .form-select:focus{
  background:#fff!important;
  color:#172033!important;
  border-color:#737dde!important;
  box-shadow:0 0 0 .22rem rgba(89,101,216,.13)!important;
}
html body .content input[type="file"]{
  background:#fff!important;
  color:#596579!important;
}
html body .content input[type="file"]::file-selector-button{
  background:#eef0ff!important;
  color:#3f4bb7!important;
  border:0!important;
  border-right:1px solid #d7dcf5!important;
  padding:.7rem 1rem!important;
}

/* Item rows and nested form blocks */
html body .content .invoice-item-row,
html body .content .quotation-item-row,
html body .content .item-row,
html body .content .line-item,
html body .content .field-card,
html body .content .case-field,
html body .content .upload-drop-zone,
html body .content .upload-zone,
html body .content .multi-upload-zone{
  background:#f8faff!important;
  color:#172033!important;
  border-color:#dfe5ef!important;
}
html body .content hr,
html body .content .border-top,
html body .content .border-bottom{
  border-color:#e4e9f1!important;
  opacity:1!important;
}

/* Tables and action hover states */
html body .content .table,
html body .content .table-responsive{
  background:#fff!important;
  color:#273348!important;
}
html body .content .table th{
  background:#f3f5fa!important;
  color:#526078!important;
  border-color:#dfe5ef!important;
}
html body .content .table td{
  background:#fff!important;
  color:#273348!important;
  border-color:#e4e9f1!important;
}
html body .content .table tbody tr:hover td{
  background:#f1f3ff!important;
  color:#24304a!important;
}
html body .content .quick-action,
html body .content a.quick-action{
  background:#fff!important;
  color:#28334b!important;
  border-color:#dfe5ef!important;
}
html body .content .quick-action:hover,
html body .content a.quick-action:hover{
  background:linear-gradient(135deg,#eef0ff,#f9faff)!important;
  color:#3f4ab6!important;
  border-color:#cbd2f6!important;
}

/* Keep intentional accent cards readable */
html body .content .workflow-card,
html body .content .workflow-card *,
html body .content .customer-profile-card,
html body .content .customer-profile-card *,
html body .content .client-summary,
html body .content .client-summary *{
  color:#fff!important;
}
html body .content .workflow-card,
html body .content .customer-profile-card,
html body .content .client-summary{
  background:linear-gradient(135deg,#6470da,#848be3)!important;
  border-color:transparent!important;
}

/* Public client workspace — neutralise inline legacy dark theme */
html body .portal-shell .portal-card,
html body .workspace .panel,
html body .workspace .metric-box,
html body .quote-shell .quote-panel,
html body .quote-shell .meta-card,
html body .quote-shell .section-card,
html body .meeting-shell .meeting-card{
  background:#fff!important;
  color:#172033!important;
  border-color:#dfe5ef!important;
  box-shadow:0 14px 38px rgba(31,43,72,.07)!important;
}
html body .workspace .panel *,
html body .workspace .metric-box *,
html body .quote-shell .quote-panel *,
html body .meeting-shell .meeting-card *{
  color:inherit;
}
html body .workspace .workspace-table td,
html body .workspace .workspace-table th,
html body .quote-shell .quote-table td,
html body .quote-shell .quote-table th{
  background:#fff!important;
  color:#273348!important;
  border-color:#e4e9f1!important;
}
html body .workspace .workspace-table th,
html body .quote-shell .quote-table thead th{
  background:#f3f5fa!important;
  color:#526078!important;
}
html body .meeting-shell{
  background:linear-gradient(145deg,#f8f9ff,#f4f8fc)!important;
  color:#172033!important;
}
html body .meeting-shell .form-control,
html body .meeting-shell .form-select{
  background:#fff!important;
  color:#172033!important;
  border-color:#cfd7e4!important;
}

@media(max-width:767px){
  html body .content .card.form-card,
  html body .content form.card.form-card,
  html body .content .form-panel{padding:18px!important;border-radius:16px!important}
}


/* v1.0 document source separation */
.document-source-panel{background:#fff;border:1px solid #dfe5f0;border-radius:18px;padding:20px;box-shadow:0 12px 28px rgba(35,48,78,.06)}
.document-source-panel.admin-source-panel{border-top:4px solid #6c76e8}.document-source-panel.client-source-panel{border-top:4px solid #55b896}
.document-source-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e8edf5}.document-source-heading>div{display:flex;align-items:center;gap:12px}.document-source-heading small{color:#69758a}
.document-source-icon{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef0ff;color:#4d58cc;font-weight:800}.client-source-panel .document-source-icon{background:#e8f8f2;color:#248264}
.document-source-table thead th{background:#f7f9fd!important;color:#526078!important;border-color:#e7ebf3!important;font-size:.74rem;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}.document-source-table tbody td{background:#fff!important;color:#172033!important;border-color:#edf0f5!important;vertical-align:middle}.document-source-table tbody tr:hover td{background:#f8faff!important}.document-empty{padding:36px 16px;text-align:center;color:#718096;background:#fafbfe;border:1px dashed #d9e0ec;border-radius:14px}


/* v1.0 — Enterprise UI polish */
.document-source-heading h5,
.admin-source-panel .document-source-heading h5,
.client-source-panel .document-source-heading h5{
  color:#172033!important;
  font-size:1.08rem!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}
.admin-source-panel .document-source-heading{background:linear-gradient(135deg,#f7f8ff,#eef2ff);margin:-20px -20px 18px;padding:16px 20px;border-radius:14px 14px 0 0;border-bottom:1px solid #dfe4fb}
.client-source-panel .document-source-heading{background:linear-gradient(135deg,#f5fcf9,#eaf8f2);margin:-20px -20px 18px;padding:16px 20px;border-radius:14px 14px 0 0;border-bottom:1px solid #d8eee5}
.admin-source-panel .document-source-heading small{color:#5d6880!important}.client-source-panel .document-source-heading small{color:#557269!important}
.admin-source-panel .badge-soft{background:#e8ebff!important;color:#4652c3!important}.client-source-panel .badge-soft{background:#e3f6ee!important;color:#24775d!important}

.stat-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}
.stat-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 42px rgba(35,48,78,.12)!important}
.stat-card:before{width:5px!important}
.stat-card-1{background:linear-gradient(145deg,#ffffff,#edf7ff)!important;border-color:#d7eaf8!important}.stat-card-1:before{background:#66aee8!important}.stat-card-1:after{background:radial-gradient(circle,rgba(102,174,232,.18),transparent 68%)!important}
.stat-card-2{background:linear-gradient(145deg,#ffffff,#f2efff)!important;border-color:#e3dcfb!important}.stat-card-2:before{background:#8a78df!important}.stat-card-2:after{background:radial-gradient(circle,rgba(138,120,223,.17),transparent 68%)!important}
.stat-card-3{background:linear-gradient(145deg,#ffffff,#fff3e9)!important;border-color:#f4dfcd!important}.stat-card-3:before{background:#e7a164!important}.stat-card-3:after{background:radial-gradient(circle,rgba(231,161,100,.17),transparent 68%)!important}
.stat-card-4{background:linear-gradient(145deg,#ffffff,#fff0f2)!important;border-color:#f2d8dd!important}.stat-card-4:before{background:#df7c8a!important}.stat-card-4:after{background:radial-gradient(circle,rgba(223,124,138,.16),transparent 68%)!important}
.stat-card-5{background:linear-gradient(145deg,#ffffff,#edf9f4)!important;border-color:#d6eee4!important}.stat-card-5:before{background:#58aa87!important}.stat-card-5:after{background:radial-gradient(circle,rgba(88,170,135,.16),transparent 68%)!important}
.stat-card-6{background:linear-gradient(145deg,#ffffff,#fff8df)!important;border-color:#efe4bb!important}.stat-card-6:before{background:#d7b652!important}.stat-card-6:after{background:radial-gradient(circle,rgba(215,182,82,.17),transparent 68%)!important}
.stat-card-7{background:linear-gradient(145deg,#ffffff,#fff0f7)!important;border-color:#efd9e5!important}.stat-card-7:before{background:#ce78a2!important}.stat-card-7:after{background:radial-gradient(circle,rgba(206,120,162,.16),transparent 68%)!important}
.stat-card-8{background:linear-gradient(145deg,#ffffff,#eef3ff)!important;border-color:#dae2f8!important}.stat-card-8:before{background:#667ed8!important}.stat-card-8:after{background:radial-gradient(circle,rgba(102,126,216,.17),transparent 68%)!important}
.stat-card-9{background:linear-gradient(145deg,#ffffff,#fff1ed)!important;border-color:#f0ddd7!important}.stat-card-9:before{background:#d9826e!important}.stat-card-9:after{background:radial-gradient(circle,rgba(217,130,110,.16),transparent 68%)!important}
.stat-card-10{background:linear-gradient(145deg,#ffffff,#ebfaf2)!important;border-color:#d1eddf!important}.stat-card-10:before{background:#3d9d72!important}.stat-card-10:after{background:radial-gradient(circle,rgba(61,157,114,.17),transparent 68%)!important}
.stat-card small{color:#536176!important}.stat-card h3{letter-spacing:-.035em!important}

.quick-action{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;position:relative;overflow:hidden}
.quick-action:hover{transform:translateY(-3px)!important;box-shadow:0 15px 34px rgba(35,48,78,.1)!important}
.quick-action-1{background:linear-gradient(145deg,#fff,#eff8ff)!important;border-color:#d8eaf8!important}.quick-action-2{background:linear-gradient(145deg,#fff,#f3f0ff)!important;border-color:#e2dcf8!important}.quick-action-3{background:linear-gradient(145deg,#fff,#fff4ea)!important;border-color:#f2dfcf!important}.quick-action-4{background:linear-gradient(145deg,#fff,#eef9f4)!important;border-color:#d6eee4!important}.quick-action-5{background:linear-gradient(145deg,#fff,#eef7ff)!important;border-color:#d9e8f5!important}.quick-action-6{background:linear-gradient(145deg,#fff,#fff5e4)!important;border-color:#f0e1c3!important}.quick-action-7{background:linear-gradient(145deg,#fff,#edf9f1)!important;border-color:#d4ebdd!important}.quick-action-8{background:linear-gradient(145deg,#fff,#f2efff)!important;border-color:#e0dafa!important}.quick-action-9{background:linear-gradient(145deg,#fff,#f7f8fb)!important;border-color:#e1e6ef!important}

/* v1.0 — Client registration light UI */
body.auth-dark{
  min-height:100vh!important;
  background:
    radial-gradient(circle at 12% 12%,rgba(99,102,241,.14),transparent 32%),
    radial-gradient(circle at 88% 18%,rgba(45,212,191,.12),transparent 30%),
    linear-gradient(145deg,#f7f8ff 0%,#f5f9ff 48%,#f6fbf8 100%)!important;
  color:#172033!important;
}
body.auth-dark .register-shell{
  min-height:100vh!important;
  background:transparent!important;
  padding:48px 22px!important;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
body.auth-dark .register-card.registration-premium{
  width:min(1040px,100%)!important;
  max-width:1040px!important;
  margin:0 auto!important;
  padding:38px!important;
  border:1px solid #dfe6f2!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.96)!important;
  color:#172033!important;
  box-shadow:0 28px 80px rgba(41,51,78,.14)!important;
  backdrop-filter:blur(12px);
}
body.auth-dark .auth-brand{
  padding:4px 2px 26px!important;
  margin-bottom:22px!important;
  border-bottom:1px solid #e8edf5;
}
body.auth-dark .auth-brand .brand-mark{
  width:70px!important;height:70px!important;flex-basis:70px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#eef0ff,#e8fbf5)!important;
  border:1px solid #d9e0f0!important;
  box-shadow:0 12px 28px rgba(79,70,229,.13)!important;
  color:#4f46e5!important;
}
body.auth-dark .auth-brand .brand-mark img{width:100%;height:100%;object-fit:cover;border-radius:18px}
body.auth-dark .auth-brand .eyebrow{color:#5b5ee4!important;letter-spacing:.12em;font-size:12px;font-weight:850}
body.auth-dark .registration-premium h1{color:#151c2d!important;font-size:34px!important;line-height:1.15!important;margin:4px 0 7px!important}
body.auth-dark .auth-brand p{color:#627087!important;font-size:15px!important;line-height:1.6!important}
body.auth-dark .registration-steps{gap:12px!important;margin-bottom:26px!important}
body.auth-dark .registration-steps span{
  padding:12px 16px!important;
  border:1px solid #dce3ef!important;
  background:#f8faff!important;
  color:#68758b!important;
  border-radius:14px!important;
  font-weight:800!important;
}
body.auth-dark .registration-steps span.active{
  color:#3e45c7!important;
  border-color:#bfc5ff!important;
  background:linear-gradient(135deg,#eef0ff,#f4f2ff)!important;
  box-shadow:0 8px 22px rgba(99,102,241,.10)!important;
}
body.auth-dark .form-section{
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid #e0e7f1!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#ffffff,#fbfcff)!important;
  box-shadow:0 12px 34px rgba(50,63,91,.06)!important;
}
body.auth-dark .form-section-heading{margin-bottom:22px!important;align-items:center!important}
body.auth-dark .form-section-heading>span{
  width:42px!important;height:42px!important;
  border-radius:13px!important;
  color:#4338ca!important;
  background:linear-gradient(145deg,#e8eaff,#f1f0ff)!important;
  border:1px solid #d6d8ff!important;
  box-shadow:none!important;
}
body.auth-dark .form-section-heading h2{font-size:19px!important;color:#1a2335!important;font-weight:850!important}
body.auth-dark .form-section-heading p{color:#6c788d!important;line-height:1.5!important}
body.auth-dark label,body.auth-dark .form-label{color:#344158!important;font-weight:750!important;margin-bottom:7px!important}
body.auth-dark .form-control,body.auth-dark .form-select{
  min-height:48px!important;
  color:#182238!important;
  background:#fff!important;
  border:1px solid #ccd6e5!important;
  border-radius:13px!important;
  box-shadow:0 2px 4px rgba(33,45,72,.02)!important;
}
body.auth-dark textarea.form-control{min-height:112px!important}
body.auth-dark .form-control::placeholder{color:#9aa6b9!important}
body.auth-dark .form-control:focus,body.auth-dark .form-select:focus{
  border-color:#818cf8!important;
  box-shadow:0 0 0 4px rgba(99,102,241,.13)!important;
}
body.auth-dark .field-help{color:#748197!important}
body.auth-dark .password-toggle{color:#4f46e5!important}
body.auth-dark .password-meter{background:#e7ebf2!important}
body.auth-dark .auth-check{color:#526078!important;background:#f8faff;border:1px solid #e2e8f2;border-radius:13px;padding:14px 16px!important}
body.auth-dark .auth-check .form-check-input{margin-top:.18rem}
body.auth-dark .registration-actions{padding-top:4px!important}
body.auth-dark .registration-actions .btn{min-width:190px!important;border-radius:13px!important;padding:12px 22px!important;font-weight:800!important}
body.auth-dark .registration-actions .btn-primary{
  color:#fff!important;border-color:#5b5ee4!important;
  background:linear-gradient(135deg,#5b5ee4,#7779eb)!important;
  box-shadow:0 12px 25px rgba(91,94,228,.22)!important;
}
body.auth-dark .registration-actions .btn-primary:hover{transform:translateY(-1px);box-shadow:0 15px 30px rgba(91,94,228,.28)!important}
body.auth-dark .registration-actions .btn-outline-secondary{color:#344158!important;background:#fff!important;border-color:#ccd6e5!important}
body.auth-dark .registration-actions .btn-outline-secondary:hover{background:#f4f6fb!important;color:#222d42!important}
body.auth-dark .alert-danger{background:#fff2f3!important;color:#b42336!important;border-color:#ffcbd1!important;border-radius:14px!important}
body.auth-dark .registration-success{background:#effbf5!important;border-color:#bce8d2!important;color:#24533f!important}
body.auth-dark .registration-success strong{color:#17603f!important}
body.auth-dark .registration-success span{color:#476b5a!important}
@media(max-width:767px){
  body.auth-dark .register-shell{padding:20px 12px!important}
  body.auth-dark .register-card.registration-premium{padding:22px 16px!important;border-radius:20px!important}
  body.auth-dark .auth-brand{align-items:flex-start!important;gap:13px!important}
  body.auth-dark .auth-brand .brand-mark{width:56px!important;height:56px!important;flex-basis:56px!important;border-radius:16px!important}
  body.auth-dark .registration-premium h1{font-size:27px!important}
  body.auth-dark .registration-steps{grid-template-columns:1fr!important}
  body.auth-dark .form-section{padding:20px 16px!important}
  body.auth-dark .registration-actions .btn{width:100%!important}
}

/* Version 1.0 commercial footer */
.mws-app-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px;padding:18px 4px 6px;border-top:1px solid #dbe5f1;color:#64748b;font-size:12.5px}.mws-app-footer a{color:#2563eb;font-weight:800;text-decoration:none}.mws-app-footer a:hover{text-decoration:underline}@media(max-width:767.98px){.mws-app-footer{flex-direction:column;text-align:center;gap:5px}}

.showcase-settings-panel{border:1px solid #dfe5f3;border-radius:18px;padding:20px;background:linear-gradient(145deg,#fbfcff,#f5f8ff)}.showcase-settings-panel h5{color:#1f2a44;font-weight:800}.showcase-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #e3e8f3;border-radius:14px;background:#fff}.showcase-options-grid .form-check{margin:0}.showcase-options-grid .form-check-label{color:#344054;font-weight:600}@media(max-width:768px){.showcase-options-grid{grid-template-columns:1fr}}

.showcase-settings-panel .form-check-input,.showcase-settings-panel .form-check-label{cursor:pointer}.showcase-options-grid .form-check{position:relative;z-index:1}.showcase-options-grid .form-check-input{pointer-events:auto!important}

/* v1.0 checkbox interaction fix */
.showcase-settings-panel{position:relative;isolation:isolate}
.showcase-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.showcase-check{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0!important;padding:10px 12px;border:1px solid #e3e8f3;border-radius:12px;background:#fff;cursor:pointer;position:relative;z-index:3;color:#344054!important;font-weight:700!important;user-select:none}
.showcase-check:hover{border-color:#bfc8f6;background:#f8f9ff}
.showcase-check input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;float:none!important;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;accent-color:#5965d8;cursor:pointer;z-index:4}
.showcase-check span{pointer-events:none;color:#344054!important}
.showcase-check-primary{border-color:#cfd5f5;background:#f6f7ff}
.showcase-check-wide{grid-column:span 2}
.showcase-options-grid{position:relative;z-index:2}
@media(max-width:768px){.showcase-check-wide{grid-column:auto}.showcase-panel-head{display:grid;grid-template-columns:1fr}.showcase-check-primary{width:100%}}
