/* Kepez Güvenlik - Masaüstü Birebir Tasarım Teması (Palette Matching) */
:root {
  --bg-app: #F1F0EB;
  --sidebar-bg: #123F49;
  --sidebar-alt: #173F48;
  --sidebar-border: #2A5B64;
  --panel-bg: #F1F0EB;
  --card-bg: #D0D4D3;
  --border-color: #D4DDDA;
  --text-main: #16353C;
  --text-muted: #6B8085;
  --accent: #209B8F;
  --accent-dark: #0F665F;
  --cyan: #46BCAF;
  --blue: #4C82A3;
  --clock-red: #C6202E;
  --shift-gold: #E7C36B;
  --shift-gold-text: #4A380B;
  --font-title: "Bahnschrift SemiBold", "Segoe UI Semibold", -apple-system, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.desktop-layout {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-x: hidden;
}

/* SOL KENAR ÇUBUĞU (SIDEBAR - #123F49) */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--sidebar-bg);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border-right: 1px solid var(--sidebar-border);
  z-index: 1000;
  user-select: none;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px 4px;
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #FFFFFF;
  padding: 2px;
}

.sidebar-brand-divider {
  width: 1px;
  height: 48px;
  background: #3D7078;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.ministry-title {
  font-size: 9px;
  color: #9ED8D2;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.hospital-name {
  font-family: var(--font-title);
  font-size: 14px;
  line-height: 1.15;
  color: #FFFFFF;
  font-weight: 700;
  margin: 2px 0;
}
.unit-title {
  font-size: 9px;
  color: #CBE9E5;
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--sidebar-border);
  margin: 0 4px 14px 4px;
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 8px 6px;
}
.section-title {
  font-size: 9px;
  font-weight: 700;
  color: #93BBB8;
  letter-spacing: 0.5px;
}
.badge-teams-count {
  font-size: 8px;
  font-weight: 700;
  background: #1C535D;
  color: #D6EEEB;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Vardiya Sorumluları Kartları */
.supervisors-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.sup-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.sup-btn-row:hover {
  background: #1A505A;
}
.sup-btn-row.active {
  background: #E5F2EF;
  border-color: #78C9C1;
}

.sup-initials-badge {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #1A505A;
  color: #B7D9D5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.sup-btn-row.active .sup-initials-badge {
  background: #1D746D;
  color: #FFFFFF;
}

.sup-name-text {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: #E8F5F3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup-btn-row.active .sup-name-text {
  color: #174C49;
  font-weight: 700;
}

.sup-arrow {
  font-size: 16px;
  color: #A9D3CE;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.sup-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}
.sup-btn-row.active .sup-arrow {
  color: #185C57;
}

/* Aktif Dönem Kartı */
.sidebar-period-card {
  background: var(--sidebar-alt);
  border: 1px solid var(--sidebar-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.period-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.period-header-title {
  font-size: 9px;
  font-weight: 700;
  color: #93BBB8;
}
.period-label-text {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Sidebar Eylemleri */
.sidebar-btn-action {
  background: transparent;
  border: 1px solid #3B6C74;
  color: #D6EEEB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: left;
  transition: background 0.15s;
}
.sidebar-btn-action:hover {
  background: #1A505A;
}
.sidebar-btn-action.my-duty-btn {
  background: #174E45;
  border-color: #277867;
  color: #FFFFFF;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 0 4px;
  font-size: 10px;
  color: #93BBB8;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  font-size: 10px;
}
.status-dot.green { color: #3FA87A; }

/* ÜST ÇUBUK (TOPBAR - #123F49) */
.app-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  background: var(--sidebar-bg);
  color: #FFFFFF;
  padding: 10px 20px 8px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.topbar-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.topbar-left-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: #1A505A;
  border: 1px solid #2E6871;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mobile-btn-text {
  font-size: 11px;
  margin-left: 4px;
}

.topbar-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock-badge {
  background: var(--clock-red);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.shift-badge-top {
  background: var(--shift-gold);
  color: var(--shift-gold-text);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.topbar-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-buttons-left {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-buttons-left::-webkit-scrollbar { display: none; }

.nav-btn {
  background: #1A505A;
  border: 1px solid #2E6871;
  color: #D8F0ED;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav-btn:hover {
  background: #24636C;
}
.nav-btn.active {
  background: #1F6052;
  border-color: #318774;
  color: #FFFFFF;
  font-weight: 700;
}

.cloud-sync-pill-btn {
  background: #1F6052;
  border: 1px solid #318774;
  color: #E2F6F2;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.cloud-sync-pill-btn:hover {
  background: #277867;
}

/* ANA ÇALIŞMA ALANI */
.app-content-body {
  flex: 1;
  background-color: var(--panel-bg);
  padding: 14px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Üst Kontrol Kutusu */
.control-panel-card {
  background: #D0D4D3;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ctrl-sublabel {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.ctrl-supervisor-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.ctrl-summary-text {
  font-size: 11px;
  color: var(--text-muted);
}

.date-selector-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.main-date-select {
  background: #F0F2EF;
  border: 1px solid #DCE3E0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}
.main-date-select.full-w { width: 100%; padding: 8px 10px; }

.date-quick-btns {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.quick-btn {
  background: #DCE6E3;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}
.quick-btn.active {
  background: #209B8F;
  color: #FFFFFF;
}

.btn-create-plan {
  background: var(--accent-dark);
  color: #F3FFFD;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-create-plan:hover {
  background: var(--accent);
}

/* 2 Sütunlu Çalışma Alanı */
.workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  flex: 1;
}

.panel-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #C5CBC9;
}
.panel-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}
.panel-heading {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.panel-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.roster-action-btns {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.btn-roster-action {
  background: #DCE9F1;
  color: #24556D;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.btn-roster-action.warning {
  background: #F5E4D5;
  color: #7A421C;
}

.roster-scroll-list {
  background: #C5CBC9;
  flex: 1;
  max-height: 520px;
  padding: 6px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.roster-item-row {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.roster-item-row.supervisor-row {
  background: #E5F2EF;
  border-color: #78C9C1;
  font-weight: 700;
}
.roster-item-row.is-absent {
  background: #FEE2E2;
  opacity: 0.65;
  text-decoration: line-through;
}
.roster-checkbox {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.roster-person-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}
.roster-person-team {
  font-size: 9px;
  color: var(--text-muted);
}

/* Görev Dağılım Tablosu */
.schedule-head-actions {
  display: flex;
  gap: 4px;
}
.btn-head-tool {
  background: #E8ECEA;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}
.btn-head-tool:hover {
  background: #D8DEDC;
}

.schedule-table-wrap {
  background: #C5CBC9;
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
}

.desktop-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
  background: #FFFFFF;
}

.desktop-schedule-table th {
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 8px 6px;
  font-weight: 700;
  font-size: 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.desktop-schedule-table th.th-seq { width: 44px; position: sticky; left: 0; z-index: 20; }
.desktop-schedule-table th.th-name { width: 170px; text-align: left; padding-left: 10px; position: sticky; left: 44px; z-index: 20; }

.desktop-schedule-table td {
  padding: 4px;
  border-bottom: 1px solid #CBD5E1;
  border-right: 1px solid #CBD5E1;
  height: 38px;
  cursor: pointer;
}
.desktop-schedule-table td.td-seq {
  font-weight: 700;
  background: #F8FAFC;
  color: var(--text-main);
  position: sticky;
  left: 0;
  z-index: 5;
  cursor: default;
}
.desktop-schedule-table td.td-name {
  text-align: left;
  padding-left: 10px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  background: #FFFFFF;
  position: sticky;
  left: 44px;
  z-index: 5;
  cursor: default;
}
.desktop-schedule-table tr:nth-child(even) td.td-name {
  background: #F8FAFC;
}

.post-pill-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  width: 95%;
  min-height: 24px;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.1s;
}
.post-pill-box:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.desktop-schedule-table.editing-mode td:not(.td-seq):not(.td-name) {
  outline: 2px dashed #209B8F;
  outline-offset: -3px;
}

.schedule-card-footer {
  background: #D8DCDB;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-right-btns {
  display: flex;
  gap: 6px;
}
.btn-tool-action {
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.btn-tool-action.navy { background: #1E3A5F; color: #FFFFFF; }
.btn-tool-action.outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-tool-action.teal { background: var(--accent-dark); color: #FFFFFF; }

/* Mola Planı */
.break-overview-card {
  background: #D0D4D3;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
}
.break-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.break-title { font-size: 11px; font-weight: 700; color: var(--text-main); }
.break-type-tag { font-size: 10px; background: #FEF3C7; color: #854D0E; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.break-rows-wrapper { display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
.break-item { display: flex; gap: 8px; }
.b-group { font-weight: 700; color: var(--text-main); width: 330px; }
.b-times { color: var(--text-muted); }

/* Mobil Alt Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sidebar-bg);
  border-top: 1px solid var(--sidebar-border);
  padding: 6px 4px;
  z-index: 1500;
  justify-content: space-around;
}
.mob-tab-btn {
  background: transparent;
  border: none;
  color: #D6EEEB;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.mob-tab-btn.active {
  background: #1F6052;
  color: #FFFFFF;
}

/* MODALLER */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.modal-dialog.xl { width: 95vw; max-width: 1300px; height: 85vh; }
.modal-dialog.lg { width: 840px; max-width: 95vw; }
.modal-dialog.md { width: 560px; max-width: 95vw; }
.modal-dialog.sm { width: 440px; max-width: 95vw; }

.modal-header {
  background: var(--sidebar-bg);
  color: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-tag { font-size: 9px; font-weight: 700; color: #93BBB8; letter-spacing: 0.5px; }
.modal-title { font-family: var(--font-title); font-size: 15px; font-weight: 700; color: #FFFFFF; }
.modal-close-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}

.modal-toolbar {
  background: #F1F5F9;
  border-bottom: 1px solid #CBD5E1;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-search-box {
  padding: 6px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12px;
  width: 220px;
}
.modal-chips { display: flex; gap: 4px; overflow-x: auto; }
.modal-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.modal-chip.active { background: var(--sidebar-bg); color: #FFFFFF; border-color: var(--sidebar-bg); }

.btn-download-csv {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.modal-scroll-body {
  flex: 1;
  overflow: auto;
}

.modal-excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}
.modal-excel-table th {
  background: var(--sidebar-bg);
  color: #FFFFFF;
  padding: 8px 4px;
  border: 1px solid rgba(255,255,255,0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}
.modal-excel-table td {
  padding: 5px 2px;
  border: 1px solid #E2E8F0;
  height: 32px;
}
.col-st-1 { position: sticky; left: 0; background: #F8FAFC; z-index: 5; width: 34px; font-weight: 700; }
.col-st-2 { position: sticky; left: 34px; background: #FFFFFF; z-index: 5; text-align: left; padding-left: 8px; font-weight: 600; white-space: nowrap; }

/* ADALET TABLOSU */
.fairness-stats-badges { display: flex; gap: 8px; }
.f-badge { font-size: 11px; background: #FFFFFF; border: 1px solid #CBD5E1; padding: 4px 8px; border-radius: 6px; color: var(--text-main); }
.fairness-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}
.fairness-report-table th {
  background: #123F49;
  color: #FFFFFF;
  padding: 8px 6px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.fairness-report-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #CBD5E1;
  height: 34px;
}
.fairness-report-table tr:nth-child(even) { background: #F8FAFC; }
.tag-balance {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}
.tag-balance.high { background: #FEE2E2; color: #991B1B; }
.tag-balance.good { background: #DCFCE7; color: #166534; }
.tag-balance.low { background: #E0F2FE; color: #0369A1; }

.modal-body-pad {
  padding: 18px;
  overflow-y: auto;
}

/* Personel Sırası Düzenleme */
.order-edit-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
  background: #F1F5F9;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
}
.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 10px;
}
.order-name { font-weight: 700; font-size: 12px; }
.order-btn-group { display: flex; gap: 4px; }
.btn-move-order {
  background: #E2E8F0;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.btn-move-order:hover { background: #CBD5E1; }

/* Eksik Personel Listesi */
.absence-selection-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
  background: #F1F5F9;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
}
.absence-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.absence-item-row.selected {
  background: #FEE2E2;
  border-color: #F87171;
}

/* Kişisel Nöbet Kutuları */
.my-duty-banner {
  background: linear-gradient(135deg, #123F49, #1F6052);
  color: #FFFFFF;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.duty-status-label { font-size: 10px; font-weight: 700; color: #93BBB8; }
.duty-person-name { font-size: 18px; font-weight: 800; }
.duty-team-name { font-size: 11px; color: #D6EEEB; }
.duty-pill { background: #FFFFFF; color: var(--sidebar-bg); padding: 6px 12px; border-radius: 16px; font-size: 13px; font-weight: 800; }

.my-posts-box { margin-bottom: 14px; }
.my-posts-box h5, .my-calendar-box h5 { font-size: 12px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.my-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.my-p-card { background: #F1F5F9; border: 1px solid #CBD5E1; border-radius: 6px; padding: 6px; text-align: center; }
.my-p-time { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.my-p-name { font-size: 11px; font-weight: 700; color: var(--text-main); }

.personal-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-box { background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 4px; padding: 4px 2px; text-align: center; cursor: pointer; }
.cal-box:hover { border-color: var(--accent); }
.cal-d-num { font-size: 11px; font-weight: 700; }
.cal-d-pill { font-size: 10px; font-weight: 800; border-radius: 2px; display: block; margin-top: 2px; }

.colleagues-popup-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.colleagues-popup-box h6 { font-size: 12px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.colleagues-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 11px; }
.colleagues-cols ul { list-style: square; padding-left: 16px; line-height: 1.6; }

/* Vardiya Rozetleri */
.badge-A { background: #FEF3C7; color: #854D0E; }
.badge-B { background: #DBEAFE; color: #1E40AF; }
.badge-HI { background: #DCFCE7; color: #166534; }
.badge-NI { background: #E0F2FE; color: #0369A1; }
.badge-YI { background: #F3E8FF; color: #6B21A8; }
.badge-RT { background: #FEE2E2; color: #991B1B; }

/* Rotasyon, Kurallar & Veri */
.rotation-tabs { display: flex; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid #CBD5E1; padding-bottom: 8px; }
.rot-tab { background: #E2E8F0; border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.rot-tab.active { background: var(--sidebar-bg); color: #FFFFFF; }
.rot-info { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.rot-list { padding-left: 20px; font-size: 13px; line-height: 1.8; font-weight: 600; }

.rules-card-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.rules-section-title { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.rules-bullet-list { padding-left: 18px; font-size: 12px; line-height: 1.7; color: #334155; }

.history-note-text { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.history-items-grid { display: flex; flex-direction: column; gap: 6px; }
.history-item-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.history-item-card:hover {
  background: #E5F2EF;
  border-color: #78C9C1;
}
.h-date { font-weight: 700; font-size: 12px; }
.h-sup { font-size: 11px; color: var(--text-muted); }
.h-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

.swap-form-group { margin-bottom: 14px; }
.swap-form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }

.posts-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.btn-select-post {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}

.data-block-card { background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 8px; padding: 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.block-tag { font-size: 9px; font-weight: 700; color: var(--text-muted); }
.data-block-text h4 { font-size: 14px; font-weight: 700; color: var(--text-main); margin: 2px 0; }
.data-block-text p { font-size: 11px; color: var(--text-muted); }
.btn-data-action { border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-data-action.green { background: #10B981; color: #FFFFFF; }
.btn-data-action.full-w { width: 100%; padding: 10px; }

.data-metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.data-metric-box { background: #F1F5F9; border: 1px solid #CBD5E1; border-radius: 8px; padding: 12px; text-align: center; }
.metric-val { font-size: 18px; font-weight: 800; color: var(--text-main); display: block; }
.metric-val.text-green { color: #10B981; }
.metric-lbl { font-size: 10px; font-weight: 600; color: var(--text-muted); }

/* Toast Bildirim */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #123F49;
  color: #FFFFFF;
  border: 1px solid #318774;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 9999;
}
.app-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 990;
}
.sidebar-overlay.active { display: block; }

/* Responsive Düzenlemeler */
@media (max-width: 960px) {
  .app-sidebar {
    position: fixed;
    top: 0; left: -280px; bottom: 0;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.35);
  }
  .app-sidebar.open { left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-bottom-nav { display: flex; }
  .app-content-body { padding-bottom: 70px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .control-panel-card { flex-direction: column; align-items: stretch; }
  .b-group { width: 100%; }
  .break-item { flex-direction: column; gap: 2px; }
  .data-metrics-row { grid-template-columns: repeat(2, 1fr); }
}
