/* 1Byte Technology panel — açık tema.
   Koyu tema varsayılandır ve değişmez; bu dosyadaki her kural yalnızca
   html[data-theme="light"] seçildiğinde uygulanır. */

html[data-theme="light"]{
  color-scheme:light;
  --panel-page:#f3f6fa;
  --panel-sidebar:#ffffff;
  --panel-sidebar-2:#f6f9fc;
  --panel-surface:#ffffff;
  --panel-surface-2:#f8fafc;
  --panel-elevated:#eef4fb;
  --panel-border:#e3e9f0;
  --panel-border-strong:#cfd9e4;
  --panel-text:#0f1b2d;
  --panel-text-2:#3a4a5e;
  --panel-muted:#627183;
  --panel-brand:#0755ad;
  --panel-brand-hover:#0a63c4;
  --panel-brand-soft:#e7f0fb;
  --panel-cyan:#0e9aa5;
  --panel-success:#15835c;
  --panel-warning:#b8650b;
  --panel-danger:#c63d4a;
  --white:#ffffff;
  --canvas:#f3f6fa;
  --surface:#eef2f6;
  --surface-blue:#edf5ff;
  --surface-hover:#f2f7fd;
  --ink:#101b2b;
  --ink-soft:#405066;
  --muted:#66758a;
  --line:#e3e9f0;
  --line-strong:#cfd9e4;
  --navy:#09233f;
  --navy-2:#0d2f54;
  --brand:#0755ad;
  --brand-strong:#063e80;
  --cyan:#087f8c;
  --cyan-soft:#dff3f3;
  --success:#17745a;
  --warning:#a35b08;
  --danger:#b33a3a;
  --shadow-sm:0 8px 24px rgba(16,27,43,.07);
  --shadow-lg:0 24px 64px rgba(9,35,63,.13);
}
html[data-theme="light"] body{background:var(--panel-page)}

/* Tema düğmesi */
.theme-toggle{display:inline-grid;place-items:center}
.theme-toggle svg{display:block}
.theme-toggle-floating{position:fixed;top:16px;right:16px;z-index:1000;width:40px;height:40px;border-radius:10px}

/* ---------------------------------------------------------------- Portal kabuğu */
html[data-theme="light"] .portal-sidebar{border-right:1px solid var(--panel-border)!important}
html[data-theme="light"] .portal-sidebar-brand img{filter:none!important}
html[data-theme="light"] .portal-scope{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0b4a93!important}
html[data-theme="light"] .portal-nav-section{color:#62778e!important}
html[data-theme="light"] .portal-nav-section::after{color:#9fb0c2}
html[data-theme="light"] .portal-nav-button,
html[data-theme="light"] .portal-nav-button.portal-nav-product{color:#44556a!important}
html[data-theme="light"] .portal-nav-button>svg:first-child,
html[data-theme="light"] .portal-nav-button.portal-nav-product>svg:first-child{border-color:#e3e9f0!important;background:#f6f9fc!important;color:#627183!important}
html[data-theme="light"] .portal-nav-button:hover,
html[data-theme="light"] .portal-nav-button.portal-nav-product:hover{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .portal-nav-button:hover>svg:first-child{border-color:#c9dcf2!important;background:#e7f0fb!important;color:#0755ad!important}
html[data-theme="light"] .portal-nav-button.is-active,
html[data-theme="light"] .portal-nav-button.portal-nav-product.is-active{border-color:#c9dcf2!important;background:linear-gradient(90deg,#e4eefa,#f3f8fe)!important;color:#0755ad!important}
html[data-theme="light"] .portal-nav-button.is-active>svg:first-child{border-color:#0755ad!important;background:#0755ad!important;color:#fff!important}
html[data-theme="light"] .portal-nav-button.ia-group-start::before{color:#0755ad!important}
html[data-theme="light"] .portal-user-card{border-top-color:var(--panel-border)!important}
html[data-theme="light"] .portal-user-card strong{color:var(--panel-text)!important}
html[data-theme="light"] .portal-user-card>div span{color:var(--panel-muted)!important}
html[data-theme="light"] .portal-avatar{color:#fff!important}
html[data-theme="light"] .portal-avatar{box-shadow:0 0 0 3px #e7f0fb!important}
html[data-theme="light"] .portal-sidebar .icon-button{border-color:var(--panel-border)!important;background:#fff!important;color:#44556a!important}
html[data-theme="light"] .portal-sidebar .icon-button:hover{border-color:#c9dcf2!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .portal-topbar{background:rgba(255,255,255,.92)!important;border-bottom-color:var(--panel-border)!important}
html[data-theme="light"] .portal-search input{background:#f6f9fc!important;border-color:var(--panel-border)!important;color:var(--panel-text)!important}
html[data-theme="light"] .portal-search input::placeholder{color:#8a99ab}
html[data-theme="light"] .icon-button{background:#fff!important;border-color:var(--panel-border)!important;color:#44556a!important}
html[data-theme="light"] .icon-button:hover{border-color:#c9dcf2!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .app-page-head small{color:#0755ad!important}
html[data-theme="light"] .btn-secondary,html[data-theme="light"] .btn-ghost{background:#fff!important;border-color:var(--panel-border-strong)!important;color:#2f3f53!important}
html[data-theme="light"] .btn-secondary:hover,html[data-theme="light"] .btn-ghost:hover{border-color:#b9d0ea!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .btn-primary{border-color:#0755ad!important}

/* Kartlar, göstergeler, tablolar */
html[data-theme="light"] .metric-card{background:#fff!important;box-shadow:0 1px 2px rgba(16,27,43,.04),0 10px 28px rgba(16,27,43,.05)!important}
html[data-theme="light"] .metric-card-head svg{color:#0755ad!important;background:rgba(7,85,173,.09)!important}
html[data-theme="light"] .metric-card:nth-child(2) .metric-card-head svg{background:rgba(14,154,165,.1)!important;color:var(--panel-cyan)!important}
html[data-theme="light"] .metric-card:nth-child(3) .metric-card-head svg{background:rgba(21,131,92,.1)!important;color:var(--panel-success)!important}
html[data-theme="light"] .metric-card:nth-child(4) .metric-card-head svg{background:rgba(184,101,11,.1)!important;color:var(--panel-warning)!important}
html[data-theme="light"] .metric-card:nth-child(5) .metric-card-head svg{background:rgba(198,61,74,.1)!important;color:var(--panel-danger)!important}
html[data-theme="light"] :is(.panel-section,.ia-hub-card,.ia-setting-card,.ia-lifecycle-summary,.panel-chart-card){box-shadow:0 1px 2px rgba(16,27,43,.04),0 10px 28px rgba(16,27,43,.05)!important}
html[data-theme="light"] .panel-section-head,html[data-theme="light"] .panel-chart-card>header{background:#fff!important}
html[data-theme="light"] :is(.ia-hub-card,.ia-setting-card) header span,
html[data-theme="light"] .panel-chart-card>header span{color:#0755ad!important}
html[data-theme="light"] :is(.filter-bar,.field) :is(input,select,textarea){background:#fff!important;border-color:var(--panel-border-strong)!important;color:var(--panel-text)!important}
html[data-theme="light"] .app-table th{background:#f6f9fc!important;color:#5b6b7f!important}
html[data-theme="light"] .app-table tbody tr:hover,html[data-theme="light"] .support-ticket-row:hover{background:#f2f7fd!important}
html[data-theme="light"] .badge{border-color:#e2e8f0!important;background:#f1f5f9!important;color:#475569!important}
html[data-theme="light"] .badge.success{border-color:#bfe6d4!important;background:#ecfaf3!important;color:#11734f!important}
html[data-theme="light"] .badge.warning{border-color:#f5d9ac!important;background:#fff6e8!important;color:#9a5a06!important}
html[data-theme="light"] .badge.danger{border-color:#f3c3c8!important;background:#fdf0f1!important;color:#b42e3b!important}
html[data-theme="light"] .badge.info{border-color:#c5dcf5!important;background:#eef5fd!important;color:#0b5cb8!important}
html[data-theme="light"] .progress-track{background:#e7edf4!important}
html[data-theme="light"] .activity-icon{color:#0755ad!important}
html[data-theme="light"] .quick-action{background:#fff!important}
html[data-theme="light"] .quick-action:hover{border-color:#b9d0ea!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] :is(.empty-state,.dsys-empty){background:#f8fafc!important}
html[data-theme="light"] .panel-column-chart{background-image:linear-gradient(to bottom,transparent 49%,rgba(16,27,43,.07) 50%,transparent 51%)}
html[data-theme="light"] .panel-capacity-track{background:#eef2f7}
html[data-theme="light"] .panel-donut{box-shadow:0 0 0 6px rgba(7,85,173,.05)}
html[data-theme="light"] .trend-pill.is-up{color:#11734f;background:#e3f6ec}
html[data-theme="light"] .trend-pill.is-down{color:#b42e3b;background:#fbe8ea}
html[data-theme="light"] .license-type-badge{color:#0755ad;background:#eef5fd;border-color:#c5dcf5}
html[data-theme="light"] :is(.license-secret code,.dsys-created-keys code){background:#f6f9fc!important}
html[data-theme="light"] :is(.license-kind-summary,.dsys-company-access,.hr-central-access){border-color:#c9dcf2!important;background:#f1f7fe!important}
html[data-theme="light"] :is(.privacy-device-card>header,.privacy-device-card>footer,.privacy-loading,.privacy-empty){background:#f8fafc!important}
html[data-theme="light"] .portal-notification-drawer{box-shadow:0 24px 64px rgba(16,27,43,.16)!important}
html[data-theme="light"] .portal-notification-item{background:#f8fafc!important}
html[data-theme="light"] :is(.modal-backdrop,.admin-editor-backdrop){background:rgba(15,27,45,.42)!important}
html[data-theme="light"] .app-modal{box-shadow:0 28px 80px rgba(16,27,43,.2)!important}
html[data-theme="light"] .modal-head,html[data-theme="light"] .modal-actions{background:#f8fafc!important}
html[data-theme="light"] .toast{background:#0f1b2d;color:#fff}

/* KVKK düzenleyicisi */
html[data-theme="light"] .kvkk-status{border-color:#c9dcf2;background:#f1f7fe}
html[data-theme="light"] .kvkk-status.has-warning{border-color:#f5d9ac;background:#fff8ee}
html[data-theme="light"] .kvkk-status.has-warning span{color:#9a5a06}
html[data-theme="light"] .kvkk-chip{background:#fff;color:#0755ad}
html[data-theme="light"] .kvkk-chip:hover{background:#eef5fd;color:#0755ad}
html[data-theme="light"] .kvkk-body-field textarea{background:#fff!important}

/* ---------------------------------------------------------------- SETS Yönetimi */
html[data-theme="light"] .app-shell .sidebar{border-right-color:var(--panel-border)!important}
html[data-theme="light"] .app-shell .brand img{filter:none!important}
html[data-theme="light"] .app-shell .scope{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0b4a93!important}
html[data-theme="light"] .app-shell .nav a{color:#44556a!important}
html[data-theme="light"] .app-shell .nav-icon{border-color:#e3e9f0!important;background:#f6f9fc!important;color:#627183!important}
html[data-theme="light"] .app-shell .nav-text strong,html[data-theme="light"] .hr-sidebar .nav-text strong{color:inherit!important}
html[data-theme="light"] .app-shell .nav-text small{color:#62778e!important}
html[data-theme="light"] .app-shell .nav a:hover{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .app-shell .nav a.active{border-color:#c9dcf2!important;background:linear-gradient(90deg,#e4eefa,#f3f8fe)!important;color:#0755ad!important}
html[data-theme="light"] .app-shell .nav a.active .nav-icon{border-color:#0755ad!important;background:#0755ad!important;color:#fff!important}
html[data-theme="light"] .app-shell .nav a:hover:not(.active) .nav-icon{border-color:#c9dcf2!important;background:#e7f0fb!important;color:#0755ad!important}
html[data-theme="light"] .app-shell .sidebar-user{border-color:var(--panel-border)!important;background:#f8fafc!important}
html[data-theme="light"] .app-shell .topbar{background:rgba(255,255,255,.92)!important}
html[data-theme="light"] .app-shell .role-badge{border-color:#c9dcf2!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .app-shell .metric{background:#fff!important}
html[data-theme="light"] .app-shell :is(.card,.table-card,.quick-section,.activity-summary-card,.location-summary-card,.message-history-item,.recipient-row,.settings-card){box-shadow:0 1px 2px rgba(16,27,43,.04),0 10px 28px rgba(16,27,43,.05)!important}
html[data-theme="light"] .app-shell :is(input,select,textarea){background:#fff!important}
html[data-theme="light"] .app-shell .search{background:#f6f9fc!important}
html[data-theme="light"] .app-shell .button.secondary{background:#fff!important;color:#2f3f53!important}
html[data-theme="light"] .app-shell .button.secondary:hover{border-color:#b9d0ea!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .app-shell .button.danger{border-color:#f3c3c8!important;background:#fdf0f1!important;color:#b42e3b!important}
html[data-theme="light"] .app-shell th{background:#f6f9fc!important;color:#5b6b7f!important}
html[data-theme="light"] .app-shell tbody tr:hover{background:#f2f7fd!important}
html[data-theme="light"] .app-shell .badge{border-color:#e2e8f0!important;background:#f1f5f9!important;color:#475569!important}
html[data-theme="light"] .app-shell :is(.badge.completed,.badge.active){border-color:#bfe6d4!important;background:#ecfaf3!important;color:#11734f!important}
html[data-theme="light"] .app-shell .badge.assigned{border-color:#c5dcf5!important;background:#eef5fd!important;color:#0b5cb8!important}
html[data-theme="light"] .app-shell .badge.in_progress{border-color:#f5d9ac!important;background:#fff6e8!important;color:#9a5a06!important}
html[data-theme="light"] .app-shell :is(.activity-status,.geo-card,.geo-empty,.feature-locked,.archive-card .section-head){background:#f8fafc!important}
html[data-theme="light"] .app-shell .date-picker-button{background:#eef4fb!important;color:#0755ad!important}

/* ---------------------------------------------------------------- İnsan Kaynakları */
html[data-theme="light"] .hr-shell{--green-bg:#ecfaf3;--red-bg:#fdf0f1;--amber-bg:#fff6e8}
html[data-theme="light"] .hr-sidebar{border-right-color:var(--panel-border)!important}
html[data-theme="light"] .hr-module{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0b4a93!important}
html[data-theme="light"] :is(.nav-item,.back-link){color:#44556a!important}
html[data-theme="light"] :is(.nav-item,.back-link) .nav-icon{border-color:#e3e9f0!important;background:#f6f9fc!important;color:#627183!important}
html[data-theme="light"] .hr-sidebar .nav-text small{color:#62778e!important}
html[data-theme="light"] :is(.nav-item,.back-link):hover{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .nav-item.active{border-color:#c9dcf2!important;background:linear-gradient(90deg,#e4eefa,#f3f8fe)!important;color:#0755ad!important}
html[data-theme="light"] .nav-item.active .nav-icon{border-color:#0755ad!important;background:#0755ad!important;color:#fff!important}
html[data-theme="light"] .hr-sidebar .sidebar-user{border-color:var(--panel-border)!important}
html[data-theme="light"] .hr-topbar{background:rgba(255,255,255,.92)!important}
html[data-theme="light"] .eyebrow{color:#0755ad!important}
html[data-theme="light"] :is(.secondary-button,.hr-shell .icon-button){background:#fff!important;color:#2f3f53!important}
html[data-theme="light"] .hr-shell .metric{background:#fff!important}
html[data-theme="light"] :is(.toolbar,.table-wrap,.overview-panel,.pipeline-card,.settings-panel,.privacy-status,.empty){box-shadow:0 1px 2px rgba(16,27,43,.04),0 10px 28px rgba(16,27,43,.05)!important}
html[data-theme="light"] :is(.search,.hr-shell select,.hr-shell input,.hr-shell textarea){background:#fff!important}
html[data-theme="light"] .toggle span{background:#cbd5e1!important}
html[data-theme="light"] .hr-shell th{background:#f6f9fc!important;color:#5b6b7f!important}
html[data-theme="light"] .hr-shell tbody tr:hover{background:#f2f7fd!important}
html[data-theme="light"] .pipeline-column{border-color:#c9dcf2!important;background:#f8fafc!important}
html[data-theme="light"] .overview-item>span:first-child{border-color:#c5dcf5!important;background:#eef5fd!important;color:#0b5cb8!important}
html[data-theme="light"] .form-note{background:#f1f7fe!important;color:#0b4a93!important}
html[data-theme="light"] .document-list{background:#f8fafc!important}

@media(max-width:900px){
  html[data-theme="light"] :is(.portal-sidebar,.app-shell .sidebar,.hr-sidebar){box-shadow:20px 0 55px rgba(16,27,43,.16)!important}
}
html[data-theme="light"] .app-shell .sidebar-user :is(span,small,p){color:#627183!important}
html[data-theme="light"] :is(.table-wrap,.panel-table-wrap){scrollbar-color:#cbd5e1 transparent}

/* ---------------------------------------------------------------- Giriş ekranı */
html[data-theme="light"] .portal-login{background:#fff}
html[data-theme="light"] .login-visual{background:linear-gradient(155deg,#0a5bb8 0%,#0755ad 45%,#053d7c 100%)!important}
html[data-theme="light"] .login-visual-copy small{color:#a9d3ff!important}
html[data-theme="light"] .login-visual-copy h2{color:#fff!important}
html[data-theme="light"] .login-visual-copy p{color:rgba(255,255,255,.8)!important}
html[data-theme="light"] .login-preview{border-color:rgba(255,255,255,.22)!important;box-shadow:0 24px 60px rgba(3,24,52,.35)!important}

/* SETS ve İK sayfalarının kendi değişkenleri (giriş kartı gibi kabuk dışındaki alanlar) */
html[data-theme="light"]{--bg:#f3f6fa;--panel:#ffffff;--blue:#0755ad;--blue-dark:#0a63c4;--green:#15835c;--red:#c63d4a;--amber:#b8650b;--sidebar:#ffffff}
html[data-theme="light"] .login-card{box-shadow:0 1px 2px rgba(16,27,43,.04),0 18px 45px rgba(16,27,43,.08)!important}
html[data-theme="light"] .login-card :is(input,select){background:#fff!important;color:var(--panel-text)!important;border-color:var(--panel-border-strong)!important}
html[data-theme="light"] .login-card .button.secondary{background:#fff!important;color:#2f3f53!important;border-color:var(--panel-border-strong)!important}
html[data-theme="light"] .hr-sidebar .brand-word{color:#0755ad!important}
html[data-theme="light"] .hr-brand small{color:#627183!important}
html[data-theme="light"] .hr-sidebar .back-link{border-color:var(--panel-border)!important;background:#f6f9fc!important;color:#44556a!important}
html[data-theme="light"] .hr-sidebar .back-link:hover{border-color:#d6e4f3!important;background:#f1f7fe!important;color:#0755ad!important}
html[data-theme="light"] .hr-sidebar .sidebar-user{background:#f8fafc!important}
html[data-theme="light"] .hr-sidebar .sidebar-user :is(span,small):not(.avatar){color:#627183!important}
html[data-theme="light"] .hr-sidebar .sidebar-user .avatar{color:#fff!important;box-shadow:0 0 0 3px #e7f0fb!important}

/* İK üst çubuğunda düğme sağda durur; dar ekranda rozet gizlenince sağa yaslanır */
.hr-topbar .hr-theme-toggle{flex:none;width:38px;height:38px}
@media(max-width:980px){.hr-topbar .hr-theme-toggle{margin-left:auto}}
html[data-theme="light"] #portalTurnstileBox>strong{color:#0755ad!important}
html[data-theme="light"] .app-shell .quick-tabs .button.button-active{border-color:#0755ad!important;background:#0755ad!important;color:#fff!important}
