@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    --bs-primary: #0D99FF;
    --bs-primary-rgb: 13, 153, 255;
    --bs-body-font-family: "Poppins", Arial, sans-serif;
    --mm-primary: #0D99FF;
    --mm-primary-dark: #0784df;
    --mm-primary-soft: rgba(13,153,255,.08);
    --mm-heading: #2C2C2C;
    --mm-text: #62666d;
    --mm-muted: #969BA0;
    --mm-surface: #f5f6f8;
    --mm-card: #ffffff;
    --mm-line: #e8e9ec;
    --mm-sidebar: #ffffff;
    --mm-danger: #e94b5f;
    --mm-warning: #f5a623;
    --mm-success: #35b968;
}

html, body {
    font-family: "Poppins", Arial, sans-serif !important;
    color: var(--mm-text);
    background: var(--mm-surface) !important;
    font-size: 13px;
}
body { letter-spacing: 0; }
a { color: var(--mm-primary); }
a:hover { color: var(--mm-primary-dark); }

/* W3CRM construction: clean white navigation + blue active state */
.nav-header,
.deznav,
.header { background: #fff !important; }
.nav-header {
    border-right: 1px solid var(--mm-line) !important;
    border-bottom: 1px solid var(--mm-line) !important;
}
.header {
    border-bottom: 1px solid var(--mm-line) !important;
    box-shadow: 0 3px 14px rgba(44,44,44,.035) !important;
}
.deznav {
    border-right: 1px solid var(--mm-line) !important;
    box-shadow: 3px 0 14px rgba(44,44,44,.025) !important;
}
.portal-brand { overflow: visible !important; text-decoration: none; }
.official-logo { width: 168px; max-height: 46px; object-fit: contain; display: block; }
.portal-heading { display:flex; flex-direction:column; line-height:1.15; }
.portal-heading .eyebrow { color: var(--mm-primary); font-size: 9px; font-weight: 600; letter-spacing: 1.35px; margin-bottom: 4px; }
.portal-heading strong { color: var(--mm-heading); font-size: 15px; font-weight: 600; }

.readonly-pill {
    display:inline-flex; align-items:center; gap:8px;
    border:1px solid #d8ebfa; color:#39799e; background:#f3faff;
    border-radius:5px; padding:6px 10px; font-size:10px; font-weight:500;
}
.readonly-pill > span { width:6px; height:6px; border-radius:50%; background:var(--mm-primary); }
.avatar-initial {
    width:36px; height:36px; border-radius:6px; display:inline-flex;
    align-items:center; justify-content:center; background:var(--mm-primary-soft);
    color:var(--mm-primary); font-weight:600; text-transform:uppercase;
}
.header-info2 > span { color:var(--mm-heading); font-weight:600; }
.header-info2 small { color:var(--mm-muted); }

.portal-mode-card {
    display:flex; align-items:center; gap:10px; margin:15px 14px 10px; padding:10px 11px;
    border:1px solid var(--mm-line); border-radius:6px; background:#fbfbfc;
}
.portal-mode-icon {
    width:31px; height:31px; display:inline-flex; align-items:center; justify-content:center;
    border-radius:5px; background:var(--mm-primary-soft); color:var(--mm-primary);
    font-size:9px; font-weight:700;
}
.portal-mode-card div { display:flex; flex-direction:column; min-width:0; }
.portal-mode-card small { color:var(--mm-muted); font-size:8px; letter-spacing:.8px; }
.portal-mode-card strong { color:var(--mm-heading); font-size:11px; font-weight:600; margin-top:2px; }

.deznav .metismenu > li > a {
    color:#4e5359 !important; font-size:12.5px !important; font-weight:500 !important;
    border-radius:5px; margin:1px 10px; padding-left:12px !important;
}
.deznav .metismenu > li.mm-active > a,
.deznav .metismenu > li > a:hover {
    color:var(--mm-primary) !important; background:var(--mm-primary-soft) !important;
}
.deznav .metismenu ul { background:#fff !important; }
.deznav .metismenu ul a {
    color:#747980 !important; font-size:11.5px !important; font-weight:400 !important;
    padding-left:3.45rem !important;
}
.deznav .metismenu ul a:hover,
.deznav .metismenu ul .mm-active > a { color:var(--mm-primary) !important; }
.nav-glyph {
    width:25px; height:25px; display:inline-flex; align-items:center; justify-content:center;
    margin-right:10px; border:1px solid #e3e8ed; border-radius:5px;
    color:var(--mm-primary); background:#fff; font-size:9px; font-weight:700;
}
.submenu-dot { display:inline-block; width:4px; height:4px; border-radius:50%; background:#c4c8cc; margin-right:9px; vertical-align:2px; }
.deznav .metismenu ul .mm-active .submenu-dot,
.deznav .metismenu ul a:hover .submenu-dot { background:var(--mm-primary); }
.deznav .copyright { color:#a4a8ad !important; font-size:10px; }
.deznav .copyright strong { color:#60646a; }

.portal-container { padding-top:18px; }
.readonly-notice {
    display:flex; align-items:center; gap:10px; padding:10px 13px; margin-bottom:15px;
    background:#fff; border:1px solid var(--mm-line); border-left:3px solid var(--mm-primary);
    border-radius:6px; box-shadow:none;
}
.notice-lock { width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; background:var(--mm-primary-soft); color:var(--mm-primary); border-radius:5px; font-weight:700; }
.readonly-notice div { display:flex; flex-direction:column; }
.readonly-notice strong { color:var(--mm-heading); font-size:11px; font-weight:600; }
.readonly-notice small { color:var(--mm-muted); margin-top:1px; font-size:10px; }

.content-main { width:100%; }
.content-header { display:flex; justify-content:space-between; align-items:flex-end; gap:14px; margin:2px 0 14px; }
.content-title { color:var(--mm-heading) !important; font-weight:600 !important; font-size:20px !important; letter-spacing:-.25px; margin-bottom:3px; }
.content-header p { color:var(--mm-muted); font-size:11px; margin:0; }

.card {
    border:1px solid var(--mm-line) !important; border-radius:7px !important;
    box-shadow:0 3px 12px rgba(44,44,44,.035) !important; background:#fff;
}
.card-header { background:#fff !important; border-color:var(--mm-line) !important; padding:13px 15px; }
.card-body { padding:15px; }
.card-title, h1,h2,h3,h4,h5,h6 { color:var(--mm-heading); }

.btn { border-radius:5px !important; font-weight:500 !important; font-size:11.5px; }
.btn-primary, .btn-brand {
    background:var(--mm-primary) !important; border-color:var(--mm-primary) !important; color:#fff !important;
}
.btn-primary:hover, .btn-brand:hover { background:var(--mm-primary-dark) !important; border-color:var(--mm-primary-dark) !important; }
.btn-light { background:#fff !important; border:1px solid var(--mm-line) !important; color:#555b61 !important; }

.form-control, .form-select, .bootstrap-select .btn {
    border:1px solid #dedfe3 !important; border-radius:5px !important; color:#4c5157; font-size:11.5px;
    min-height:36px;
}
.form-control:focus, .form-select:focus {
    border-color:#9bd5ff !important; box-shadow:0 0 0 .16rem rgba(13,153,255,.10) !important;
}
.form-label { color:#6d7278; font-size:10.5px; font-weight:500; margin-bottom:4px; }

/* Reports: dense and readable like the construction data pages */
.table-responsive { border-radius:5px; }
.table { color:#51565c; font-size:11.5px; margin-bottom:0; }
.table thead th {
    color:#555a60 !important; background:#f7f7f8 !important; border-color:#e8e9eb !important;
    font-size:10px !important; font-weight:600 !important; letter-spacing:.15px;
    text-transform:none; padding:9px 8px !important; white-space:nowrap; vertical-align:middle;
}
.table tbody td {
    border-color:#ededee !important; padding:8px !important; vertical-align:middle !important;
    line-height:1.35; color:#555a60;
}
.table-hover tbody tr:hover { background:#fafcff !important; }
.table .badge { font-size:9.5px; font-weight:500; border-radius:4px; padding:5px 7px; }

.mm-page .table-responsive,
.report-page .table-responsive { max-width:100%; overflow-x:auto; }
.mm-page .table { min-width:max-content; }
.mm-page .mm-scope { font-size:10.5px; color:var(--mm-muted); }
.mm-page .mm-lic { font-weight:600; color:var(--mm-heading); line-height:1.3; }
.mm-page .mm-lic small { display:block; font-size:9.5px; font-weight:400; color:var(--mm-muted); }
.mm-status { white-space:pre-line; min-width:135px; }
.mm-date { white-space:nowrap; }
.mm-long { min-width:190px; white-space:normal; }
.mm-center { text-align:center; }
.mm-report-note { color:var(--mm-muted); font-size:10px; }
.mm-number-danger { color:var(--mm-danger); font-weight:600; }
.mm-number-warning { color:#bb7a0b; font-weight:600; }
.mm-number-success { color:var(--mm-success); font-weight:600; }

.pagination-area .pagination .page-link,
.pagination .page-link { color:#62676d; border-color:var(--mm-line); font-size:10.5px; }
.pagination .active .page-link { background:var(--mm-primary); border-color:var(--mm-primary); color:#fff; }
.alert { border-radius:6px; font-size:11.5px; }

/* Main map remains the focal dashboard element */
.content-main .turkiye-map-wrap,
.content-main .map-shell { border-radius:6px; overflow:hidden; }

.read-only-mode a[href*="/add/"], .read-only-mode a[href*="/edit/"], .read-only-mode a[href*="/delete/"], .read-only-mode a[href*="/remove/"], .read-only-mode a[href*="/onayla/"], .read-only-mode a[href*="/toggle/"], .read-only-mode a[href*="/publish"], .read-only-mode .btn-danger[data-action], .read-only-mode button[name="delete"], .read-only-mode button[name="save"], .read-only-mode button[name="update"] { display:none !important; }

/* Login pages keep the same family */
.portal-auth-page { background:#f5f6f8; }
.portal-auth-form-column { background:#fff; display:flex; align-items:center; }
.portal-auth-visual { background:linear-gradient(145deg,#f3f8fc,#fbfcfd); border-left:1px solid var(--mm-line); }
.portal-auth-form { max-width:480px; width:100%; margin:0 auto; padding:50px 44px; }
.portal-auth-form h2 { color:var(--mm-heading); font-weight:600; }
.portal-login-kind { display:inline-flex; padding:6px 9px; margin-bottom:20px; border-radius:5px; background:var(--mm-primary-soft); color:var(--mm-primary); font-size:9px; letter-spacing:1px; font-weight:600; }
.portal-login-button { background:var(--mm-primary) !important; border-color:var(--mm-primary) !important; border-radius:5px; }
.portal-switch-login { border-color:var(--mm-line); }

@media (max-width: 991.98px) {
    .content-header { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 575.98px) {
    .readonly-notice small { display:none; }
    .portal-auth-form { padding:36px 24px; }
}
@media print {
    .nav-header,.header,.deznav,.footer,.readonly-notice,.no-print { display:none !important; }
    .content-body { margin:0 !important; padding:0 !important; }
    .portal-container { max-width:none !important; padding:0 !important; }
    .card { box-shadow:none !important; border:0 !important; }
    .table { font-size:9px; }
}


/* Construction template report rhythm */
.report-page > .content-header {
    padding: 0 1px 2px;
    border-bottom: 1px solid var(--mm-line);
}
.report-page > .card {
    border-top: 2px solid rgba(13,153,255,.72) !important;
}
.report-page .card-header {
    background: #fff !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.report-page .table-responsive {
    border-radius: 0 0 6px 6px;
}
.report-page .table thead th {
    white-space: nowrap;
}
.report-page .form-control,
.report-page .form-select,
.report-page .btn {
    min-height: 34px;
}


/* Dashboard - Construction template family */
.dashboard-page .content-header { margin-bottom: 12px; }
.dashboard-map-card {
    border-top: 2px solid rgba(13,153,255,.72) !important;
    overflow: hidden;
}
.dashboard-map-card .card-body { padding: 16px 18px 18px !important; }

/* v7 — Construction topbar, dashboard KPI cards and dropdown alerts */
.header {
    background:#2b2b2b !important;
    border-bottom-color:#3b3b3b !important;
    box-shadow:none !important;
}
.header .portal-heading strong { color:#fff !important; }
.header .portal-heading .eyebrow { color:#8dceff !important; }
.header .header-right .nav-link { color:#f6f6f6 !important; }
.header .header-info2 > span { color:#fff !important; }
.header .header-info2 small { color:#c8c8c8 !important; }
.header .avatar-initial { background:#e9e9e9; color:#555; }
.portal-top-actions { align-items:center; gap:2px; }
.topbar-action {
    position:relative; width:42px; height:48px; display:flex !important; align-items:center; justify-content:center;
    border:0; background:transparent; color:#f7f7f7 !important; padding:0 !important; border-radius:4px;
}
.topbar-action:hover,.topbar-action:focus { background:rgba(255,255,255,.07) !important; color:#fff !important; }
.topbar-badge {
    position:absolute; top:6px; right:3px; min-width:17px; height:17px; padding:0 4px;
    display:inline-flex; align-items:center; justify-content:center; border-radius:9px;
    background:#ef5667; color:#fff; font-size:8px; font-weight:700; line-height:17px; border:2px solid #2b2b2b;
}
.topbar-badge.task-badge { background:#0d99ff; }
.portal-alert-menu {
    width:330px; padding:0 !important; overflow:hidden; border:1px solid #e5e6e8 !important;
    border-radius:7px !important; box-shadow:0 10px 30px rgba(25,25,25,.16) !important; margin-top:8px !important;
}
.portal-alert-head { display:flex; align-items:center; justify-content:space-between; padding:14px 15px 12px; border-bottom:1px solid #ececef; background:#fff; }
.portal-alert-head > div { display:flex; flex-direction:column; }
.portal-alert-head strong { font-size:12px; color:#2c2c2c; font-weight:600; }
.portal-alert-head small { font-size:9.5px; color:#999da2; margin-top:1px; }
.portal-alert-head > span { min-width:26px; height:26px; padding:0 7px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:rgba(13,153,255,.10); color:#0d99ff; font-weight:700; font-size:10px; }
.portal-alert-list { max-height:310px; overflow:auto; background:#fff; }
.portal-alert-item { display:flex; align-items:flex-start; gap:10px; padding:11px 14px; border-bottom:1px solid #f0f0f1; color:inherit !important; text-decoration:none !important; }
.portal-alert-item:hover { background:#f8fbfe; }
.portal-alert-avatar { flex:0 0 32px; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(13,153,255,.11); color:#0d99ff; font-size:10px; font-weight:700; }
.portal-alert-avatar.task-avatar { background:rgba(53,185,104,.12); color:#2ba65c; }
.portal-alert-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.portal-alert-copy strong { color:#34373b; font-size:10.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }
.portal-alert-copy small { color:#95999e; font-size:9px; line-height:1.35; }
.portal-alert-empty { padding:25px 15px; text-align:center; color:#9a9ea3; font-size:10.5px; }
.portal-alert-all { display:flex; justify-content:center; gap:7px; align-items:center; padding:10px 14px; color:#0d99ff !important; background:#fff; border-top:1px solid #ececef; font-size:10px; font-weight:500; text-decoration:none !important; }
.portal-alert-all span { font-size:16px; line-height:1; }

.dashboard-kpi-row { margin-bottom:15px; }
.dashboard-kpi-card { height:100%; min-height:148px; text-decoration:none !important; color:inherit !important; overflow:hidden; transition:transform .16s ease, box-shadow .16s ease; }
.dashboard-kpi-card:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(44,44,44,.08) !important; }
.dashboard-kpi-card .card-body { padding:15px 16px 14px !important; position:relative; }
.kpi-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.kpi-title { color:#2f3236; font-size:12px; font-weight:600; }
.kpi-icon { width:34px; height:34px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; }
.kpi-blue { background:#e2f3ff; color:#0d99ff; }
.kpi-sky { background:#e8f7ff; color:#168ad9; }
.kpi-warn { background:#fff0e7; color:#f08b3e; }
.kpi-green { background:#e8f8ee; color:#2eaa60; }
.kpi-value { margin-top:4px; color:#1f2327; font-size:25px; line-height:1.15; font-weight:600; letter-spacing:-.5px; }
.kpi-foot { margin-top:9px; display:flex; justify-content:space-between; gap:8px; color:#989ca1; font-size:9px; }
.kpi-link { color:#0d99ff; white-space:nowrap; }
.kpi-spark { height:25px; margin:8px -16px -14px; display:flex; align-items:flex-end; gap:7px; padding:0 16px; background:linear-gradient(to top,rgba(13,153,255,.07),transparent); }
.kpi-spark i { flex:1; background:#0d99ff; border-radius:2px 2px 0 0; opacity:.28; }
.kpi-spark i:nth-child(1){height:35%}.kpi-spark i:nth-child(2){height:72%}.kpi-spark i:nth-child(3){height:48%}.kpi-spark i:nth-child(4){height:64%}.kpi-spark i:nth-child(5){height:42%}.kpi-spark i:nth-child(6){height:60%}.kpi-spark i:nth-child(7){height:50%}
.kpi-progress { height:4px; margin-top:14px; border-radius:3px; background:#edf0f2; overflow:hidden; }
.kpi-progress span { display:block; height:100%; border-radius:3px; background:#0d99ff; }
.kpi-progress-green span { background:#35b968; }
.status-mini-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px 13px; margin-top:12px; }
.status-mini-item > div { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-bottom:5px; }
.status-mini-item span { color:#858a90; font-size:9.5px; }
.status-mini-item strong { color:#32363a; font-size:11px; font-weight:600; }
.status-mini-item b { display:block; height:4px; background:#eef0f2; border-radius:3px; overflow:hidden; }
.status-mini-item b i { display:block; height:100%; border-radius:3px; min-width:4px; }
.status-geciken b i { background:#e94b5f; }.status-red b i { background:#b93c50; }.status-duzeltme b i { background:#f5a623; }.status-eksik b i { background:#0d99ff; }
.dashboard-map-card { margin-top:2px; }

@media (max-width:767.98px){
    .portal-alert-menu { width:min(330px, calc(100vw - 24px)); }
    .header .portal-heading .eyebrow { display:none; }
    .header .portal-heading strong { font-size:12px !important; }
    .header-profile2 .header-info2 { display:none !important; }
}
