/* PERDEA ROYAL LILAC — ortak premium tasarım */
:root{
 --pd-plum:#39204f;--pd-plum2:#4b2864;--pd-lilac:#d9c5e9;--pd-lilac-bg:#f7f2fb;
 --pd-gold:#e5c58a;--pd-gold-deep:#b88b49;--pd-ink:#30223a;--pd-muted:#756681;
 --pd-line:#d9c8e8;--pd-white:#fff;
}
html,body{background:#fff!important;color:var(--pd-ink)!important}
body{font-family:"DM Sans",Inter,Arial,sans-serif!important}
header,.top,header.top,.topbar,.brand-stage,.hero-brand,.page-header,.app-header{
 background:linear-gradient(125deg,#2f193f 0%,#432458 55%,#56336b 100%)!important;
 color:#fff!important;border-color:#b99670!important;box-shadow:0 8px 26px #39204f20!important;
}
header:after,.top:after,.brand-stage:before,.brand-stage:after{border-color:#e5c58a55!important}
header a,.top a,.top .back,.brand,.brand-sub,.top small,.top p,.brand-stage *{color:#fff!important}
.brand img,.logo img,.brand-logo img,.hero-brand img,.top img{
 background:transparent!important;filter:drop-shadow(0 3px 8px #160c20aa)!important
}
.sidebar,aside,.side-nav,.sidenav{
 background:linear-gradient(180deg,#39204f,#4b2864)!important;color:#fff!important;border-color:#39204f!important
}
.sidebar a,.sidebar button,.sidebar .nav,.side-nav a,.sidenav a{color:#fff!important}
.sidebar .active,.sidebar a.active,.side-nav .active,.sidenav .active{
 background:linear-gradient(110deg,#e8d2a4,#c9a66d)!important;color:#39204f!important
}
main,.main,.workspace,.shell,.wrap,.content,.container,.page,.panel,.card,.box,.modal,.dialog,
.profile-card,.customer-list,.customer-profile,.sheet,.document,.tablebox,.table-wrap,.tablewrap,
.chartbox,.insight,.kpi,.stat,.admin-card,.order-detail,.customer-documents,.form-card{
 background-color:#fff!important;color:var(--pd-ink)!important;border-color:var(--pd-line)!important
}
body{background:linear-gradient(180deg,#fff 0%,#fff 45%,#faf7fd 100%)!important}
h1,h2,h3,h4,.section-title,.page-title{color:var(--pd-plum2)!important}
.panel-head,.panelhead,.section-head,.section-titlebar,.table-wrap thead,.tablebox thead,.tablewrap thead,
thead,th,.category-tabs,.tabs .active,.unit-tabs .active{
 background:var(--pd-plum2)!important;color:#fff!important;border-color:var(--pd-plum2)!important
}
table{background:#fff!important;color:var(--pd-ink)!important;border-color:var(--pd-line)!important}
td{background:#fff!important;color:var(--pd-ink)!important;border-color:#e8def0!important}
tr:nth-child(even) td{background:#faf7fd!important}
input,select,textarea{background:#fff!important;color:var(--pd-ink)!important;border:1.5px solid #cdb7df!important;border-radius:9px}
input:focus,select:focus,textarea:focus{outline:3px solid #eee4f6!important;border-color:#8e6aa9!important}
label,.muted,.hint,.sub,.crumb,.help-text{color:var(--pd-muted)!important}
button:not(.danger):not(.delete):not(.secondary):not(.btn-ghost):not(.close),
.btn:not(.danger):not(.secondary):not(.btn-ghost),.btn.primary,.btn.gold,.primary,.gold,
button[type=submit]:not(.danger):not(.secondary){
 background:linear-gradient(135deg,#e8d2a4,#c9a66d)!important;color:#39204f!important;
 border:1px solid #b88b49!important;box-shadow:0 4px 12px #b88b4922!important;border-radius:10px
}
.btn.soft,.btn.secondary,.btn-ghost,button.secondary{background:#f7f2fb!important;color:#4b2864!important;border:1px solid #cdb7df!important;box-shadow:none!important}
button.danger,.btn.danger,.delete{background:#a94350!important;color:#fff!important;border-color:#963744!important}
.pill,.status,.admin-pill,.hero-chip,.count,.tag,.badge{background:#f0e7f7!important;color:#4b2864!important;border:1px solid #d9c8e8!important}
.tabs button,.category-tabs button,.unit-tabs button{background:#fff!important;color:#4b2864!important;border:1px solid #d9c8e8!important}
.tabs button.active,.category-tabs button.active,.unit-tabs button.active{background:#4b2864!important;color:#fff!important}
.table-wrap,.tablebox,.tablewrap{overflow-x:auto!important}
.card,.panel,.profile-card{border-radius:14px!important;box-shadow:0 7px 22px #39204f0b!important}
@media(max-width:700px){.sidebar{background:#39204f!important}th,td{white-space:nowrap}.top{padding-top:12px!important;padding-bottom:12px!important}}


/* PERDEA KESİN ÜST ALAN STANDARDI: bütün sayfalarda logo bandı mor zemin */
html body header,
html body .top,
html body header.top,
html body .topbar,
html body .brand-stage,
html body .hero-brand,
html body .page-header,
html body .app-header,
html body .top-actions,
html body .top-spacer {
  background: linear-gradient(125deg,#2f193f 0%,#432458 55%,#56336b 100%) !important;
  background-color:#39204f !important;
  color:#fff !important;
  border-color:#c9a66d !important;
}
html body header .brand,
html body header .brand *,
html body .top .brand,
html body .top .brand *,
html body .brand-stage *,
html body .hero-brand *,
html body .page-header *,
html body .app-header *,
html body .top-actions *,
html body .top-spacer * {
  color:#fff !important;
}
html body header img,
html body .top img,
html body .brand-stage img,
html body .hero-brand img,
html body .page-header img,
html body .app-header img {
  background:transparent !important;
}


/* HESAPLAMA EKRANI — bayi paneliyle aynı antrasit / şampanya altın standardı */
body:has(.layout){
 background:#f1f2f3!important;
 color:#26292c!important;
}
body:has(.layout) .main,
body:has(.layout) .layout,
body:has(.layout) .workspace{background:transparent!important;color:#26292c!important}
body:has(.layout) .types{
 background:linear-gradient(180deg,#34383d,#26292c)!important;
 border:1px solid #c7a45d88!important;
 box-shadow:0 12px 30px #0004!important;
}
body:has(.layout) .type{
 background:linear-gradient(145deg,#fff,#e8e9ea)!important;
 color:#34383d!important;border:1px solid #d7c7a5!important;
 box-shadow:0 4px 12px #0002!important
}
body:has(.layout) .type.on{
 background:linear-gradient(110deg,#ead7a7,#c7a45d)!important;
 color:#26292c!important;border:1px solid #b48d49!important;
 box-shadow:0 5px 14px #0003!important
}
body:has(.layout) .type small{color:#5d5548!important}
body:has(.layout) .panel,
body:has(.layout) .panelbody{
 background:#fff!important;color:#26292c!important;
 border-color:#d9dcdf!important;box-shadow:0 12px 30px #11182722!important
}
body:has(.layout) .panelhead{
 background:linear-gradient(100deg,#34383d,#26292c)!important;
 color:#fff!important;border-bottom:2px solid #c7a45d!important
}
body:has(.layout) .panelhead h2{color:#fff!important}
body:has(.layout) .section{color:#98743c!important}
body:has(.layout) .field label{color:#454a50!important}
body:has(.layout) .field input,
body:has(.layout) .field select,
body:has(.layout) .measure-row input{
 background:#faf9f6!important;color:#26292c!important;border:1px solid #d1c5ad!important
}
body:has(.layout) .choice,
body:has(.layout) .measure-row,
body:has(.layout) .hint{
 background:#f8f6f1!important;border:1px solid #d9cfbd!important;color:#34383d!important
}
body:has(.layout) .choice span,
body:has(.layout) .measure-row label,
body:has(.layout) .hint{color:#4b4d4f!important}
body:has(.layout) .choice b{color:#92703b!important}
body:has(.layout) .summary{
 background:linear-gradient(145deg,#fffaf0,#eadfc9)!important;
 border:1px solid #c7a45d!important;color:#26292c!important;
 box-shadow:0 12px 28px #0003!important
}
body:has(.layout) .summary small{color:#765b2d!important}
body:has(.layout) .summary p,
body:has(.layout) .summary .line{color:#555b61!important}
body:has(.layout) .summary .total,
body:has(.layout) .summary .line b{color:#292c30!important}
body:has(.layout) .btn.primary,
body:has(.layout) .btn.soft,
body:has(.layout) .btn{
 background:linear-gradient(110deg,#ead7a7,#c7a45d)!important;
 color:#292c30!important;border:1px solid #b48d49!important
}
body:has(.layout) .room-gate{
 background:linear-gradient(135deg,#26292c,#454a50)!important
}
body:has(.layout) .room-card{
 background:linear-gradient(145deg,#34383d,#24272b)!important;
 border-color:#c7a45d!important;color:#fff!important
}
body:has(.layout) .room-card h1{color:#ead7a7!important}
body:has(.layout) .room-card p{color:#f1eee8!important}
body:has(.layout) .room-card .eyebrow{color:#ead7a7!important}
body:has(.layout) .room-choice{
 background:linear-gradient(145deg,#f3e6c9,#c7a45d)!important;
 color:#292c30!important;border:1px solid #c7a45d!important
}
body:has(.layout) .measure-drawer{
 background:linear-gradient(150deg,#34383d,#24272b)!important;border-color:#c7a45d!important
}
body:has(.layout) .measure-drawer-head{background:#26292c!important;border-color:#c7a45d!important}
body:has(.layout) .measure-drawer-head h2{color:#ead7a7!important}
body:has(.layout) .measure-item{background:#41464c!important;border-color:#c7a45d66!important}
body:has(.layout) .measure-item-title{color:#ead7a7!important}
body:has(.layout) .measure-item-data{color:#f4f1eb!important}
