/* EPA Elektrik — Müşteri Portalı 2026
   Mevcut Razor formlarını, model alanlarını ve controller yönlendirmelerini değiştirmez.
   Temanın ardından yüklendiği için sayfalar arasında ortak ve tutarlı görünüm sağlar. */
:root {
  --portal-primary:#087f98; --portal-primary-dark:#08677e; --portal-bg:#f3f9fc;
  --portal-card:#fff; --portal-text:#455b6c; --portal-muted:#718597;
  --portal-heading:#253748; --portal-border:#dbe8ef; --portal-soft:#e5f7fa;
  --portal-shadow:0 3px 18px rgba(30,70,91,.065);
  --bs-primary:#087f98; --bs-primary-rgb:8,127,152;
}
html{scroll-behavior:smooth}
body{background:#f3f9fc!important;color:var(--portal-text);font-family:'Public Sans',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.58}
::selection{background:#bdeff4;color:#08677e}
a{transition:color .17s,border-color .17s,background-color .17s}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5ac7d7;outline-offset:3px}
.portal-topbar{padding:0;position:sticky;top:0;z-index:1035;background:rgba(255,255,255,.97);border-bottom:1px solid var(--portal-border);backdrop-filter:blur(16px)}
.portal-topbar .container-xxl,.portal-main .container-xxl,.portal-footer .container-xxl{max-width:1180px}
.portal-nav-card{border:0;border-radius:0;box-shadow:none;background:transparent;min-height:78px;padding:12px 0}
.portal-brand{gap:11px}.portal-brand-mark{width:45px;height:45px;border-radius:12px;background:#087f98;box-shadow:none;letter-spacing:0;font-size:25px}
.portal-brand-title{font-size:16px;letter-spacing:.012em;color:#253748}.portal-brand-title strong{color:#087f98;font-weight:800}
.portal-brand-copy small{font-size:11px;letter-spacing:.025em;color:#708593;margin-top:4px}
.portal-nav-actions{gap:16px}.portal-nav-link{align-items:center;gap:7px;color:#455b6c;font-weight:600;text-decoration:none;font-size:13px}.portal-nav-link:hover{color:var(--portal-primary)}
.portal-nav-actions .btn{min-height:41px;border-radius:9px;padding:0 18px;font-weight:700}
.portal-container{padding-top:32px;padding-bottom:56px;min-height:calc(100vh - 190px)}
.portal-hero-card{background:#fff;border:1px solid var(--portal-border);border-radius:15px;box-shadow:var(--portal-shadow);padding:30px 34px;gap:28px;color:var(--portal-heading)}
.portal-hero-card::after{width:240px;height:240px;right:-95px;top:-140px;background:rgba(19,165,190,.07)}
.portal-hero-card h1{font-size:clamp(24px,2.8vw,34px);line-height:1.3;color:var(--portal-heading);font-weight:800;letter-spacing:-.035em;margin-bottom:12px;overflow-wrap:anywhere}
.portal-hero-card p{color:#647b8c;font-size:14px;line-height:1.75}
.portal-eyebrow{color:#087f98;background:#e5f7fa;border-radius:7px;letter-spacing:.035em;text-transform:uppercase;font-size:10px;font-weight:800;padding:7px 11px;margin-bottom:14px}
.portal-hero-tags{gap:8px;margin-top:18px}.portal-hero-tags span{color:#24677c;background:#ecf9fc;border:1px solid #d6eef4;border-radius:8px;padding:7px 11px;font-size:12px;overflow-wrap:anywhere}
.portal-hero-card .btn-light{background:#087f98;border-color:#087f98;color:#fff}.portal-hero-card .btn-outline-light{background:white;color:#087f98;border:1px solid #91d2df}.portal-hero-card .btn-light:hover{background:#08677e;color:white}.portal-hero-card .btn-outline-light:hover{background:#ecf9fc;color:#08677e}
.portal-hero-side small{color:#738899}.portal-status-pill{background:#e5f7fa!important;border-radius:7px;color:#087f98!important}
.portal-hero-device{width:225px;min-height:160px;border:1px solid #cfeaf2;background:#edf9fc;border-radius:12px;color:#087f98}.portal-hero-device i{font-size:42px}.portal-hero-device strong{color:#21546a}.portal-hero-device small{color:#75909e}
.portal-card,.portal-feature-card,.portal-kpi-card,.portal-mobile-row,.portal-empty-state,.card{border-radius:13px;box-shadow:var(--portal-shadow);border-color:var(--portal-border)}
.portal-card{border:1px solid var(--portal-border)}.card-header{background:white;border-bottom:1px solid var(--portal-border)}.card-body{min-width:0}
.portal-section-heading{align-items:center;gap:13px}.portal-section-icon{background:#e8f6fb;color:#087f98;border-radius:10px;width:46px;height:46px;font-size:23px}
.portal-section-heading h2{font-size:18px;color:var(--portal-heading);letter-spacing:-.01em}.portal-section-heading p{color:#778d9e;font-size:13px;line-height:1.55;margin-top:4px}
.portal-form-grid{gap:16px}.portal-form-grid .form-label{font-weight:700;color:#314a5c;margin-bottom:7px;font-size:12.5px}
.portal-input-lg .input-group-text,.portal-input-lg .form-control{min-height:51px}
.input-group-text{background:#f5fafc;border-color:#d7e6ed;color:#638195}
.form-control,.form-select{border-color:#d7e6ed;border-radius:9px;color:#273e50;background-color:white;font-size:14px}
.form-control::placeholder{color:#9baebc}.form-control:focus,.form-select:focus{border-color:#32a9bd;box-shadow:0 0 0 3px rgba(8,127,152,.13)}
.portal-divider{color:#9dafb9}.portal-form-hint{display:flex;gap:9px;align-items:flex-start;background:#ecf9fc;color:#326d82;font-size:12px;border-radius:9px;padding:11px 13px;margin:0 0 17px}.portal-form-hint i{font-size:17px}
.portal-form-help{display:flex;align-items:center;gap:6px;margin:15px 0 0;color:#8da0ae;font-size:11px}
.btn{border-radius:9px;font-weight:650;box-shadow:none!important}.btn-primary{background:#087f98!important;border-color:#087f98!important;color:#fff!important}.btn-primary:hover,.btn-primary:focus{background:#08677e!important;border-color:#08677e!important}.btn-outline-primary{color:#087f98!important;border-color:#7bc9d7!important}.btn-outline-primary:hover{background:#e5f7fa!important;color:#08677e!important}
.portal-main-submit{width:100%;min-height:52px;margin-top:3px}
.portal-feature-card{background:#fff!important;box-shadow:var(--portal-shadow);padding:20px;align-items:flex-start;gap:15px}
.portal-feature-icon,.portal-kpi-icon{background:#e8f6fb!important;color:#087f98!important;border-radius:10px;width:45px;height:45px;font-size:22px}
.portal-feature-card h3{font-size:14px;font-weight:800;color:#273f51}.portal-feature-card p{font-size:12.5px;line-height:1.75;color:#738899}
.portal-kpi-card{min-height:122px;padding:19px}.portal-kpi-card strong{font-size:22px;color:#253748}.portal-kpi-card small{font-size:12px}
.portal-info-list>div{border-color:#e5eff4}.portal-info-list span{color:#8195a4}
.portal-alert{box-shadow:none;border:1px solid #cae8ef;border-radius:10px}
.badge{font-weight:700;letter-spacing:.012em}.bg-label-primary{background:#e5f7fa!important;color:#087f98!important}.text-primary{color:#087f98!important}
.table{--bs-table-color:#455b6c}.table> :not(caption)>*>*{padding:12px 14px;vertical-align:middle;border-color:#e8f0f5}.table thead th{background:#f4f9fc;color:#637c8d;font-size:11px;font-weight:800;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}
.portal-footer{background:#fff;border-top:1px solid var(--portal-border)}.portal-footer-inner{align-items:center;padding:24px 0;color:#8197a7;font-size:12px}.portal-footer-inner>div:first-child{display:flex;flex-direction:column;gap:3px}.portal-footer-inner strong{color:#2b4051;font-size:13px}.portal-footer-links{display:flex;gap:21px;flex-wrap:wrap}.portal-footer-links a{color:#60798b;text-decoration:none}.portal-footer-links a:hover{color:#087f98}
.portal-empty-screen{max-width:100%}.portal-empty-screen h1{color:#273f51}
/* Extra protection for large tables and long service identifiers */
.table-responsive{max-width:100%;-webkit-overflow-scrolling:touch}.portal-main img{max-width:100%;height:auto}.portal-main h1,.portal-main h2,.portal-main h3,.portal-main p{overflow-wrap:break-word}.portal-main a,.portal-main td{overflow-wrap:anywhere}
@media (max-width:991.98px){.portal-container{padding-top:22px;padding-bottom:36px}.portal-hero-card{padding:25px}.portal-hero-side{min-width:120px}.portal-hero-card h1{font-size:27px}.portal-footer-inner{align-items:flex-start}}
@media (max-width:767.98px){body{font-size:13.5px}.portal-nav-card{min-height:67px}.portal-brand-mark{width:40px;height:40px;font-size:22px}.portal-container{padding-top:16px;padding-bottom:28px}.portal-hero-card{padding:20px;flex-wrap:wrap;border-radius:12px}.portal-hero-card h1{font-size:24px}.portal-hero-card p{font-size:13px}.portal-hero-side{min-width:0;align-items:flex-start;text-align:left}.portal-hero-tags{margin-top:13px}.portal-hero-tags span{font-size:11px}.portal-hero-actions{display:flex;flex-wrap:wrap;gap:8px}.portal-hero-actions .btn{max-width:100%;white-space:normal;text-align:center}.portal-card .card-body{padding:20px!important}.portal-feature-card{padding:17px}.portal-kpi-card{padding:15px;min-height:105px}.portal-kpi-card strong{font-size:19px}.portal-footer-inner{flex-direction:column;gap:14px}.portal-footer-links{gap:14px}.portal-section-heading h2{font-size:16px}}
@media (max-width:480px){.portal-nav-card{gap:8px}.portal-nav-actions .btn{padding:0 10px;font-size:12px;min-height:39px}.portal-brand-title{font-size:13px}.portal-brand-copy small{font-size:10px}.portal-hero-card{padding:19px 16px}.portal-card .card-body{padding:17px!important}.portal-hero-tags span{width:auto;max-width:100%}.portal-feature-card{gap:12px}.portal-feature-icon{width:39px;height:39px;font-size:20px}.portal-footer-links{gap:11px}.btn-lg{font-size:14px}.portal-input-lg .form-control{min-width:0}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Açık mavi / turkuaz / antrasit — 14.10.2026 */
:root {color-scheme:light;--portal-cyan:#16afc6;--portal-sky:#dff3fb;--portal-anthracite:#253748;}
body {background:linear-gradient(180deg,#edf8fd 0,#f3f9fc 260px,#f3f9fc 100%)!important;}
.portal-topbar {background:rgba(255,255,255,.94);box-shadow:0 1px 6px rgba(35,61,78,.035);}
.portal-brand-mark {background:linear-gradient(145deg,#18b9ce,#087f98);color:#fff;box-shadow:0 5px 13px rgba(8,127,152,.17);}
.portal-brand-title strong {color:#087f98;}
.portal-hero-card {background:linear-gradient(115deg,#fff 5%,#f3fbff 65%,#eafaff 100%);border-color:#d5ebf4;}
.portal-hero-card::after {background:rgba(58,186,211,.08);}
.portal-hero-device {background:linear-gradient(150deg,#eafaff,#f5fcff);border-color:#cae9f3;}
.portal-eyebrow,.portal-status-pill {background:#e1f6fb!important;color:#076e86!important;}
.portal-hero-tags span {background:#eaf8fd;color:#2b6377;border-color:#d3edf6;}
.portal-form-hint {background:#eaf8fd;color:#28677e;border:1px solid #d3edf6;}
.portal-section-icon,.portal-feature-icon,.portal-kpi-icon {background:#e4f6fb!important;color:#087f98!important;}
.btn-primary {background:linear-gradient(120deg,#087f98,#0e99ad)!important;border-color:#087f98!important;}
.btn-primary:hover,.btn-primary:focus {background:#08677e!important;border-color:#08677e!important;}
.portal-nav-link:hover,.portal-footer-links a:hover {color:#087f98;}
.form-control:focus,.form-select:focus {border-color:#31aec3;box-shadow:0 0 0 3px rgba(8,127,152,.13);}
.table thead th {background:#f0f8fc;}
@media(max-width:767.98px){.portal-hero-card{background:linear-gradient(155deg,#fff,#effaff)}}

/* Entrance variants and accessible site-wide theme */
.portal-login-tabs{display:flex;gap:6px;padding:5px;background:var(--portal-soft);border-radius:12px;margin-bottom:21px;flex-wrap:wrap}
.portal-login-tab{flex:1 1 125px;border:0;border-radius:9px;padding:12px 9px;background:transparent;color:var(--portal-heading);font-size:12px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.portal-login-tab.is-active{color:var(--portal-primary);background:var(--portal-card);box-shadow:0 2px 10px rgba(0,0,0,.08)}
[data-login-panel][hidden]{display:none!important}
.portal-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--portal-border);background:var(--portal-card);color:var(--portal-heading);border-radius:10px;padding:9px 12px;min-height:41px;cursor:pointer;font-weight:650}
.portal-theme-toggle i{font-size:20px}
html[data-portal-theme="dark"]{color-scheme:dark;--portal-primary:#51cbdb;--portal-primary-dark:#22a5b9;--portal-bg:#111c28;--portal-card:#1b2a39;--portal-text:#c2d1df;--portal-muted:#92aabb;--portal-heading:#ecf5fc;--portal-border:#344657;--portal-soft:#233b4b;--portal-shadow:0 6px 25px rgba(0,0,0,.20);--bs-primary:#51cbdb;--bs-primary-rgb:81,203,219}
html[data-portal-theme="dark"] body{background:linear-gradient(180deg,#152838,#111c28 280px)!important;color:var(--portal-text)}
html[data-portal-theme="dark"] .portal-topbar{background:rgba(22,35,48,.97);border-color:var(--portal-border)}
html[data-portal-theme="dark"] .portal-hero-card{background:linear-gradient(110deg,#203446,#172b3c)!important;border-color:var(--portal-border);color:var(--portal-text)}
html[data-portal-theme="dark"] .portal-hero-card h1,html[data-portal-theme="dark"] .portal-section-heading h2,html[data-portal-theme="dark"] .portal-feature-card h3,html[data-portal-theme="dark"] .portal-kpi-card strong,html[data-portal-theme="dark"] .portal-brand-title,html[data-portal-theme="dark"] .portal-footer-inner strong,html[data-portal-theme="dark"] .portal-empty-screen h1{color:var(--portal-heading)}
html[data-portal-theme="dark"] .portal-hero-card p,html[data-portal-theme="dark"] .portal-section-heading p,html[data-portal-theme="dark"] .portal-feature-card p,html[data-portal-theme="dark"] .portal-nav-link,html[data-portal-theme="dark"] .portal-footer-links a,html[data-portal-theme="dark"] .portal-form-help,html[data-portal-theme="dark"] .portal-info-list span{color:var(--portal-muted)}
html[data-portal-theme="dark"] .card,html[data-portal-theme="dark"] .portal-card,html[data-portal-theme="dark"] .portal-feature-card,html[data-portal-theme="dark"] .portal-kpi-card,html[data-portal-theme="dark"] .portal-mobile-row,html[data-portal-theme="dark"] .portal-empty-state,html[data-portal-theme="dark"] .card-header,html[data-portal-theme="dark"] .portal-footer,html[data-portal-theme="dark"] .dropdown-menu,html[data-portal-theme="dark"] .modal-content{background:var(--portal-card)!important;color:var(--portal-text)!important;border-color:var(--portal-border)!important}
html[data-portal-theme="dark"] .form-control,html[data-portal-theme="dark"] .form-select,html[data-portal-theme="dark"] .input-group-text,html[data-portal-theme="dark"] textarea{background:#152636!important;color:#e5f2fa!important;border-color:var(--portal-border)!important}
html[data-portal-theme="dark"] .form-control::placeholder{color:#8ba6ba}
html[data-portal-theme="dark"] .portal-form-grid .form-label,html[data-portal-theme="dark"] .form-label,html[data-portal-theme="dark"] .table,html[data-portal-theme="dark"] .table td,html[data-portal-theme="dark"] .table th{color:var(--portal-text)!important}
html[data-portal-theme="dark"] .table{--bs-table-bg:transparent;--bs-table-color:#c2d1df;--bs-table-border-color:#344657}html[data-portal-theme="dark"] .table thead th{background:#233747;color:#c2d1df}
html[data-portal-theme="dark"] .portal-form-hint,html[data-portal-theme="dark"] .portal-hero-tags span,html[data-portal-theme="dark"] .portal-eyebrow,html[data-portal-theme="dark"] .portal-status-pill,html[data-portal-theme="dark"] .bg-label-primary{background:#214657!important;color:#9ce3ed!important;border-color:#365b69}
html[data-portal-theme="dark"] .btn-primary{background:#09879e!important;border-color:#189ab0!important;color:white!important}
html[data-portal-theme="dark"] .portal-brand-title strong,html[data-portal-theme="dark"] .text-primary{color:#51cbdb!important}
html[data-portal-theme="dark"] .text-muted,html[data-portal-theme="dark"] small{color:#96adbe!important}
html[data-portal-theme="dark"] .alert{background:#273e4e;color:#dbeaf4;border-color:#426171}
html[data-portal-theme="dark"] .btn-outline-primary{color:#9ce3ed!important;border-color:#398ca0!important}
html[data-portal-theme="dark"] .portal-feature-icon,html[data-portal-theme="dark"] .portal-kpi-icon,html[data-portal-theme="dark"] .portal-section-icon{background:#244c5b!important;color:#9ce3ed!important}
@media(max-width:480px){.portal-theme-toggle{padding:8px;min-width:39px}.portal-login-tab{flex-basis:100%;justify-content:flex-start;padding-left:14px}.portal-nav-actions{gap:6px}}


/* Geçmiş arızalar: her iki tema için servis kayıt kartları – 14.10.2026 */
.history-item {
  background:var(--portal-card);
  color:var(--portal-text);
  border-color:var(--portal-border);
}
.history-item:hover,.history-item:focus-visible {
  background:var(--portal-card);
  color:var(--portal-text);
  border-color:var(--portal-primary);
}
.history-date {background:var(--portal-soft)}
.history-chips span {background:#ecf7fb;color:var(--portal-text)}
.history-filter-hint {background:#eaf6fb;color:var(--portal-text)}
html[data-portal-theme="dark"] .history-item,
html[data-portal-theme="dark"] .history-item:hover,
html[data-portal-theme="dark"] .history-item:focus-visible {
  background:#203344!important;
  color:#d5e5ef!important;
  border-color:#385367!important;
}
html[data-portal-theme="dark"] .history-item:hover,
html[data-portal-theme="dark"] .history-item:focus-visible {
  background:#263e50!important;
  border-color:#51cbdb!important;
}
html[data-portal-theme="dark"] .history-title-row h3,
html[data-portal-theme="dark"] .history-process {color:#f0f7fc!important}
html[data-portal-theme="dark"] .history-subtitle,
html[data-portal-theme="dark"] .history-date span {color:#b4ccdc!important}
html[data-portal-theme="dark"] .history-main p {color:#d1e0eb!important}
html[data-portal-theme="dark"] .history-date {background:#294657!important}
html[data-portal-theme="dark"] .history-date strong,
html[data-portal-theme="dark"] .history-go,
html[data-portal-theme="dark"] .history-chips i {color:#6bdae8!important}
html[data-portal-theme="dark"] .history-chips span {
  background:#294255!important;color:#dcebf4!important;
  border:1px solid #3b596b;
}
html[data-portal-theme="dark"] .history-filter-hint {
  background:#21394c!important;color:#d0e3ef!important;
  border:1px solid #355268;
}
html[data-portal-theme="dark"] .history-filter-hint i {color:#6bdae8!important}
html[data-portal-theme="dark"] .history-title-row .badge.bg-success {background:#176d4a!important;color:#e4fff2!important}
html[data-portal-theme="dark"] .history-title-row .badge.bg-warning {background:#f0b94e!important;color:#202b35!important}
html[data-portal-theme="dark"] .history-title-row .badge.bg-label-primary {background:#245b6a!important;color:#b8f2f8!important}

/* EPA logotype: both themes and mobile */
.portal-brand-logo{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;background:#152b43!important;border:1px solid rgba(73,200,218,.25);box-shadow:0 3px 12px rgba(0,0,0,.1)}
.portal-brand-logo img{width:100%;height:100%;object-fit:contain;padding:3px;display:block}
html[data-portal-theme="dark"] .portal-brand-logo{background:#152b43!important;border-color:rgba(73,200,218,.32)}
@media(max-width:480px){.portal-brand-logo img{padding:2px}}
/* Randevu sayfası – açık/koyu tema ile uyumlu */
.booking-wrap{max-width:960px;margin:0 auto;padding:18px 0 48px}.booking-heading{text-align:center;margin:0 auto 26px;max-width:720px}.booking-heading h1{font-weight:800;margin:12px 0;color:var(--portal-heading,#213b4d)}.booking-heading p{color:var(--portal-muted,#708397)}.booking-card{padding:clamp(20px,4vw,38px);border:1px solid var(--portal-border,#d8e8ee);border-radius:19px;background:var(--portal-card,#fff);box-shadow:0 12px 34px rgba(9,40,55,.06);color:var(--portal-text,#233746)}.booking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.booking-full{grid-column:1/-1}.booking-slots{display:flex;flex-wrap:wrap;gap:9px;min-height:48px;align-items:center}.booking-slot{padding:10px 18px;border:1px solid #76bbc9;background:transparent;border-radius:10px;color:inherit;font-weight:650}.booking-slot.selected,.booking-slot:hover{background:#0b91a9;border-color:#0b91a9;color:white}.booking-consent{display:flex;align-items:flex-start;gap:10px;font-size:.88rem}.booking-consent input{margin-top:5px}.booking-submit{margin-top:22px}.booking-footnote{margin:12px 0 0;font-size:.85rem;color:var(--portal-muted,#708397)}.booking-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.booking-success{text-align:center;max-width:600px;margin:70px auto}.booking-success>i{font-size:64px;color:#0b91a9}.booking-success h1{margin:15px 0}.portal-booking-link{white-space:nowrap}
html[data-portal-theme="dark"] .booking-card{background:#1c2d3c;border-color:#314c60;color:#e4f0f6}html[data-portal-theme="dark"] .booking-heading h1{color:#e4f0f6}html[data-portal-theme="dark"] .booking-heading p,html[data-portal-theme="dark"] .booking-footnote{color:#a6bfcb}html[data-portal-theme="dark"] .booking-card .form-control,html[data-portal-theme="dark"] .booking-card .form-select{background:#132432;border-color:#385367;color:#edf8fc}html[data-portal-theme="dark"] .booking-card .form-control::placeholder{color:#9bb5c2}html[data-portal-theme="dark"] .booking-slot{border-color:#3c8799}
@media(max-width:700px){.booking-grid{grid-template-columns:1fr}.booking-wrap{padding-top:0}.booking-card{padding:20px 16px}.booking-slot{flex:1;min-width:75px}.portal-booking-link span{display:none}}

/* 15.10: EPA logolu alan - gündüz/gece modunda beyaz zemin */
.portal-brand-mark.portal-brand-logo,
html[data-portal-theme="dark"] .portal-brand-mark.portal-brand-logo,
html[data-portal-theme="light"] .portal-brand-mark.portal-brand-logo {
  background:#fff !important;
  border:1px solid #dbe8ef !important;
  box-shadow:0 2px 9px rgba(25,55,70,.10) !important;
}
