/* V7.7.9 — Açık/Koyu tema sistemi. Koyu varsayılan, açık tema bu dosyada son katman olarak override edilir. */
:root{color-scheme:dark}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}

.theme-toggle,.v5-theme-toggle{appearance:none;border:1px solid #252e39;background:#151b22;color:#eef2f7;border-radius:12px;min-height:38px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:11px;font-weight:800;cursor:pointer;text-decoration:none!important;transition:.16s}
.theme-toggle:hover,.v5-theme-toggle:hover{border-color:#35404d;background:#19212a}
.theme-toggle [data-theme-icon],.v5-theme-toggle [data-theme-icon]{font-size:16px;line-height:1}
.v5-theme-wrap{padding:0 1px 4px}.v5-theme-toggle{width:100%;justify-content:flex-start}.v5-theme-toggle .v5-theme-spacer{margin-left:auto;color:#697481;font-size:15px}
.login-theme-toggle{position:fixed;right:14px;top:14px;z-index:30;min-width:112px}

/* LIGHT TOKENS + global shell */
html[data-theme="light"],html[data-theme="light"] body{background:#f3f5f7!important;color:#171a20!important}
html[data-theme="light"] body.v5-body{--app-bg:#f3f5f7;--app-surface:#ffffff;--app-surface-2:#fbfcfd;--app-surface-3:#f7f9fb;--app-line:#dfe4ea;--app-line-soft:#edf0f3;--app-text:#171a20;--app-muted:#68717d;--form-bg:#fff;--form-bg-2:#f9fafb;--form-line:#d9dee5;--form-line-2:#e7ebef;background:#f3f5f7!important;color:#171a20!important}
html[data-theme="light"] body.v5-body .v5-main{background:#f3f5f7!important;color:#171a20!important}
html[data-theme="light"] body.v5-body .topbar,html[data-theme="light"] body.v5-body .topbar *,html[data-theme="light"] body.v5-body .topbar-copy,html[data-theme="light"] body.v5-body .topbar-copy *{color:#171a20!important}
html[data-theme="light"] body.v5-body .topbar p,html[data-theme="light"] body.v5-body .topbar small,html[data-theme="light"] body.v5-body .topbar .sub{color:#68717d!important}

/* cards / panels */
html[data-theme="light"] body.v5-body .panel,
html[data-theme="light"] body.v5-body .unified-panel,
html[data-theme="light"] body.v5-body .ops-board,
html[data-theme="light"] body.v5-body .ops-live-panel,
html[data-theme="light"] body.v5-body .quick-card,
html[data-theme="light"] body.v5-body .activity-card,
html[data-theme="light"] body.v5-body .status-summary,
html[data-theme="light"] body.v5-body .service-directory-pro,
html[data-theme="light"] body.v5-body .customer-directory,
html[data-theme="light"] body.v5-body .profile-card,
html[data-theme="light"] body.v5-body .pro-card,
html[data-theme="light"] body.v5-body .field-card,
html[data-theme="light"] body.v5-body .account-party-card,
html[data-theme="light"] body.v5-body .maintenance-card,
html[data-theme="light"] body.v5-body .company-directory-card,
html[data-theme="light"] body.v5-body .v57-services-summary a,
html[data-theme="light"] body.v5-body .ops-board-row,
html[data-theme="light"] body.v5-body .ops-board-toolbar,
html[data-theme="light"] body.v5-body .ops-board-filterchips a,
html[data-theme="light"] body.v5-body .ops-status-strip>a,
html[data-theme="light"] body.v5-body .ops-live-list>a,
html[data-theme="light"] body.v5-body .v7-kpi,
html[data-theme="light"] body.v5-body .v7-finance-strip a,
html[data-theme="light"] body.v5-body .v7-block,
html[data-theme="light"] body.v5-body .v7-list>a,
html[data-theme="light"] body.v5-body .metric-card,
html[data-theme="light"] body.v5-body .workspace-grid > section,
html[data-theme="light"] body.v5-body .workspace-grid > aside > *,
html[data-theme="light"] body.v5-body .scale-table-row,
html[data-theme="light"] body.v5-body .company-mobile-card,
html[data-theme="light"] body.v5-body .service-tab-panel,
html[data-theme="light"] body.v5-body .service-panel,
html[data-theme="light"] body.v5-body .service-form-card,
html[data-theme="light"] body.v5-body .service-card,
html[data-theme="light"] body.v5-body .reminder-card,
html[data-theme="light"] body.v5-body .v5-intake-card,
html[data-theme="light"] body.v5-body .selected-customer,
html[data-theme="light"] body.v5-body .v5-quick-customer,
html[data-theme="light"] body.v5-body .v5-new-device,
html[data-theme="light"] body.v5-body .device-history,
html[data-theme="light"] body.v5-body .device-mode-bar,
html[data-theme="light"] body.v5-body .v5-intake-footer,
html[data-theme="light"] body.v5-body .smart-results,
html[data-theme="light"] body.v5-body .v5-smart-results,
html[data-theme="light"] body.v5-body .history-placeholder,
html[data-theme="light"] body.v5-body .mobile-recent-customers button,
html[data-theme="light"] body.v5-body .device-history-card,
html[data-theme="light"] body.v5-body .lookup-work-grid>div,
html[data-theme="light"] body.v5-body .lookup-finance,
html[data-theme="light"] body.v5-body .lookup-item-list>div,
html[data-theme="light"] body.v5-body .lookup-payment-summary>div,
html[data-theme="light"] body.v5-body .promise-mini-list article,
html[data-theme="light"] body.v5-body .service-collection-items>div,
html[data-theme="light"] body.v5-body .service-collection-buckets>div,
html[data-theme="light"] body.v5-body .field-item-list article,
html[data-theme="light"] body.v5-body .field-finance-split>div,
html[data-theme="light"] body.v5-body .field-payment-breakdown{background:#fff!important;color:#171a20!important;border-color:#dfe4ea!important;box-shadow:0 8px 24px rgba(16,24,40,.04)!important}

/* muted/strong text */
html[data-theme="light"] body.v5-body .ops-board-head,
html[data-theme="light"] body.v5-body .ops-board-service small,
html[data-theme="light"] body.v5-body .ops-age,
html[data-theme="light"] body.v5-body .no-reminder,
html[data-theme="light"] body.v5-body .customer-live-name em,
html[data-theme="light"] body.v5-body .customer-live-complaint,
html[data-theme="light"] body.v5-body .ops-live-list div small,
html[data-theme="light"] body.v5-body .ops-live-list em,
html[data-theme="light"] body.v5-body .record-count,
html[data-theme="light"] body.v5-body .quick-action small,
html[data-theme="light"] body.v5-body .activity-item p,
html[data-theme="light"] body.v5-body .activity-item small,
html[data-theme="light"] body.v5-body .status-line span,
html[data-theme="light"] body.v5-body .metric-card small,
html[data-theme="light"] body.v5-body .metric-head,
html[data-theme="light"] body.v5-body .panel-head p,
html[data-theme="light"] body.v5-body .premium-head p,
html[data-theme="light"] body.v5-body .empty-state,
html[data-theme="light"] body.v5-body .empty-state span{color:#6b7480!important}
html[data-theme="light"] body.v5-body .v57-services-summary a strong,
html[data-theme="light"] body.v5-body .ops-board-service b,
html[data-theme="light"] body.v5-body .customer-live-name b,
html[data-theme="light"] body.v5-body .panel-head h2,
html[data-theme="light"] body.v5-body .premium-head h2,
html[data-theme="light"] body.v5-body .quick-action b,
html[data-theme="light"] body.v5-body .activity-item b,
html[data-theme="light"] body.v5-body .status-line b,
html[data-theme="light"] body.v5-body .empty-state b,
html[data-theme="light"] body.v5-body .metric-card strong,
html[data-theme="light"] body.v5-body .ops-live-list div b{color:#171a20!important}

/* forms */
html[data-theme="light"] body.v5-body input,
html[data-theme="light"] body.v5-body select,
html[data-theme="light"] body.v5-body textarea,
html[data-theme="light"] body.v5-body .search-box input,
html[data-theme="light"] body.v5-body .filters input,
html[data-theme="light"] body.v5-body .filters select,
html[data-theme="light"] body.v5-body .form-grid input,
html[data-theme="light"] body.v5-body .form-grid select,
html[data-theme="light"] body.v5-body .form-grid textarea,
html[data-theme="light"] body.v5-body .field-form-grid input,
html[data-theme="light"] body.v5-body .field-form-grid select,
html[data-theme="light"] body.v5-body .field-form-grid textarea,
html[data-theme="light"] body.v5-body .service-item-row input,
html[data-theme="light"] body.v5-body .service-item-row select,
html[data-theme="light"] body.v5-body .service-item-add input,
html[data-theme="light"] body.v5-body .service-item-add select,
html[data-theme="light"] body.v5-body .quick-form input,
html[data-theme="light"] body.v5-body .quick-form select,
html[data-theme="light"] body.v5-body .quick-form textarea,
html[data-theme="light"] body.v5-body .modal input,
html[data-theme="light"] body.v5-body .modal select,
html[data-theme="light"] body.v5-body .modal textarea,
html[data-theme="light"] body.v5-body .comm-dialog input,
html[data-theme="light"] body.v5-body .comm-dialog select,
html[data-theme="light"] body.v5-body .comm-dialog textarea,
html[data-theme="light"] body.v5-body .lookup-card input,
html[data-theme="light"] body.v5-body .lookup-card select,
html[data-theme="light"] body.v5-body .lookup-card textarea,
html[data-theme="light"] body.v5-body .promise-entry input,
html[data-theme="light"] body.v5-body .field-item-form input,
html[data-theme="light"] body.v5-body .field-item-form select,
html[data-theme="light"] body.v5-body .field-payment-form input,
html[data-theme="light"] body.v5-body .field-payment-form select{background:#fff!important;color:#171a20!important;border-color:#d7dde4!important;box-shadow:none!important}
html[data-theme="light"] body.v5-body input::placeholder,html[data-theme="light"] body.v5-body textarea::placeholder{color:#9098a3!important}
html[data-theme="light"] body.v5-body input:focus,html[data-theme="light"] body.v5-body select:focus,html[data-theme="light"] body.v5-body textarea:focus{border-color:#22b878!important;box-shadow:0 0 0 3px rgba(34,184,120,.11)!important}
html[data-theme="light"] body.v5-body option{background:#fff!important;color:#171a20!important}
html[data-theme="light"] body.v5-body label,html[data-theme="light"] body.v5-body .form-grid label,html[data-theme="light"] body.v5-body .field-form-grid label{color:#4f5965!important}

/* search/filter surfaces */
html[data-theme="light"] body.v5-body .ops-board-toolbar,
html[data-theme="light"] body.v5-body .filters,
html[data-theme="light"] body.v5-body .service-pro-filter,
html[data-theme="light"] body.v5-body .customer-searchbar,
html[data-theme="light"] body.v5-body .device-pro-filter,
html[data-theme="light"] body.v5-body .history-filter,
html[data-theme="light"] body.v5-body .warranty-filter,
html[data-theme="light"] body.v5-body .corp-search,
html[data-theme="light"] body.v5-body .field-filter,
html[data-theme="light"] body.v5-body .collection-filter,
html[data-theme="light"] body.v5-body .unified-searchbar{background:#fff!important;border-color:#dfe4ea!important}

/* buttons */
html[data-theme="light"] body.v5-body .btn-light,
html[data-theme="light"] body.v5-body .open-btn,
html[data-theme="light"] body.v5-body .ops-board-filterchips a,
html[data-theme="light"] body.v5-body .record-count,
html[data-theme="light"] body.v5-body .quick-action,
html[data-theme="light"] body.v5-body .ops-action-buttons>a,
html[data-theme="light"] body.v5-body .quick-deliver-link,
html[data-theme="light"] body.v5-body .ops-action-buttons>button,
html[data-theme="light"] body.v5-body .service-row .open-btn{background:#f7f9fb!important;color:#20242a!important;border-color:#dfe4ea!important}
html[data-theme="light"] body.v5-body .btn-dark{background:#171a20!important;color:#fff!important;border-color:#171a20!important}
html[data-theme="light"] body.v5-body .btn-primary,html[data-theme="light"] body.v5-body .v5-primary,html[data-theme="light"] body.v5-body .primary-quick,html[data-theme="light"] body.v5-body .mobile-bottom-nav .mobile-new-service{background:linear-gradient(135deg,#28d98a,#1ebf76)!important;color:#07120d!important}

/* chips / rows */
html[data-theme="light"] body.v5-body .service-row:not(.service-row-head):hover,
html[data-theme="light"] body.v5-body .collection-job-list>a:hover,
html[data-theme="light"] body.v5-body .account-master-timeline>a:hover,
html[data-theme="light"] body.v5-body .v7-list>a:hover{background:#f8fafc!important}
html[data-theme="light"] body.v5-body .customer-live-complaint{background:#f7f9fb!important;border-color:#e1e6eb!important;color:#5e6874!important}
html[data-theme="light"] body.v5-body .live-chip{background:#f5f7f9!important;border-color:#dde3e8!important;color:#4c5662!important}
html[data-theme="light"] body.v5-body .phone-chip{background:#eaf9f1!important;border-color:#ccefdc!important;color:#14744b!important}
html[data-theme="light"] body.v5-body .device-chip{background:#eef4ff!important;border-color:#d8e6ff!important;color:#275eb8!important}
html[data-theme="light"] body.v5-body .serial-chip{background:#f4efff!important;border-color:#e4d8ff!important;color:#7150a6!important}

/* modal / sheets */
html[data-theme="light"] body.v5-body .modal,
html[data-theme="light"] body.v5-body .modal-card,
html[data-theme="light"] body.v5-body .comm-dialog,
html[data-theme="light"] body.v5-body .mobile-create-sheet>section{background:#fff!important;color:#171a20!important;border-color:#dfe4ea!important}
html[data-theme="light"] body.v5-body .modal-brandbar,html[data-theme="light"] body.v5-body .modal-head,html[data-theme="light"] body.v5-body .modal-actions,html[data-theme="light"] body.v5-body .comm-modal header,html[data-theme="light"] body.v5-body .mobile-create-sheet header{background:#fff!important;color:#171a20!important;border-color:#edf0f3!important}
html[data-theme="light"] body.v5-body .comm-modal{background:rgba(15,23,42,.35)!important}

/* sidebar */
html[data-theme="light"] body.v5-body .v5-sidebar{background:linear-gradient(180deg,#ffffff 0%,#f7f9fb 100%)!important;border-right-color:#dfe4ea!important;color:#171a20!important}
html[data-theme="light"] body.v5-body .v5-sidebar .brand{background:#171b21!important;border-color:#232a33!important}
html[data-theme="light"] body.v5-body .v5-nav-group{background:#fff!important;border-color:#e1e6eb!important}
html[data-theme="light"] body.v5-body .v5-nav-label{color:#7c8691!important}
html[data-theme="light"] body.v5-body .v5-nav a{color:#4b5561!important}
html[data-theme="light"] body.v5-body .v5-nav-icon{background:#f4f6f8!important;border-color:#e0e5ea!important;color:#303842!important}
html[data-theme="light"] body.v5-body .v5-nav a:hover{background:#f5f8fa!important;border-color:#e0e5ea!important;color:#171a20!important}
html[data-theme="light"] body.v5-body .v5-nav a.active{background:linear-gradient(135deg,rgba(34,184,120,.14),rgba(34,184,120,.06))!important;border-color:rgba(34,184,120,.23)!important;color:#102018!important;box-shadow:inset 3px 0 0 #22b878!important}
html[data-theme="light"] body.v5-body .v5-nav a.active .v5-nav-icon{background:#e8f8f0!important;border-color:#c8ebd9!important;color:#15734b!important}
html[data-theme="light"] body.v5-body .v5-nav-arrow{color:#8c96a1!important}
html[data-theme="light"] body.v5-body .v5-user-mini{background:#fff!important;border-color:#e1e6eb!important;color:#171a20!important}
html[data-theme="light"] body.v5-body .v5-user-copy span{color:#171a20!important}
html[data-theme="light"] body.v5-body .v5-user-copy small{color:#7b8590!important}
html[data-theme="light"] body.v5-body .v5-user-mini>a{background:#f3f6f8!important;border-color:#e0e5ea!important;color:#2f3740!important}
html[data-theme="light"] body.v5-body .v5-theme-toggle{background:#f5f7f9!important;color:#2a3139!important;border-color:#dfe4ea!important}

/* mobile chrome */
@media(max-width:760px){
  html[data-theme="light"] body.v5-body .mobile-headbar{background:rgba(255,255,255,.97)!important;border-bottom-color:#dfe4ea!important;box-shadow:0 2px 12px rgba(15,23,42,.05)!important}
  html[data-theme="light"] body.v5-body .mobile-headbar button,html[data-theme="light"] body.v5-body .mobile-headbar a{background:#f5f7f9!important;border-color:#dfe4ea!important;color:#20262d!important}
  html[data-theme="light"] body.v5-body .mobile-headbar .mobile-home-link{background:transparent!important;border:0!important;color:#171a20!important}
  html[data-theme="light"] body.v5-body .mobile-page-title small{color:#7d8792!important}
  html[data-theme="light"] body.v5-body .mobile-bottom-nav{background:rgba(255,255,255,.98)!important;border-top-color:#dfe4ea!important;box-shadow:0 -8px 24px rgba(15,23,42,.08)!important}
  html[data-theme="light"] body.v5-body .mobile-bottom-nav a,html[data-theme="light"] body.v5-body .mobile-bottom-nav button{color:#7d8792!important}
  html[data-theme="light"] body.v5-body .mobile-bottom-nav .active{color:#171a20!important}
  html[data-theme="light"] body.v5-body .mobile-create-sheet>section{background:#fff!important}
}

/* Login */
html[data-theme="light"] body.login-pro{background:radial-gradient(circle at 50% -10%,#ffffff 0%,#f1f4f7 52%,#e9edf1 100%)!important;color:#171a20!important}
html[data-theme="light"] body.login-pro .login-card{background:#fff!important;border-color:#dfe4ea!important;box-shadow:0 24px 60px rgba(15,23,42,.12)!important;color:#171a20!important}
html[data-theme="light"] body.login-pro .login-card h1{color:#171a20!important}
html[data-theme="light"] body.login-pro .login-card label{color:#525d69!important}
html[data-theme="light"] body.login-pro .login-card input{background:#fff!important;color:#171a20!important;border-color:#d7dde4!important}
html[data-theme="light"] body.login-pro .theme-toggle{background:#fff!important;color:#20262d!important;border-color:#d9dfe5!important}

/* Public lookup */
html[data-theme="light"] body.lookup-page,html[data-theme="light"] body.field-public-page{background:#f3f5f7!important;color:#171a20!important}
html[data-theme="light"] body.lookup-page .lookup-card,html[data-theme="light"] body.field-public-page .public-card,html[data-theme="light"] body.field-public-page .card{background:#fff!important;color:#171a20!important;border-color:#dfe4ea!important}

@media print{html[data-theme] body,html[data-theme] body *{color:#111!important}html[data-theme] body{background:#fff!important}.theme-toggle,.v5-theme-toggle{display:none!important}}

/* V7.7.10 — sidebar logo: no card/background, logo only */
html body.v5-body .v5-sidebar .brand,
html[data-theme="dark"] body.v5-body .v5-sidebar .brand,
html[data-theme="light"] body.v5-body .v5-sidebar .brand{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:4px 6px!important;
  margin:0 0 6px!important;
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
}
html body.v5-body .v5-sidebar .brand-logo,
html[data-theme="dark"] body.v5-body .v5-sidebar .brand-logo,
html[data-theme="light"] body.v5-body .v5-sidebar .brand-logo{
  display:block!important;
  width:100%!important;
  max-width:182px!important;
  height:auto!important;
  max-height:56px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
@media(max-width:980px){
  html body.v5-body .v5-sidebar .brand,
  html[data-theme="dark"] body.v5-body .v5-sidebar .brand,
  html[data-theme="light"] body.v5-body .v5-sidebar .brand{
    padding:3px 5px!important;
    margin:0 0 6px!important;
  }
  html body.v5-body .v5-sidebar .brand-logo,
  html[data-theme="dark"] body.v5-body .v5-sidebar .brand-logo,
  html[data-theme="light"] body.v5-body .v5-sidebar .brand-logo{
    max-width:176px!important;
    max-height:52px!important;
  }
}
