/* UNDURUV CRM V11 final luminous layer */
:root{--v11-bg:#06162d;--v11-bg2:#0b274a;--v11-card:#0f315a;--v11-line:rgba(101,181,255,.24);--v11-text:#f7fbff;--v11-muted:#95b0ce;--v11-blue:#27a9ff;--v11-violet:#7868ff;--v11-green:#2be0a5;--v11-pink:#ff5686}
body:not(.auth-mode),.main,.content{background:radial-gradient(circle at 85% 0,rgba(45,118,255,.16),transparent 32%),linear-gradient(145deg,#06162d,#081d39 56%,#07172e)!important;color:var(--v11-text)!important}
.topbar{background:rgba(6,22,45,.94)!important;color:#fff!important;border-color:var(--v11-line)!important;backdrop-filter:blur(18px)!important}.topbar h2,#pageTitle{color:#fff!important}.topbar .muted,#pageSub{color:var(--v11-muted)!important}
.sidebar{background:linear-gradient(180deg,#06152b,#081d38 62%,#06152b)!important;border-color:var(--v11-line)!important}.sidebar .brand b,.sidebar-bottom{color:#fff!important}.sidebar .brand span,.nav-label,.sidebar-bottom .muted{color:#8ca8c6!important}.sidebar nav button{color:#9db7d4!important;border:1px solid transparent!important}.sidebar nav button:hover{background:rgba(39,169,255,.08)!important;color:#fff!important;border-color:rgba(39,169,255,.14)!important}.sidebar nav button.active{background:linear-gradient(135deg,rgba(120,104,255,.30),rgba(255,86,134,.17))!important;color:#fff!important;border-color:rgba(130,111,255,.55)!important;box-shadow:0 12px 32px rgba(75,67,255,.20)!important}
.card,.dashboard-reference .card,.promise-shell,.filter-card{background:linear-gradient(145deg,rgba(15,49,90,.96),rgba(9,32,62,.97))!important;color:#f7fbff!important;border:1px solid var(--v11-line)!important;box-shadow:0 18px 42px rgba(0,8,24,.23),inset 0 1px rgba(255,255,255,.035)!important}
.card h2,.card h3,.section-title h3{color:#fff!important}.card small,.card .muted,.label{color:var(--v11-muted)!important}
.dashboard-reference .hero-metric,.dashboard-reference .summary-pills>span,.dashboard-reference .premium-kpis>span,.client-money,.client-money-grid,.client-quick-actions button,.client-summary-strip span,.client-contract-kpis>span,.client-pay-kpis>span,.client-doc-summary>span,.client-contract-detail-grid>div,.contract-card,.client-profile-card,.client-location-summary,.client-doc-row{
background:linear-gradient(145deg,rgba(18,57,99,.94),rgba(10,38,73,.96))!important;color:#fff!important;border-color:rgba(99,181,255,.20)!important;box-shadow:none!important}
.dashboard-reference .hero-metric b,.dashboard-reference .summary-pills b,.client-profile-card h2,.client-profile-lines b,.client-money b,.client-summary-strip b,.client-contract-kpis b,.client-pay-kpis b,.client-doc-summary b,.contract-card,.client-contract-detail-grid b,.timeline-main>b{color:#fff!important}
.dashboard-reference .hero-metric small,.dashboard-reference .summary-pills small,.client-profile-lines span,.client-money small,.client-summary-strip small,.client-contract-kpis small,.client-pay-kpis small,.client-doc-summary small,.contract-card small,.client-contract-detail-grid small,.timeline-date,.timeline-main small{color:#93afcc!important}
.dashboard-reference .plan-strip{background:linear-gradient(135deg,#0c2b51,#103861)!important;border-color:rgba(83,180,255,.32)!important}.dashboard-reference .plan-strip>div{background:transparent!important;color:#fff!important;border-color:rgba(107,184,255,.14)!important}.dashboard-reference .inline-plan-editor input{background:#092948!important;color:#fff!important;border-color:rgba(82,177,255,.28)!important}.dashboard-reference .primary{background:linear-gradient(135deg,#536aff,#825cff)!important;border:0!important;box-shadow:0 10px 28px rgba(92,83,255,.25)!important}
.table-wrap{background:rgba(8,29,56,.83)!important;border-color:var(--v11-line)!important}.table{background:transparent!important;color:#eef8ff!important}.table th{background:linear-gradient(135deg,#0e73d5,#405ee6)!important;color:#fff!important;border:0!important}.table td{background:rgba(9,31,60,.76)!important;color:#eef8ff!important;border-color:rgba(114,184,241,.11)!important}.table tbody tr:hover td{background:rgba(25,73,119,.80)!important}
.empty{background:linear-gradient(145deg,rgba(13,44,81,.72),rgba(8,30,58,.84))!important;color:#d6ebff!important;border-color:rgba(96,177,239,.22)!important}
.client-search-card{background:linear-gradient(145deg,rgba(15,48,87,.97),rgba(9,33,64,.98))!important}.client-search-card input#cq{background:#08294d!important;color:#fff!important;border:1px solid rgba(90,182,255,.34)!important;box-shadow:none!important}.client-search-card input#cq::placeholder{color:#7696b6!important}.client-search-card input#cq:focus{border-color:#38d3ff!important;box-shadow:0 0 0 4px rgba(56,211,255,.10)!important}
.client-search-loading,.client-search-status{min-height:112px;margin-top:14px;border:1px solid rgba(89,180,255,.18);border-radius:20px;display:flex;align-items:center;justify-content:center;gap:16px;padding:20px;background:linear-gradient(145deg,rgba(14,48,88,.75),rgba(8,31,60,.86));color:#eaf7ff}.client-search-loading b,.client-search-status b{display:block;color:#fff!important}.client-search-loading small,.client-search-status small{display:block;margin-top:4px;color:#8facca!important}
.search-orb{display:inline-flex;gap:6px;min-width:54px;justify-content:center}.search-orb i{width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#39d9ff,#7868ff);box-shadow:0 0 16px rgba(57,217,255,.42);animation:v11pulse 1.05s ease-in-out infinite}.search-orb i:nth-child(2){animation-delay:.14s}.search-orb i:nth-child(3){animation-delay:.28s}@keyframes v11pulse{0%,70%,100%{transform:translateY(0) scale(.78);opacity:.42}35%{transform:translateY(-4px) scale(1.18);opacity:1}}
.client-search-status.error{border-color:rgba(255,86,134,.26);background:linear-gradient(145deg,rgba(85,28,55,.55),rgba(40,26,53,.74))}
.client-search-table .client-name b{color:#fff!important}.client-search-table .client-name small{color:#8ca8c6!important}
.client-main-tabs,.contract-subtabs,.contract-status-tabs{background:rgba(8,31,59,.88)!important;border-color:rgba(95,179,255,.20)!important}.client-main-tabs button,.contract-subtabs button,.contract-status-tabs button{color:#93aecb!important}.client-main-tabs button.active,.contract-subtabs button.active,.contract-status-tabs button.active{background:rgba(31,120,217,.11)!important;color:#58c9ff!important;box-shadow:inset 0 -3px #27a9ff!important}
.timeline-main p{background:rgba(32,164,255,.07)!important;color:#dcecff!important}.timeline-dot{box-shadow:0 0 0 4px #0d315a!important}
.ghost{background:rgba(255,255,255,.06)!important;color:#e8f5ff!important;border-color:rgba(111,184,242,.22)!important}.primary{background:linear-gradient(135deg,#247cff,#745fff)!important;color:#fff!important;border:0!important}
@media(max-width:760px){.client-search-loading,.client-search-status{min-height:96px;justify-content:flex-start;border-radius:17px;padding:16px}.card{border-radius:18px!important}}


/* V15 absolute final dark-surface normalization */
body:not(.auth-mode) #view,
body:not(.auth-mode) #view.content{background:transparent!important;color:#f4f9ff!important}
body:not(.auth-mode) #view .card,
body:not(.auth-mode) #view .inner-card,
body:not(.auth-mode) #view .dashboard-compact-controls,
body:not(.auth-mode) #view .dash-switch-head,
body:not(.auth-mode) #view .dashboard-analytics-filter,
body:not(.auth-mode) #view .dashboard-hero,
body:not(.auth-mode) #view .premium-hero,
body:not(.auth-mode) #view .target-card,
body:not(.auth-mode) #view .premium-target-card,
body:not(.auth-mode) #view .premium-dynamics,
body:not(.auth-mode) #view .dashboard-report-card,
body:not(.auth-mode) #view .field-summary,
body:not(.auth-mode) #view .field-kpi,
body:not(.auth-mode) #view .field-card,
body:not(.auth-mode) #view .comment-form,
body:not(.auth-mode) #view .comment-form-wrap,
body:not(.auth-mode) #view .home-location-form,
body:not(.auth-mode) #view .v9-comment-panel form,
body:not(.auth-mode) #view .v9-home-panel form{
  background:linear-gradient(145deg,rgba(14,47,87,.97),rgba(7,29,57,.98))!important;
  color:#f5fbff!important;
  border:1px solid rgba(82,174,255,.22)!important;
  box-shadow:0 18px 46px rgba(0,8,25,.22),inset 0 1px rgba(255,255,255,.03)!important
}
body:not(.auth-mode) #view .dashboard-compact-controls select,
body:not(.auth-mode) #view .dashboard-compact-controls input,
body:not(.auth-mode) #view .filters select,
body:not(.auth-mode) #view .filters input,
body:not(.auth-mode) #view .target-edit input,
body:not(.auth-mode) #view .inline-plan-editor input,
body:not(.auth-mode) #view form input,
body:not(.auth-mode) #view form textarea,
body:not(.auth-mode) #view form select{
  background:#08294d!important;color:#fff!important;
  border:1px solid rgba(89,180,255,.28)!important
}
body:not(.auth-mode) #view form input::placeholder,
body:not(.auth-mode) #view form textarea::placeholder{color:#7898b9!important}
body:not(.auth-mode) #view .dashboard-compact-controls,
body:not(.auth-mode) #view .dash-switch-head{border-radius:18px!important;padding:10px 14px!important}
body:not(.auth-mode) #view .dashboard-compact-controls select,
body:not(.auth-mode) #view .dashboard-compact-controls input{border-radius:12px!important}
body:not(.auth-mode) #view .hero-secondary,
body:not(.auth-mode) #view .plan-strip,
body:not(.auth-mode) #view .target-card .plan-strip,
body:not(.auth-mode) #view .summary-pills>span,
body:not(.auth-mode) #view .premium-kpis>span{
  background:linear-gradient(145deg,rgba(15,54,96,.98),rgba(9,36,69,.98))!important;
  border-color:rgba(90,180,255,.18)!important;color:#fff!important
}
body:not(.auth-mode) #view .plan-strip>div,
body:not(.auth-mode) #view .hero-secondary>div{background:transparent!important;color:#fff!important;border-color:rgba(116,188,245,.13)!important}
body:not(.auth-mode) #view .plan-strip small,
body:not(.auth-mode) #view .hero-secondary small,
body:not(.auth-mode) #view .target-card small{color:#8faccc!important}
body:not(.auth-mode) #view .plan-strip b,
body:not(.auth-mode) #view .hero-secondary b{color:#fff!important}
body:not(.auth-mode) #view .table-wrap{
  background:#092849!important;border:1px solid rgba(90,179,245,.20)!important
}
body:not(.auth-mode) #view .table th{
  background:linear-gradient(135deg,#126fd2,#3f5ee5)!important;color:#fff!important
}
body:not(.auth-mode) #view .table td{
  background:#0c2e54!important;color:#eef8ff!important;border-color:rgba(123,188,242,.10)!important
}
body:not(.auth-mode) #view .table tbody tr:nth-child(even) td{background:#0b294c!important}
body:not(.auth-mode) #view .table tbody tr:hover td{background:#154b7f!important}
body:not(.auth-mode) #view .row-menu-pop{
  background:#09294d!important;border:1px solid rgba(86,178,255,.30)!important;
  box-shadow:0 18px 45px rgba(0,4,20,.38)!important
}
body:not(.auth-mode) #view .row-menu-pop button{color:#eaf6ff!important;background:transparent!important}
body:not(.auth-mode) #view .row-menu-pop button:hover{background:rgba(39,169,255,.13)!important}
body:not(.auth-mode) #view .export-bar button,
body:not(.auth-mode) #view .table-export-action{
  background:rgba(32,164,255,.10)!important;color:#72d4ff!important;border:1px solid rgba(86,180,255,.25)!important
}
body:not(.auth-mode) #view .range-tabs,
body:not(.auth-mode) #view .premium-tabs{background:#092a4e!important;border:1px solid rgba(90,178,246,.16)!important}
body:not(.auth-mode) #view .range-tabs button{color:#a9c3df!important}
body:not(.auth-mode) #view .range-tabs button.active{background:linear-gradient(135deg,#356eff,#735fff)!important;color:white!important}
body:not(.auth-mode) #view .empty{
  background:linear-gradient(145deg,rgba(12,43,79,.76),rgba(8,29,56,.88))!important;
  color:#cfe6ff!important;border:1px dashed rgba(93,178,244,.25)!important
}
body:not(.auth-mode) #view .v9-comment-panel,
body:not(.auth-mode) #view .v9-home-panel{background:linear-gradient(145deg,#0d315a,#082743)!important}
body:not(.auth-mode) #view .v9-comment-panel form,
body:not(.auth-mode) #view .v9-home-panel form{border-radius:22px!important;padding:18px!important}
body:not(.auth-mode) #view .v9-comment-panel label,
body:not(.auth-mode) #view .v9-home-panel label{color:#a9c4df!important}
body:not(.auth-mode) #view .v9-comment-panel .comment-media-actions button,
body:not(.auth-mode) #view .v9-home-panel .comment-media-actions button{
  background:#0e3864!important;color:#65d0ff!important;border:1px solid rgba(82,186,255,.24)!important
}
body:not(.auth-mode) #view .v9-comment-panel .primary,
body:not(.auth-mode) #view .v9-home-panel .primary{
  background:linear-gradient(135deg,#218bff,#6d5cff)!important;color:#fff!important
}


/* V17 final unified dark-premium normalization */
body:not(.auth-mode) #view input,
body:not(.auth-mode) #view select,
body:not(.auth-mode) #view textarea{
  background:linear-gradient(145deg,#08294d,#0a3159)!important;
  color:#f7fbff!important;
  border:1px solid rgba(91,184,255,.30)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 8px 22px rgba(0,8,24,.10)!important;
}
body:not(.auth-mode) #view input:focus,
body:not(.auth-mode) #view select:focus,
body:not(.auth-mode) #view textarea:focus{
  outline:none!important;border-color:#42c8ff!important;
  box-shadow:0 0 0 4px rgba(66,200,255,.11),0 12px 28px rgba(0,8,24,.16)!important;
}
body:not(.auth-mode) #view input::placeholder,
body:not(.auth-mode) #view textarea::placeholder{color:#7293b6!important}
body:not(.auth-mode) #view select option{background:#0a2d52!important;color:#f4f9ff!important}
body:not(.auth-mode) #view label{color:#a8c2dd!important}
body:not(.auth-mode) #view .form-grid,
body:not(.auth-mode) #view .comment-media-actions,
body:not(.auth-mode) #view .action-row,
body:not(.auth-mode) #view .filters{
  background:transparent!important;color:#f5fbff!important
}
body:not(.auth-mode) #view .cards>.card,
body:not(.auth-mode) #view .grid2>.card,
body:not(.auth-mode) #view .inner-card,
body:not(.auth-mode) #view .field-summary,
body:not(.auth-mode) #view .field-kpi,
body:not(.auth-mode) #view .field-card{
  background:linear-gradient(145deg,rgba(14,47,87,.98),rgba(7,29,57,.99))!important;
  border:1px solid rgba(86,178,255,.21)!important;color:#f5fbff!important;
  box-shadow:0 18px 46px rgba(0,8,25,.22),inset 0 1px rgba(255,255,255,.03)!important;
}
body:not(.auth-mode) #view .plan-strip-hint{
  background:linear-gradient(135deg,rgba(31,104,177,.18),rgba(103,81,245,.13))!important;
  border:1px dashed rgba(86,188,255,.34)!important;
}
body:not(.auth-mode) #view .plan-strip-hint b{color:#dff4ff!important;font-size:14px!important}
body:not(.auth-mode) #view .inline-plan-editor{
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important
}
body:not(.auth-mode) #view .inline-plan-editor input{
  min-width:150px!important;max-width:240px!important;font-weight:800!important
}
body:not(.auth-mode) #view .row-menu summary{
  background:rgba(31,145,255,.11)!important;color:#78d7ff!important;
  border:1px solid rgba(85,181,255,.24)!important;border-radius:12px!important;
}
body:not(.auth-mode) #view .row-menu[open] summary{
  background:linear-gradient(135deg,#227ef2,#695df3)!important;color:#fff!important
}
body:not(.auth-mode) #view .row-menu-pop{
  background:linear-gradient(145deg,#0a3158,#082544)!important;
  border:1px solid rgba(89,185,255,.32)!important;
  border-radius:14px!important;overflow:hidden!important;
  box-shadow:0 22px 52px rgba(0,5,20,.48)!important;
  z-index:2000!important
}
body:not(.auth-mode) #view .row-menu-pop button{
  min-height:40px!important;color:#eef8ff!important;font-weight:700!important
}
body:not(.auth-mode) #view .row-menu-pop button:hover{
  background:linear-gradient(135deg,rgba(38,137,255,.20),rgba(114,94,255,.17))!important
}
body:not(.auth-mode) #view .ghost{
  background:rgba(34,143,244,.10)!important;color:#81d9ff!important;
  border:1px solid rgba(87,184,255,.24)!important
}
body:not(.auth-mode) #view .primary,
body:not(.auth-mode) #view button.primary{
  background:linear-gradient(135deg,#1e8cff,#725cff)!important;
  color:#fff!important;border:0!important;
  box-shadow:0 10px 28px rgba(72,99,246,.25)!important
}
body:not(.auth-mode) #view .primary:hover,
body:not(.auth-mode) #view button.primary:hover{
  filter:brightness(1.08)!important;transform:translateY(-1px)
}
body:not(.auth-mode) #view .message,
body:not(.auth-mode) #view .badge,
body:not(.auth-mode) #view .branch-pill{
  border-color:rgba(88,184,255,.24)!important
}
@media(max-width:760px){
  body:not(.auth-mode) #view input,
  body:not(.auth-mode) #view select,
  body:not(.auth-mode) #view textarea{font-size:16px!important}
  body:not(.auth-mode) #view .inline-plan-editor{align-items:stretch!important}
  body:not(.auth-mode) #view .inline-plan-editor input{max-width:none!important;flex:1 1 170px!important}
}


/* V12 light data-tables: high readability, white surface + red accent */
body:not(.auth-mode) #view .table-wrap{
  background:#fff!important;border:1px solid #e5e7eb!important;border-radius:16px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.08)!important;overflow:auto!important
}
body:not(.auth-mode) #view table.table,
body:not(.auth-mode) #view .table{background:#fff!important;color:#111827!important}
body:not(.auth-mode) #view .table thead th{
  background:#fff5f5!important;color:#991b1b!important;border-bottom:2px solid #ef4444!important;
  font-weight:900!important;text-shadow:none!important
}
body:not(.auth-mode) #view .table tbody td{
  background:#fff!important;color:#111827!important;border-bottom:1px solid #e5e7eb!important;
  font-weight:700!important;text-shadow:none!important
}
body:not(.auth-mode) #view .table tbody tr:nth-child(even) td{background:#fffafa!important}
body:not(.auth-mode) #view .table tbody tr:hover td{background:#fff1f2!important}
body:not(.auth-mode) #view .table tbody td:first-child,
body:not(.auth-mode) #view .table .client-name,
body:not(.auth-mode) #view .client-search-results td:first-child{
  color:#0f172a!important;font-weight:900!important
}
body:not(.auth-mode) #view .client-search-results small,
body:not(.auth-mode) #view .table .muted{color:#64748b!important}
body:not(.auth-mode) #view .table-wrap::-webkit-scrollbar-thumb{background:#ef4444!important}
