@import url('data:text/css,');

:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-soft: #fff1f2;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e6eaf0;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --success: #0f9f6e;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --shadow: 0 7px 28px rgba(18, 31, 53, .07);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { flex: 0 0 auto; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; background: var(--sidebar); color: #d1d5db; border-right: 1px solid rgba(255,255,255,.06); transition: width .22s ease, transform .22s ease; }
.sidebar-brand { height: 74px; padding: 0 19px; display: flex; align-items: center; gap: 11px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand > div { min-width: 0; display: grid; line-height: 1.05; }
.sidebar-brand strong { font-size: 17px; letter-spacing: .04em; }
.sidebar-brand small { margin-top: 6px; font-size: 10px; color: #8f9bad; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; background: linear-gradient(145deg, var(--primary), #fb7185); box-shadow: 0 5px 16px rgba(225,29,72,.3); }
.brand-mark-large { width: 58px; height: 58px; border-radius: 17px; font-size: 28px; }
.sidebar-close { display: none; margin-left: auto; color: #fff; font-size: 24px; }
.sidebar-nav { flex: 1; overflow: auto; padding: 11px 10px 20px; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
.nav-group { margin-bottom: 9px; }
.nav-group-title { display: block; padding: 14px 11px 7px; color: #687387; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.nav-link { min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; margin: 2px 0; border-radius: 9px; color: #aeb7c5; font-size: 12.5px; font-weight: 540; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(225,29,72,.24), rgba(225,29,72,.09)); box-shadow: inset 3px 0 0 var(--primary); }
.nav-link svg { opacity: .9; }
.nav-link em { margin-left: auto; min-width: 20px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; font-style: normal; font-size: 10px; color: #fff; background: var(--primary); }
.sidebar-user { min-height: 69px; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.08); background: #0e1624; }
.sidebar-user > div { min-width: 0; flex: 1; display: grid; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc; font-size: 11.5px; }
.sidebar-user small { color: #7c8797; font-size: 9.5px; margin-top: 3px; }
.sidebar-user .icon-btn { color: #718096; }
.sidebar-overlay { display: none; }

.main-area { min-width: 0; width: calc(100% - 252px); margin-left: 252px; }
.topbar { position: sticky; top: 0; z-index: 35; height: 74px; display: flex; align-items: center; gap: 20px; padding: 0 29px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.mobile-menu { display: none; }
.global-search { width: min(520px, 48vw); height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: #9ca3af; transition: .18s ease; }
.global-search:focus-within { background: #fff; border-color: #fda4af; box-shadow: 0 0 0 3px var(--primary-soft); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search kbd { padding: 2px 6px; border: 1px solid #dbe0e7; border-radius: 5px; background: #fff; color: #9ca3af; font-size: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #6b7280; transition: .16s ease; }
.icon-btn:hover { color: var(--primary); background: var(--primary-soft); }
.icon-btn.danger { color: var(--danger); }
.notification-btn { position: relative; border: 1px solid var(--line); }
.notification-btn span { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px #fff; }
.topbar-user { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.topbar-user > span:last-child { display: grid; }
.topbar-user strong { font-size: 11.5px; }
.topbar-user small { color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #9f1239; background: #ffe4e6; font-size: 13px; font-weight: 750; border: 2px solid #fff; box-shadow: 0 0 0 1px #fecdd3; }
.avatar-sm { width: 31px; height: 31px; font-size: 11px; }
.avatar-xl { width: 82px; height: 82px; font-size: 28px; }

.content-area { padding: 27px 29px 0; }
.app-footer { display: flex; justify-content: space-between; padding: 30px 2px 19px; color: #9ca3af; font-size: 10px; }
.page-header { min-height: 75px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-header h1 { margin: 4px 0 6px; color: #111827; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.15; letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.eyebrow.accent { color: var(--primary); }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11.5px; font-weight: 680; line-height: 1; transition: .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 14px rgba(225,29,72,.18); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: #374151; background: #fff; border-color: #dfe4ea; }
.btn-secondary:hover { color: var(--primary); border-color: #fda4af; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 10.5px; }
.btn-lg { min-height: 47px; }
.btn-block { width: 100%; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.card-header h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.card-header > a { color: var(--primary); font-size: 10.5px; font-weight: 650; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 17px; }
.metric-card { min-height: 115px; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.metric-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.tone-primary { color: var(--primary); background: var(--primary-soft); }
.tone-warning { color: var(--warning); background: #fff7ed; }
.tone-danger { color: var(--danger); background: #fef2f2; }
.tone-info { color: var(--info); background: #eff6ff; }
.tone-success { color: var(--success); background: #ecfdf5; }
.metric-card > div { display: grid; }
.metric-card small { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-card strong { margin: 4px 0 1px; color: #111827; font-size: 27px; letter-spacing: -.04em; }
.metric-card em { color: #9ca3af; font-size: 9.5px; font-style: normal; }
.dashboard-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.dashboard-grid-main { grid-template-columns: minmax(0,1.55fr) minmax(290px,.85fr); }
.dashboard-grid-secondary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.chart-card { min-height: 302px; }
.bar-chart { display: grid; gap: 15px; padding: 20px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(80px,1fr) 26px; align-items: center; gap: 10px; font-size: 10.5px; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; font-weight: 600; }
.bar-row > div { height: 8px; overflow: hidden; border-radius: 8px; background: #f1f3f7; }
.bar-row i { height: 100%; min-width: 3px; display: block; border-radius: 8px; background: linear-gradient(90deg,var(--primary),#fb7185); }
.bar-row strong { text-align: right; font-size: 11px; }
.pipeline-list { padding: 9px 19px 17px; }
.pipeline-list > div { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px dashed var(--line); }
.pipeline-list > div:last-child { border: 0; }
.pipeline-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pipeline-list p { flex: 1; display: grid; margin: 0; }
.pipeline-list strong { font-size: 10.5px; }
.pipeline-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.pipeline-list b { font-size: 16px; }
.compact-list { padding: 7px 15px 14px; }
.compact-list > a { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid #f0f2f5; }
.compact-list > a:last-child { border-bottom: 0; }
.compact-list p { min-width: 0; flex: 1; display: grid; margin: 0; }
.compact-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.compact-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.timeline-list { padding: 10px 17px 16px; }
.timeline-list > div { display: flex; align-items: center; gap: 11px; min-height: 52px; }
.timeline-list time { width: 37px; height: 39px; display: grid; place-items: center; align-content: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 7px; line-height: 1; }
.timeline-list time b { margin-bottom: 3px; font-size: 14px; }
.timeline-list p { display: grid; margin: 0; }
.timeline-list strong { font-size: 10.5px; }
.timeline-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.activity-list { padding: 10px 17px 16px; }
.activity-list > div { display: flex; gap: 10px; min-height: 47px; }
.activity-list > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); }
.activity-list p { margin: 0; font-size: 9.5px; }
.activity-list strong { font-size: 10px; }
.activity-list small { display: block; margin-top: 3px; color: #9ca3af; font-size: 8.5px; }
.announcements-strip { display: flex; align-items: stretch; gap: 12px; padding: 12px; border: 1px solid #fecdd3; border-radius: var(--radius); background: #fff7f8; }
.strip-title { min-width: 145px; display: flex; align-items: center; gap: 8px; padding: 12px; color: var(--primary); border-right: 1px solid #fecdd3; font-size: 11px; }
.announcements-strip article { min-width: 0; flex: 1; display: flex; align-items: flex-start; gap: 8px; padding: 7px 4px; }
.announcements-strip article > div { min-width: 0; }
.announcements-strip article strong { font-size: 10.5px; }
.announcements-strip article p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.empty-mini { padding: 18px 4px; color: #9ca3af; font-size: 10px; text-align: center; }

.badge { min-height: 21px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 12px; font-size: 8.5px; font-weight: 750; white-space: nowrap; }
.badge-success { color: #047857; background: #d1fae5; }
.badge-warning { color: #b45309; background: #ffedd5; }
.badge-danger { color: #b91c1c; background: #fee2e2; }
.badge-neutral { color: #4b5563; background: #eef1f5; }
.badge-lg { padding: 6px 11px; font-size: 9.5px; }
.muted { color: var(--muted); }

.data-card { overflow: hidden; box-shadow: 0 4px 18px rgba(18,31,53,.05); }
.table-toolbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-search { width: min(270px, 35vw); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dfe4ea; border-radius: 8px; color: #9ca3af; background: #fff; }
.filter-search input { width: 100%; border: 0; outline: 0; font-size: 11px; }
.filter-form select { min-width: 135px; height: 36px; padding: 0 29px 0 10px; border: 1px solid #dfe4ea; border-radius: 8px; color: #4b5563; background: #fff; font-size: 10.5px; }
.record-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.record-count b { color: var(--ink); }
.bulk-bar { display: none; align-items: center; justify-content: space-between; padding: 9px 17px; color: #9f1239; background: #fff1f2; border-bottom: 1px solid #fecdd3; font-size: 10.5px; }
.bulk-bar.visible { display: flex; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { height: 43px; padding: 9px 13px; color: #788293; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 8.5px; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 55px; max-width: 260px; padding: 10px 13px; border-bottom: 1px solid #edf0f4; color: #4b5563; font-size: 10px; line-height: 1.35; vertical-align: middle; }
.data-table tr:hover td { background: #fdfdfe; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--ink); }
.check-cell { width: 36px; text-align: center !important; }
.check-cell input { accent-color: var(--primary); }
.action-cell { width: 82px; text-align: right !important; }
.row-actions { display: flex; justify-content: flex-end; }
.row-actions .icon-btn { width: 30px; height: 30px; }
.person-cell { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.person-cell > div { min-width: 0; display: grid; }
.person-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.person-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8.5px; margin-top: 2px; }
.empty-table { height: 260px !important; text-align: center; }
.empty-table > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 18px; color: var(--primary); background: var(--primary-soft); }
.empty-table strong { display: block; font-size: 13px; }
.empty-table p { margin: 5px 0 12px; color: var(--muted); font-size: 10px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 57px; padding: 12px 17px; border-top: 1px solid var(--line); }
.pagination a { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #6b7280; font-size: 10px; }
.pagination a.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.pagination a.disabled { opacity: .4; pointer-events: none; }

.record-form { max-width: 1120px; }
.form-card { overflow: hidden; }
.form-card-header { display: flex; align-items: center; gap: 12px; padding: 19px; border-bottom: 1px solid var(--line); }
.form-card-header h2 { margin: 0; font-size: 14px; }
.form-card-header p { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; }
.required-dot, .field-label span { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; padding: 22px; }
.form-field { min-width: 0; display: grid; align-content: start; gap: 6px; }
.form-field.wide { grid-column: 1/-1; }
.form-field label, .side-form > label { color: #374151; font-size: 10.5px; font-weight: 650; }
.form-field label span, .side-form label > span { margin-left: 3px; color: var(--primary); }
.form-field input, .form-field textarea, .form-field select, .side-form input, .side-form textarea, .side-form select, .settings-form input, .settings-form textarea, .settings-form select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe4ea; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; transition: .16s ease; }
.form-field textarea, .side-form textarea { resize: vertical; line-height: 1.55; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .side-form input:focus, .side-form select:focus, .settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus { border-color: #fda4af; box-shadow: 0 0 0 3px var(--primary-soft); }
.form-field small, .side-form small { color: #9ca3af; font-size: 9px; }
.file-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 10px; font-weight: 650; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.form-actions.inline { justify-content: flex-start; }

.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 16px; align-items: start; }
.detail-card { overflow: hidden; }
.detail-hero { min-height: 100px; display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; background: linear-gradient(120deg,#1f2937,#111827); }
.detail-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.1); }
.detail-hero > div { flex: 1; }
.detail-hero small { color: #9ca3af; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.detail-hero h2 { margin: 4px 0; font-size: 20px; }
.detail-hero .muted { color: #9ca3af; font-size: 9.5px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
.detail-item { min-height: 76px; padding: 17px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-item:nth-child(even) { border-right: 0; }
.detail-item.wide { grid-column: 1/-1; border-right: 0; }
.detail-item > span { display: block; margin-bottom: 6px; color: #8a94a3; font-size: 8.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.detail-item > div { color: #293142; font-size: 11px; line-height: 1.6; }
.detail-layout > aside { display: grid; gap: 13px; }
.side-card { padding: 18px; }
.side-card h3 { margin: 0 0 13px; font-size: 12px; }
.side-card dl, .profile-card dl { display: grid; gap: 9px; margin: 0; }
.side-card dl div, .profile-card dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.side-card dt, .profile-card dt { color: var(--muted); font-size: 9px; }
.side-card dd, .profile-card dd { margin: 0; color: #374151; font-size: 9px; font-weight: 650; text-align: right; }
.mini-activity > div { display: flex; gap: 8px; margin-bottom: 12px; }
.mini-activity > div > span { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--primary); }
.mini-activity p { display: grid; margin: 0; }
.mini-activity strong { font-size: 9.5px; }
.mini-activity small { margin-top: 3px; color: #9ca3af; font-size: 8px; }

.report-metric-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.report-metric-grid article { min-height: 105px; display: grid; align-content: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.report-metric-grid span { color: var(--muted); font-size: 9.5px; }
.report-metric-grid strong { margin: 6px 0 3px; font-size: 20px; letter-spacing: -.035em; }
.report-metric-grid small { color: #9ca3af; font-size: 8px; }
.report-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.75fr); align-items: start; }
.report-downloads { max-height: 430px; overflow: auto; padding: 7px 15px 13px; }
.report-downloads a { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 7px 3px; border-bottom: 1px solid #f0f2f5; }
.report-downloads a > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); }
.report-downloads a p { flex: 1; display: grid; margin: 0; }
.report-downloads strong { font-size: 10px; }
.report-downloads small { color: #9ca3af; font-size: 8.5px; margin-top: 2px; }
.report-downloads a > svg { color: #9ca3af; }

.month-nav { display: flex; align-items: center; gap: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.month-nav strong { min-width: 115px; text-align: center; font-size: 11px; }
.month-nav .icon-btn { width: 28px; height: 28px; font-size: 18px; }
.calendar-card { overflow: hidden; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays span { padding: 11px; color: #7b8493; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; text-align: center; }
.calendar-day { min-height: 125px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day > b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; }
.calendar-day.today > b { color: #fff; background: var(--primary); }
.muted-day { background: #fafbfc; }
.day-events { display: grid; gap: 4px; margin-top: 6px; }
.event { display: grid; padding: 5px 6px; overflow: hidden; border-radius: 5px; color: #374151; background: #f3f4f6; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.event small { margin-bottom: 2px; color: #8a94a3; font-size: 6.5px; font-weight: 750; text-transform: uppercase; }
.event-izin { background: #fff1f2; color: #9f1239; }
.event-gorev { background: #eff6ff; color: #1d4ed8; }
.event-egitim { background: #ecfdf5; color: #047857; }
.event-duyuru { background: #fff7ed; color: #b45309; }

.org-root { position: relative; }
.org-company { width: 330px; display: flex; align-items: center; gap: 15px; margin: 0 auto; padding: 19px; color: #fff; border-radius: 15px; background: linear-gradient(120deg,#111827,#263247); box-shadow: 0 12px 30px rgba(17,24,39,.18); }
.org-company small { color: #9ca3af; font-size: 8px; letter-spacing: .14em; }
.org-company h2 { margin: 3px 0; font-size: 17px; }
.org-company p { margin: 0; color: #c2c9d3; font-size: 9px; }
.org-connector { width: 1px; height: 30px; margin: 0 auto; background: #cbd5e1; }
.org-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; position: relative; }
.org-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.org-card-head { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.org-card-head > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.org-card-head > div { min-width: 0; flex: 1; }
.org-card-head h3 { margin: 0; font-size: 11px; }
.org-card-head p { overflow: hidden; margin: 3px 0 0; color: var(--muted); font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.org-card-head b { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #4b5563; background: #f3f4f6; font-size: 9px; }
.org-people { padding: 8px 13px 13px; }
.org-people a { display: flex; align-items: center; gap: 8px; min-height: 45px; border-bottom: 1px solid #f0f2f5; }
.org-people a:last-child { border: 0; }
.org-people p { min-width: 0; display: grid; margin: 0; }
.org-people strong { overflow: hidden; font-size: 9.5px; white-space: nowrap; text-overflow: ellipsis; }
.org-people small { overflow: hidden; margin-top: 2px; color: #9ca3af; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }

.settings-layout { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); gap: 16px; align-items: start; }
.settings-layout > aside { display: grid; gap: 14px; }
.side-form, .profile-form { display: grid; gap: 13px; padding: 18px; }
.side-form > label { display: grid; gap: 6px; }
.user-list { padding: 8px 15px 15px; }
.user-list > div { display: flex; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid #edf0f4; }
.user-list > div:last-child { border: 0; }
.user-list p { min-width: 0; flex: 1; display: grid; margin: 0; }
.user-list strong { font-size: 10.5px; }
.user-list small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.user-list form { margin: 0; }
.settings-form { padding: 0 0 18px; }
.settings-form .form-actions { padding: 0 22px; }
.profile-grid { display: grid; grid-template-columns: 290px minmax(360px,620px); gap: 16px; align-items: start; }
.profile-card { padding: 25px; text-align: center; }
.profile-card h2 { margin: 12px 0 4px; font-size: 17px; }
.profile-card > p { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.profile-card dl { margin-top: 22px; text-align: left; }

.search-results { overflow: hidden; }
.search-summary { padding: 14px 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.search-result { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.search-result:hover { background: #fafbfc; }
.search-result p { min-width: 0; flex: 1; display: grid; margin: 0; }
.search-result small { color: var(--primary); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.search-result strong { margin-top: 3px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.search-result > span:last-child { color: var(--muted); font-size: 9px; }
.empty-page { min-height: 360px; display: grid; place-items: center; align-content: center; padding: 40px; color: #9ca3af; text-align: center; }
.empty-page h1 { margin: 7px 0 0; color: var(--primary); font-size: 54px; }
.empty-page h2 { margin: 8px 0 4px; color: var(--ink); font-size: 17px; }
.empty-page p { margin: 0 0 15px; font-size: 10px; }

.toast { position: fixed; top: 88px; right: 25px; z-index: 100; max-width: 430px; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 15px; border: 1px solid; border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(17,24,39,.15); font-size: 10.5px; animation: toast-in .25s ease; }
.toast-success { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.toast-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.toast-warning { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.toast button { margin-left: auto; border: 0; color: inherit; background: transparent; font-size: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.login-body { min-height: 100vh; overflow-x: hidden; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px,1.05fr) minmax(460px,.95fr); }
.login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(45px,7vw,86px); color: #fff; background: radial-gradient(circle at 15% 20%,rgba(225,29,72,.36),transparent 33%), radial-gradient(circle at 90% 80%,rgba(190,18,60,.25),transparent 30%), linear-gradient(145deg,#111827,#1f2937 60%,#151b28); }
.login-brand-panel:before { content:""; position:absolute; width:420px; height:420px; top:-220px; right:-180px; border:1px solid rgba(255,255,255,.07); border-radius:50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.login-brand-panel > * { position: relative; z-index: 1; }
.login-brand-panel h1 { max-width: 610px; margin: 15px 0; font-size: clamp(38px,4.8vw,67px); line-height: 1.03; letter-spacing: -.055em; }
.login-brand-panel p { max-width: 560px; margin: 0; color: #bec6d2; font-size: 15px; line-height: 1.75; }
.login-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,210px)); gap: 12px; }
.login-feature-grid span { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #d1d5db; background: rgba(255,255,255,.035); font-size: 11px; }
.login-brand-panel > small { color: #707b8d; font-size: 10px; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-card { width: min(410px,100%); }
.mobile-login-brand { display: none; }
.login-card h2 { margin: 7px 0 7px; font-size: 29px; letter-spacing: -.045em; }
.login-card > p { margin: 0 0 27px; font-size: 11.5px; }
.alert { display: flex; align-items: center; gap: 8px; padding: 11px 12px; margin: 0 0 18px; border: 1px solid; border-radius: 8px; font-size: 10px; }
.alert-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.field-label { display: block; margin: 15px 0 7px; color: #374151; font-size: 10.5px; font-weight: 650; }
.input-icon-wrap { height: 45px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dfe4ea; border-radius: 9px; color: #9ca3af; background: #fff; }
.input-icon-wrap:focus-within { color: var(--primary); border-color: #fda4af; box-shadow: 0 0 0 3px var(--primary-soft); }
.input-icon-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11.5px; }
.password-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 0; color: #9ca3af; background: transparent; }
.login-card .btn-block { margin-top: 21px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; color: #9ca3af; font-size: 9px; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid-secondary > :last-child { grid-column: 1/-1; }
  .report-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .org-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 16px 0 40px rgba(0,0,0,.16); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); }
  .sidebar-overlay.open { display: block; }
  .main-area { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 18px; }
  .content-area { padding: 23px 18px 0; }
  .dashboard-grid-main, .report-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .mobile-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 35px; }
  .login-form-panel { min-height: 100vh; }
}

@media (max-width: 680px) {
  .topbar { height: 64px; gap: 10px; }
  .topbar-user > span:last-child, .global-search kbd { display: none; }
  .topbar-user { padding-left: 7px; }
  .global-search { width: auto; flex: 1; }
  .global-search input { font-size: 10.5px; }
  .content-area { padding: 20px 12px 0; }
  .page-header { display: grid; gap: 14px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .metric-grid, .dashboard-grid-secondary, .report-metric-grid, .org-grid { grid-template-columns: 1fr; }
  .dashboard-grid-secondary > :last-child { grid-column: auto; }
  .metric-card { min-height: 98px; }
  .announcements-strip { display: grid; }
  .strip-title { border-right: 0; border-bottom: 1px solid #fecdd3; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .filter-form { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-search { width: 100%; grid-column: 1/-1; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-item, .detail-item:nth-child(even) { border-right: 0; }
  .form-grid { padding: 17px; }
  .detail-hero { align-items: flex-start; flex-wrap: wrap; }
  .detail-hero .badge { margin-left: 70px; }
  .calendar-card { overflow-x: auto; }
  .calendar-weekdays, .calendar-grid { min-width: 720px; }
  .profile-grid { grid-template-columns: 1fr; }
  .login-form-panel { padding: 25px 20px; }
  .login-card h2 { font-size: 25px; }
  .app-footer { flex-direction: column; gap: 5px; text-align: center; }
  .toast { left: 12px; right: 12px; top: 76px; }
}

@media print {
  .sidebar, .topbar, .page-actions, .app-footer, .toast, .row-actions, .bulk-bar, .pagination { display: none !important; }
  .main-area { width: 100%; margin: 0; }
  .content-area { padding: 0; }
  .card { box-shadow: none; }
}

