/* ===================================================================
   Cecasolution İntranet — Kurumsal Tasarım Sistemi (Design System)
   Marka renkleri kurumsal kimlik kılavuzuna sadık kalınarak tanımlanmıştır.
   =================================================================== */

:root {
  /* --- Marka Renkleri --- */
  --ceca-blue: #0f3f79;       /* Cecasolution lacivert — ana kurumsal renk */
  --ceca-blue-dark: #0a2f5c;
  --ceca-blue-light: #e8eef7;
  --ceca-sky: #22acdd;        /* Cecasolution açık mavi — marka vurgusu */
  --ceca-sky-dark: #1795c4;
  --ceca-sky-light: #e4f5fb;
  --ceca-green: #1f9d55;      /* Başarı / onay durumu */
  --ceca-green-dark: #178046;
  --ceca-green-light: #e6f5ec;
  --ceca-orange: #ff8828;     /* Uyarı / dikkat */
  --ceca-orange-light: #fff1e3;

  /* --- Nötr Renkler --- */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef1f4;
  --gray-200: #dfe4ea;
  --gray-300: #c7cfd8;
  --gray-500: #7a8694;
  --gray-700: #454f5b;
  --gray-900: #1c2733;

  /* --- Anlamsal Renkler --- */
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --bg: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-200);
  --primary: var(--ceca-blue);
  --success: var(--ceca-green);
  --warning: var(--ceca-orange);

  /* --- Tipografi --- */
  --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", var(--font-sans);

  /* --- Yerleşim --- */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 63, 121, 0.12);
  --sidebar-w: 260px;
  --header-h: 70px;
  --page-max: 1440px;
  --transition: 0.2s ease;
}

/* --- Sıfırlama --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ceca-blue-dark); }

img { max-width: 100%; display: block; }

/* --- Yardımcı --- */
.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 32px; }

/* --- Butonlar --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--ceca-blue); color: var(--white); }
.btn-primary:hover { background: var(--ceca-blue-dark); color: var(--white); }
.btn-success { background: var(--ceca-green); color: var(--white); }
.btn-success:hover { background: var(--ceca-green-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--ceca-blue); color: var(--ceca-blue); }
.btn-outline:hover { background: var(--ceca-blue); color: var(--white); }

/* --- Kart --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ===================================================================
   LAYOUT — Header & Profil Drawer
   =================================================================== */
.app-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-header .header-inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand img { height: calc(var(--header-h) - 14px); width: auto; }
.brand .brand-name { font-size: 1.3rem; color: var(--ceca-blue); letter-spacing: -0.5px; }
.brand .brand-name b { color: var(--ceca-sky); }

.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.main-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  color: var(--gray-700); font-weight: 500; font-size: 0.92rem;
  white-space: nowrap; transition: all var(--transition);
}
.main-nav a .material-symbols-rounded { font-size: 20px; }
.main-nav a:hover { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.main-nav a.active { background: var(--ceca-blue); color: var(--white); }

/* Header açılır menü (Kurumsal) */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-drop-toggle {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  color: var(--gray-700); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
  cursor: pointer; transition: all var(--transition);
}
.nav-dropdown .nav-drop-toggle .material-symbols-rounded { font-size: 20px; }
.nav-dropdown .nav-drop-toggle .chev { font-size: 18px; transition: transform var(--transition); }
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown.open .nav-drop-toggle { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.nav-dropdown.open .nav-drop-toggle .chev { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 130;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition);
}
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-submenu::before {
  content: ""; position: absolute; top: -5px; left: 24px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.main-nav .nav-submenu a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: var(--gray-700); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
}
.main-nav .nav-submenu a:hover { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.main-nav .nav-submenu a .material-symbols-rounded { font-size: 19px; color: var(--ceca-blue); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: transparent; color: var(--gray-700); transition: all var(--transition);
}
.icon-btn:hover { background: var(--gray-100); color: var(--ceca-blue); }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--ceca-orange);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--white);
}
.profile-trigger {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--border); border-radius: 40px; background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.profile-trigger:hover { box-shadow: var(--shadow-sm); border-color: var(--ceca-blue); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--gray-200); }
.avatar.sm { width: 34px; height: 34px; }
.avatar.md { width: 48px; height: 48px; }
.avatar.lg { width: 72px; height: 72px; }
.profile-trigger .who { text-align: left; line-height: 1.2; }
.profile-trigger .who strong { font-size: 0.85rem; display: block; }
.profile-trigger .who span { font-size: 0.72rem; color: var(--text-muted); }

/* Drawer (genel) */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 30, 50, 0.4);
  backdrop-filter: blur(2px); opacity: 0; visibility: hidden;
  transition: all var(--transition); z-index: 200;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 18px; right: 18px; bottom: 18px; height: auto;
  width: 360px; max-width: calc(100vw - 36px);
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: -12px 0 44px rgba(0,0,0,0.16);
  transform: translateX(calc(100% + 18px)); transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 201; display: flex; flex-direction: column;
}
.drawer.wide { width: 40vw; min-width: 440px; }
.drawer.xwide { width: 60vw; min-width: 520px; }
#notifDrawer { width: 20vw; min-width: 320px; }
/* Soldan açılan varyant */
.drawer.left {
  right: auto; left: 18px;
  box-shadow: 12px 0 44px rgba(0,0,0,0.16);
  transform: translateX(calc(-100% - 18px));
}
.drawer.open { transform: none; }
/* Mobil: wide/xwide min-width'leri telefondan geniş → çekmece ekrana 8px boşlukla yayılır */
@media (max-width: 600px) {
  .drawer, .drawer.wide, .drawer.xwide {
    top: 8px; right: 8px; bottom: 8px; left: 8px;
    width: auto; min-width: 0; max-width: none; border-radius: 16px;
    transform: translateX(calc(100% + 16px));
  }
  #notifDrawer { width: auto; min-width: 0; } /* ID seçici: transform'u burada verme, .open'ı ezer */
  .drawer.left { left: 8px; right: 8px; transform: translateX(calc(-100% - 16px)); }
  .drawer.open { transform: none; }
  .drawer-header { padding: 14px 16px; }
  .drawer-body { padding: 16px; }
}
.drawer-header {
  padding: 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 11px; }
.drawer-header h3 .material-symbols-rounded { font-size: 20px; color: var(--ceca-blue); background: var(--ceca-blue-light); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Profil drawer içeriği */
.profile-card {
  text-align: center; padding: 24px 20px;
  background: linear-gradient(135deg, var(--ceca-blue), var(--ceca-sky));
  color: #fff; border-radius: var(--radius); margin-bottom: 16px;
}
.profile-card .avatar { border: 3px solid rgba(255,255,255,0.6); margin: 0 auto 12px; }
.profile-card h4 { font-size: 1.1rem; }
.profile-card p { font-size: 0.85rem; opacity: 0.9; }
.drawer-menu { list-style: none; }
.drawer-menu a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 10px; color: var(--gray-700); font-weight: 500;
}
.drawer-menu a:hover { background: var(--gray-100); color: var(--ceca-blue); }
.drawer-menu a.logout { color: #d64545; }
.drawer-menu .material-symbols-rounded { font-size: 22px; }
.drawer-menu li.divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Bildirim drawer */
.notif-head-actions { display: flex; align-items: center; gap: 8px; }
.notif-mark { font-size: 0.78rem; font-weight: 600; color: var(--ceca-blue); cursor: pointer; }
.notif-mark:hover { text-decoration: underline; }
.notif-list { list-style: none; display: flex; flex-direction: column; }
.notif-item { display: flex; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background var(--transition); position: relative; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--ceca-blue-light); }
.notif-item.unread:hover { background: #dcebfa; }
.notif-item .n-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.notif-item .n-ic .material-symbols-rounded { font-size: 21px; }
.n-ic.blue { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.n-ic.green { background: var(--ceca-green-light); color: var(--ceca-green-dark); }
.n-ic.orange { background: var(--ceca-orange-light); color: #cc6a10; }
.n-ic.red { background: #fbeaea; color: #d64545; }
.notif-item .n-body { flex: 1; min-width: 0; }
.notif-item .n-body p { font-size: 0.86rem; line-height: 1.4; }
.notif-item .n-body p b { font-weight: 600; }
.notif-item .n-time { font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.notif-item .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ceca-blue); flex-shrink: 0; align-self: center; }
.notif-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* ===================================================================
   ANA SAYFA — Bento Grid Dashboard
   =================================================================== */
main.page { padding: 18px 0 60px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.5px; }
.page-head p { color: var(--text-muted); font-size: 0.92rem; }

/* Dashboard hero şeridi (greeting + saat kartı, bento ile aynı 12 kolon) */
.dash-hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
  align-items: center; margin-bottom: 16px;
}
.dash-hero .greet { grid-column: span 8; }
.dash-hero .greet h1 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.5px; line-height: 1.2; }
.dash-hero .greet p { color: var(--text-muted); font-size: 0.88rem; }

/* Canlı saat kartı (hava durumu genişliğinde = col-4, ince tasarım) */
.hclock {
  grid-column: span 4;
  display: flex; align-items: center; gap: 14px; color: #fff;
  background: linear-gradient(135deg, var(--ceca-blue), var(--ceca-blue-dark));
  border-radius: 12px; padding: 9px 16px; box-shadow: var(--shadow);
}
.hclock .clock-ic {
  font-size: 20px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.16); display: grid; place-items: center; flex-shrink: 0;
}
.hclock .time { font-size: 1.45rem; font-weight: 700; font-family: var(--font-display); line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: 0.5px; min-width: 118px; text-align: center; }
.hclock .clock-div { width: 1px; align-self: stretch; margin: 2px 4px; background: rgba(255,255,255,0.25); }
.hclock .clock-date { line-height: 1.25; }
.hclock .clock-date strong { font-size: 0.9rem; font-weight: 600; display: block; }
.hclock .clock-date span { font-size: 0.75rem; opacity: 0.85; }
@media (max-width: 900px) {
  .dash-hero .greet, .hclock { grid-column: span 12; }
}

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 18px; align-items: stretch;   /* aynı satırdaki kartlar eşit yükseklik */
}
.bento > * { min-width: 0; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;   /* içerik alta yaslanabilsin, eşit yükseklik */
}
/* Kart üstünde ince aksan çizgisi */
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ceca-blue), var(--ceca-sky));
  border-radius: var(--radius) var(--radius) 0 0; opacity: 0.9;
}
.tile.accent-orange::before { background: linear-gradient(90deg, var(--ceca-orange), #ffb56b); }
.tile.accent-green::before { background: linear-gradient(90deg, var(--ceca-sky), #8ad9f2); }
.tile.no-accent::before { display: none; }
.weather::before, .survey::before { display: none; }
.tile.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
}
/* Kart başlığı: ikon + ince ayraç çizgisi */
.tile-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -2px -18px 16px; padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
}
.tile-head h3 {
  font-family: var(--font-display); font-size: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.tile-head h3 .material-symbols-rounded {
  color: var(--ceca-blue); font-size: 20px;
  background: var(--ceca-blue-light); width: 34px; height: 34px;
  border-radius: 10px; display: grid; place-items: center;
}
.tile-head .more { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.tile-head .more:hover { color: var(--ceca-blue); }

/* Slider */
.slider { border-radius: var(--radius); overflow: hidden; position: relative; height: 320px; }
.slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 24px;
  background: linear-gradient(transparent, rgba(0,20,50,0.85)); color: #fff;
}
.slide .caption .tag {
  display: inline-block; background: var(--ceca-green); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.slide .caption h2 { font-family: var(--font-display); font-size: 1.4rem; }
.slider-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; }
.slider-dots button.active { background: #fff; width: 24px; border-radius: 5px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); cursor: pointer; display: grid; place-items: center; }
.slider-nav.prev { left: 14px; } .slider-nav.next { right: 14px; }

/* Ticker (kayan yazı) */
.ticker {
  display: flex; align-items: center; gap: 0; background: var(--ceca-blue);
  color: #fff; border-radius: var(--radius); overflow: hidden;
}
.ticker .label {
  background: var(--ceca-orange); padding: 12px 18px; font-weight: 700;
  font-size: 0.85rem; display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.ticker .track-wrap { overflow: hidden; flex: 1; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: ticker 30s linear infinite; padding: 12px 0; }
.ticker .track span { padding: 0 32px; font-size: 0.88rem; position: relative; }
.ticker .track span::after { content: "•"; position: absolute; right: -4px; opacity: 0.5; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CMS içerik kartları */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; transition: all var(--transition); cursor: pointer; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card .thumb { height: 130px; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .cat { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 20px; }
.news-card .body { padding: 12px 14px 16px; }
.news-card h4 { font-size: 0.95rem; margin-bottom: 6px; line-height: 1.35; }
.news-card p { font-size: 0.8rem; color: var(--text-muted); }
.news-card .meta { margin-top: 10px; font-size: 0.72rem; color: var(--gray-500); display: flex; gap: 12px; }
.cat.blue { background: var(--ceca-blue); } .cat.green { background: var(--ceca-green); } .cat.orange { background: var(--ceca-orange); }

/* ---- İçerik varyant widgetları (farklı kategoriler, farklı gösterim) ---- */
/* Holdingten Haberler — kompakt liste */
.mini-news-list { display: flex; flex-direction: column; gap: 4px; }
.mini-news-item { display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 8px; border-radius: 10px; transition: background var(--transition); }
.mini-news-item:hover { background: var(--gray-50); }
.mini-news-item img { width: 64px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mini-news-item h4 { font-size: 0.84rem; line-height: 1.3; }
.mini-news-item .m { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; display: flex; gap: 8px; }

/* Başarılarımız — madalyalı vurgu */
.achv-list { display: flex; flex-direction: column; gap: 10px; }
.achv { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: linear-gradient(90deg, var(--ceca-green-light), transparent); border: 1px solid var(--ceca-green-light); }
.achv .medal { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--ceca-green), var(--ceca-green-dark)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.achv h4 { font-size: 0.87rem; line-height: 1.3; }
.achv span { font-size: 0.75rem; color: var(--text-muted); }

/* Ayın Kitabı — öne çıkan içerik */
.book { display: flex; gap: 16px; }
.book .cover { width: 98px; height: 144px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow); flex-shrink: 0; }
.book .b-meta { display: flex; flex-direction: column; }
.book h4 { font-size: 1.02rem; font-family: var(--font-display); line-height: 1.25; }
.book .author { font-size: 0.8rem; color: var(--ceca-blue); font-weight: 600; margin-bottom: 8px; }
.book .desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.book .stars { color: var(--ceca-orange); margin-top: auto; font-size: 0.95rem; letter-spacing: 2px; }

/* Kişi listeleri (doğum günü / yeni katılan) */
.person-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.person-item { display: flex; align-items: center; gap: 12px; }
.person-item .info { line-height: 1.25; }
.person-item .info strong { font-size: 0.88rem; }
.person-item .info span { font-size: 0.76rem; color: var(--text-muted); display: block; }
.person-item .action { margin-left: auto; }
.person-list .extra { display: none; }
.person-list.expanded .extra { display: flex; }
.list-more { margin-top: auto; padding-top: 12px; }
.list-more button {
  width: 100%; border: 1px dashed var(--border); background: var(--gray-50);
  color: var(--ceca-blue); font: inherit; font-weight: 600; font-size: 0.82rem;
  padding: 9px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all var(--transition);
}
.list-more button:hover { background: var(--ceca-blue-light); border-color: var(--ceca-blue); }
.list-more button .material-symbols-rounded { font-size: 18px; transition: transform var(--transition); }
.list-more button.open .material-symbols-rounded { transform: rotate(180deg); }
.pill { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.pill.green { background: var(--ceca-green-light); color: var(--ceca-green-dark); }
.pill.blue { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.pill.orange { background: var(--ceca-orange-light); color: #cc6a10; }
.pill.gray { background: var(--gray-100); color: var(--gray-700); }

/* Hava durumu */
.weather .tile-head, .survey .tile-head { border-bottom-color: rgba(255,255,255,0.25); }
.weather .tile-head h3 .material-symbols-rounded,
.survey .tile-head h3 .material-symbols-rounded { background: rgba(255,255,255,0.2); color: #fff; }
.weather { text-align: center; background: linear-gradient(135deg, #4a90d9, var(--ceca-blue)); color: #fff; }
.weather .temp { font-size: 2.6rem; font-weight: 700; font-family: var(--font-display); }
.weather .material-symbols-rounded { font-size: 46px; }
.weather .loc { font-size: 0.85rem; opacity: 0.9; }
.weather .forecast { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.25); }
.weather .forecast div { font-size: 0.75rem; text-align: center; }
.weather .forecast .material-symbols-rounded { font-size: 24px; display: block; }

/* Mini takvim */
.mini-cal .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-cal .cal-head strong { font-family: var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-grid .dow { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; padding: 4px 0; }
.cal-grid .day { font-size: 0.8rem; padding: 6px 0; border-radius: 8px; cursor: pointer; position: relative; }
.cal-grid .day:hover { background: var(--gray-100); }
.cal-grid .day.muted { color: var(--gray-300); }
.cal-grid .day.today { background: var(--ceca-blue); color: #fff; font-weight: 700; }
.cal-grid .day.has-event::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--ceca-orange); }
.cal-grid .day.today.has-event::after { background: #fff; }
.mini-cal .mc-nav { display: flex; align-items: center; gap: 4px; }
.mini-cal .mc-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; color: var(--gray-700); display: inline-flex; align-items: center; justify-content: center; height: 30px; transition: all var(--transition); }
.mini-cal .mc-btn:not(.mc-today) { width: 30px; }
.mini-cal .mc-btn.mc-today { padding: 0 10px; font: inherit; font-size: 0.76rem; font-weight: 600; }
.mini-cal .mc-btn:hover { border-color: var(--ceca-blue); color: var(--ceca-blue); }
.mini-cal .mc-btn .material-symbols-rounded { font-size: 18px; }
.cal-grid .day.selected { background: var(--ceca-blue-light); color: var(--ceca-blue); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ceca-blue); }
.cal-grid .day.today.selected { background: var(--ceca-blue); color: #fff; box-shadow: none; }
.day-events .de-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.3px; }
.day-events .de-clear { border: none; background: var(--ceca-blue-light); color: var(--ceca-blue); font: inherit; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; cursor: pointer; text-transform: none; }
.day-events .de-empty { font-size: 0.82rem; color: var(--text-muted); }
.day-events .de-extra { display: flex; flex-direction: column; gap: 8px; }
.day-events .de-extra[hidden] { display: none; }
.day-events .de-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: none; background: var(--ceca-blue-light); color: var(--ceca-blue); font: inherit; font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 20px; cursor: pointer; margin-top: 2px; }
.day-events .de-more:hover { background: #d5e6f7; }
.day-events .de-more .material-symbols-rounded { font-size: 16px; transition: transform var(--transition); }
.day-events .de-more.open .material-symbols-rounded { transform: rotate(180deg); }
.day-events { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.event-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; }
.event-line .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.event-line .time { color: var(--text-muted); font-size: 0.74rem; }

/* Onay listeleri */
.approve-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.approve-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.approve-item .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.approve-item .ico.leave { background: var(--ceca-green-light); color: var(--ceca-green-dark); }
.approve-item .ico.advance { background: var(--ceca-orange-light); color: #cc6a10; }
.approve-item .ico.travel { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.approve-item .txt { line-height: 1.3; flex: 1; min-width: 0; }
.approve-item .txt strong, .approve-item .txt span { display: block; }
.approve-item .txt strong { font-size: 0.85rem; }
.approve-item .txt span { font-size: 0.74rem; color: var(--text-muted); }
.approve-item .btns { display: flex; gap: 6px; }
.mini-btn { width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer; display: grid; place-items: center; }
.mini-btn.ok { background: var(--ceca-green); color: #fff; } .mini-btn.no { background: #fbeaea; color: #d64545; }
.tabs-mini { display: flex; gap: 6px; background: var(--gray-100); padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.tabs-mini button { flex: 1; border: none; background: transparent; padding: 7px; border-radius: 7px; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--gray-700); }
.tabs-mini button.active { background: #fff; color: var(--ceca-blue); box-shadow: var(--shadow-sm); }

/* Kısa yollar */
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shortcut { display: block; text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); color: inherit; text-decoration: none; }
.shortcut:hover { border-color: var(--ceca-blue); background: var(--ceca-blue-light); transform: translateY(-2px); }
.shortcut .material-symbols-rounded { font-size: 26px; color: var(--ceca-blue); }
.shortcut span { display: block; font-size: 0.74rem; margin-top: 6px; font-weight: 500; }

/* Anket wizard */
.survey { background: linear-gradient(135deg, var(--ceca-sky), var(--ceca-sky-dark)); color: #fff; }
.survey .tile-head h3 { color: #fff; } .survey .tile-head h3 .material-symbols-rounded { color: #fff; }
.survey .q { font-size: 1.02rem; font-weight: 600; margin-bottom: 14px; font-family: var(--font-display); }
.survey .opts { display: flex; flex-direction: column; gap: 8px; }
.survey .opt { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3); color: #fff; padding: 11px 14px; border-radius: 10px; cursor: pointer; text-align: left; font-size: 0.9rem; font-weight: 500; transition: all var(--transition); }
.survey .opt:hover { background: rgba(255,255,255,0.28); }
.survey .opt.selected { background: #fff; color: var(--ceca-green-dark); border-color: #fff; }
.survey .wiz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.survey .steps { display: flex; gap: 6px; }
.survey .steps i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.survey .steps i.active { background: #fff; width: 22px; border-radius: 4px; }
.survey .btn-next { background: #fff; color: var(--ceca-green-dark); border: none; padding: 9px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; }

/* ---- Mobil alt navigasyon (bottom nav) ---- */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 66px;
    background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 150; padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; border: none; background: transparent; cursor: pointer; font: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--gray-500); font-size: 0.68rem; font-weight: 600; transition: color var(--transition);
  }
  .bottom-nav .material-symbols-rounded { font-size: 25px; }
  .bottom-nav a:active, .bottom-nav button:active { color: var(--ceca-blue); }
  .bottom-nav a.active { color: var(--ceca-blue); }
  .bottom-nav a.active .material-symbols-rounded { font-variation-settings: "FILL" 1; background: var(--ceca-blue-light); border-radius: 12px; padding: 2px 12px; }
}

/* ===================================================================
   ORTAK DIALOG (confirm / prompt) — SweetAlert benzeri
   =================================================================== */
.dialog-overlay { position: fixed; inset: 0; background: rgba(15,30,50,0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 500; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.dialog-overlay.open { opacity: 1; visibility: visible; }
.dialog { width: 410px; max-width: 100%; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px 26px 22px; text-align: center; transform: scale(0.94); transition: transform var(--transition); }
.dialog-overlay.open .dialog { transform: none; }
.dialog .d-icon { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.dialog .d-icon .material-symbols-rounded { font-size: 34px; }
.d-icon.danger { background: #fbeaea; color: #d64545; }
.d-icon.warn { background: var(--ceca-orange-light); color: var(--ceca-orange); }
.d-icon.info { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.d-icon.success { background: var(--ceca-green-light); color: var(--ceca-green-dark); }
.dialog h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.dialog p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; line-height: 1.5; }
.dialog .d-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 0.95rem; outline: none; margin-bottom: 20px; text-align: left; transition: border var(--transition), box-shadow var(--transition); }
.dialog .d-input:focus { border-color: var(--ceca-blue); box-shadow: 0 0 0 3px var(--ceca-blue-light); }
.dialog .d-textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 0.92rem; outline: none; margin-bottom: 8px; text-align: left; resize: vertical; min-height: 84px; transition: border var(--transition), box-shadow var(--transition); }
.dialog .d-textarea:focus { border-color: var(--ceca-blue); box-shadow: 0 0 0 3px var(--ceca-blue-light); }
.dialog .d-input.err, .dialog .d-textarea.err { border-color: #d64545; box-shadow: 0 0 0 3px #fbeaea; }
.dialog .d-err { color: #d64545; font-size: 0.8rem; font-weight: 600; text-align: left; margin: -4px 0 14px; }
.dialog .d-actions { display: flex; gap: 10px; margin-top: 12px; }
.dialog-overlay.reverse .d-actions { flex-direction: row-reverse; }
.dialog .d-actions .btn { flex: 1; justify-content: center; }
.btn-danger { background: #d64545; color: #fff; }
.btn-danger:hover { background: #be3a3a; }

/* ===================================================================
   RESİM KIRPICI (crop)
   =================================================================== */
.crop-overlay { position: fixed; inset: 0; background: rgba(15,30,50,0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 520; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); padding: 20px; }
.crop-overlay.open { opacity: 1; visibility: visible; }
.crop-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; max-width: 100%; }
.crop-box h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; text-align: center; }
.crop-stage { position: relative; overflow: hidden; background: #111; margin: 0 auto; touch-action: none; cursor: grab; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage.round { border-radius: 50%; }
.crop-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 18px 4px; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--ceca-blue); cursor: pointer; }
.crop-zoom .material-symbols-rounded { color: var(--gray-500); font-size: 20px; }
.crop-actions { display: flex; gap: 10px; }
.crop-actions .btn { flex: 1; justify-content: center; }

/* ===================================================================
   SOHBET (yalnızca masaüstü) — Messenger tarzı
   =================================================================== */
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 140; display: flex; align-items: flex-end; gap: 14px; }
@media (max-width: 900px) { .chat-dock { display: none; } }

.chat-contacts { width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 62vh; }
.chat-contacts .cc-head { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: linear-gradient(135deg, var(--ceca-blue), var(--ceca-blue-dark)); color: #fff; }
.chat-contacts .cc-head h4 { font-family: var(--font-display); font-size: 0.98rem; display: flex; align-items: center; gap: 8px; }
.chat-contacts .cc-head .cc-count { font-size: 0.72rem; background: rgba(255,255,255,0.22); padding: 2px 9px; border-radius: 20px; }
.chat-contacts .cc-head .chev { transition: transform var(--transition); }
.chat-contacts.collapsed .cc-head .chev { transform: rotate(180deg); }
.chat-contacts.collapsed .cc-body,
.chat-contacts.collapsed .cc-search { display: none; }
.cc-body { overflow-y: auto; padding: 6px; }
.cc-item { display: flex; gap: 11px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background var(--transition); }
.cc-item:hover { background: var(--gray-50); }
.cc-avatar { position: relative; flex-shrink: 0; }
.cc-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.online-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ceca-green); border: 2px solid #fff; }
.online-dot.away { background: var(--ceca-orange); }
.online-dot.off { background: var(--gray-300); }
.cc-item .cc-info { flex: 1; min-width: 0; }
.cc-item .cc-info strong { font-size: 0.88rem; display: block; }
.cc-item .cc-info span { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cc-item .cc-unread { background: var(--ceca-orange); color: #fff; font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.cc-item.has-unread { background: var(--ceca-blue-light); }
.cc-item.has-unread .cc-info strong { font-weight: 700; }
.cc-item.has-unread .cc-info span { color: var(--gray-900); font-weight: 500; }
.cc-head .cc-total { background: var(--ceca-orange); color: #fff; font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: none; place-items: center; padding: 0 5px; }
.cc-head .cc-total.show { display: grid; }
/* Panel içi arama */
.cc-search { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cc-search .cc-search-box { display: flex; align-items: center; gap: 8px; background: var(--gray-50); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; }
.cc-search input { border: none; outline: none; background: transparent; font: inherit; font-size: 0.85rem; flex: 1; min-width: 0; }
.cc-search .material-symbols-rounded { font-size: 19px; color: var(--gray-500); }
.cc-section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 700; padding: 10px 12px 4px; }
.cc-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 0.83rem; }

.chat-win { width: 310px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: 420px; overflow: hidden; animation: chatpop 0.2s ease; }
@keyframes chatpop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-win .cw-head { padding: 10px 14px; background: linear-gradient(135deg, var(--ceca-blue), var(--ceca-blue-dark)); color: #fff; display: flex; align-items: center; gap: 10px; }
.chat-win .cw-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-win .cw-head .cw-name { flex: 1; line-height: 1.2; }
.chat-win .cw-head .cw-name strong { font-size: 0.9rem; display: block; }
.chat-win .cw-head .cw-name span { font-size: 0.7rem; opacity: 0.85; }
.chat-win .cw-head button { border: none; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.chat-win .cw-head button:hover { background: rgba(255,255,255,0.18); }
.cw-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--gray-50); }
.cw-body .day-sep { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin: 4px 0; }
.msg { max-width: 76%; padding: 8px 12px; border-radius: 14px; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word; }
.msg.them { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--ceca-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cw-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.cw-input input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; outline: none; font: inherit; font-size: 0.88rem; }
.cw-input input:focus { border-color: var(--ceca-blue); }
.cw-input button { border: none; background: var(--ceca-blue); color: #fff; width: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.cw-input button:hover { background: var(--ceca-blue-dark); }

/* ===================================================================
   GLOBAL ARAMA MODALI (command palette)
   =================================================================== */
.search-overlay {
  position: fixed; inset: 0; background: rgba(15,30,50,0.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; justify-content: center; align-items: flex-start; padding: 11vh 20px 20px;
  z-index: 400; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-modal {
  width: 620px; max-width: 100%; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  max-height: 74vh; transform: translateY(-12px) scale(0.98); transition: transform var(--transition);
}
.search-overlay.open .search-modal { transform: none; }
.search-modal .search-results { flex: 1; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-input-row > .material-symbols-rounded { color: var(--ceca-blue); font-size: 24px; }
.search-input-row input { flex: 1; border: none; outline: none; font: inherit; font-size: 1.05rem; background: transparent; }
.search-input-row kbd { font-family: var(--font-sans); font-size: 0.72rem; color: var(--gray-500); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; background: var(--gray-50); }
.search-cats { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.search-cats button { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 6px 14px; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.search-cats button .material-symbols-rounded { font-size: 17px; }
.search-cats button:hover { border-color: var(--ceca-blue); color: var(--ceca-blue); }
.search-cats button.active { background: var(--ceca-blue); color: #fff; border-color: var(--ceca-blue); }
.search-results { overflow-y: auto; padding: 8px; }
.sr-group-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 700; padding: 12px 12px 5px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--text); }
.sr-item:hover, .sr-item.active { background: var(--ceca-blue-light); }
.sr-item .sr-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.sr-item .sr-ic img { width: 100%; height: 100%; object-fit: cover; }
.sr-item .sr-ic .material-symbols-rounded { font-size: 21px; }
.sr-item .sr-txt strong { font-size: 0.9rem; display: block; }
.sr-item .sr-txt span { font-size: 0.77rem; color: var(--text-muted); }
.sr-item .sr-tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--gray-100); color: var(--gray-700); }
.sr-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.sr-empty .material-symbols-rounded { font-size: 40px; opacity: 0.5; }
.sr-ic.blue { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.sr-ic.green { background: var(--ceca-green-light); color: var(--ceca-green-dark); }
.sr-ic.orange { background: var(--ceca-orange-light); color: #cc6a10; }

/* ===================================================================
   SATIŞ PANOSU & GRAFİKLER
   =================================================================== */
.seg { display: inline-flex; background: var(--gray-100); border-radius: 10px; padding: 3px; }
.seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 7px; font: inherit; font-weight: 600; font-size: 0.82rem; color: var(--gray-600); cursor: pointer; transition: all var(--transition); }
.seg button.active { background: #fff; color: var(--ceca-blue); box-shadow: var(--shadow-sm); }

.sales-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--gray-50); }
.kpi .k-lbl { font-size: 0.76rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-lbl .material-symbols-rounded { font-size: 17px; }
.kpi .k-val { font-size: 1.45rem; font-weight: 700; font-family: var(--font-display); margin-top: 6px; line-height: 1; }
.kpi .k-delta { font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; }
.kpi .k-delta .material-symbols-rounded { font-size: 15px; }
.kpi .k-delta.up { color: var(--ceca-green-dark); } .kpi .k-delta.down { color: #d64545; }
@media (max-width: 820px) { .sales-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Ana sayfa satış panosu başlığı: başlık | dönem seçici · Detaylar */
.sales-head { flex-wrap: wrap; gap: 10px 14px; }
.sales-head h3 { margin-right: auto; }
@media (max-width: 600px) {
  /* 1. satır: başlık + Detaylar, 2. satır: dönem seçici tam genişlik */
  .sales-head .seg { order: 3; flex: 1 1 100%; display: flex; }
  .sales-head .seg button { flex: 1; padding: 8px 4px; }
  .sales-kpis { gap: 10px; }
  .kpi { padding: 12px; min-width: 0; }
  .kpi .k-val { font-size: 1.15rem; white-space: nowrap; }
  .kpi .k-delta { font-size: 0.7rem; }
}

.chart { position: relative; }
.chart svg { display: block; width: 100%; }
.chart svg .vbar { fill: var(--bar); transition: opacity 0.15s; cursor: pointer; }
.chart svg .vbar:hover { opacity: 0.82; }
.chart svg .vx { font-size: 11px; fill: var(--gray-500); }
.chart svg .gridline { stroke: var(--gray-200); stroke-width: 1; }
.chart-tip { position: absolute; background: var(--gray-900); color: #fff; font-size: 0.78rem; padding: 6px 10px; border-radius: 8px; pointer-events: none; transform: translate(-50%, -120%); white-space: nowrap; z-index: 5; box-shadow: var(--shadow); }

/* Yatay bar (ürün bazlı) */
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hbar .hb-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 6px; }
.hbar .hb-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hbar .hb-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.hbar .hb-val { color: var(--gray-700); font-variant-numeric: tabular-nums; }
.hbar .hb-track { height: 10px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.hbar .hb-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }

/* Donut (ürün dağılımı) */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.donut-legend .dl { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; }
.donut-legend .dl i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .dl b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
.hamburger { display: none; }
@media (max-width: 1100px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .app-header { background: rgba(255,255,255,0.96); }
  .brand .brand-name { display: none; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; box-shadow: var(--shadow); transform: translateY(calc(-100% - var(--header-h) - 12px)); transition: transform 0.25s; gap: 4px; }
  .main-nav.open { transform: translateY(0); }
  .hamburger { display: none !important; }
  main.page { padding-bottom: 88px; }
  .nav-dropdown { width: 100%; }
  .nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 2px 0 6px 24px; display: none; min-width: 0; }
  .nav-submenu::before { display: none; }
  .nav-dropdown.open .nav-submenu { display: block; }
  .hamburger { display: grid; }
  .profile-trigger .who { display: none; }
  .bento > * { grid-column: span 12 !important; }
  .news-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 16px; }
}


/* ===================================================================
   Ajax altyapısı (ceca.js)
   OpenDrawerPopup / OpenPopup partial'ı #GlobalPreviewDrawer ve #my-modal
   içine basar. Partial kökü genelde <form>; flex düzeni bozulmasın diye
   form da sütun olarak davranır.
   =================================================================== */
.drawer > form, .modal > form, .drawer > div[data-drawer-size] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer.drawer-loading { cursor: progress; }
.drawer.drawer-loading::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.55);
}
.btn.is-busy, .icon-btn.is-busy { opacity: 0.7; pointer-events: none; }
.btn.is-busy .material-symbols-rounded, .icon-btn.is-busy .material-symbols-rounded { animation: cecaSpin 0.9s linear infinite; }
@keyframes cecaSpin { to { transform: rotate(360deg); } }
/* Layout partial'ları (main.js artık menüyü enjekte etmiyor) */
.drawer-menu a.active { background: var(--ceca-blue-light); color: var(--ceca-blue); }
.drawer-menu .drawer-menu-label { padding: 4px 14px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 700; }
/* hidden özniteliği display kurallarını ezsin (sohbet/arama süzme) */
[hidden] { display: none !important; }

/* Mobil: iOS Safari 16px'ten küçük yazılı alana odaklanınca sayfayı yakınlaştırır.
   Dokunmatik cihazlarda tüm yazı alanları 16px (portal, admin, giriş — style.css hepsinde yüklü).
   Masaüstü (fare) görünümü etkilenmez; parmakla yakınlaştırma açık kalır. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  select,
  textarea,
  [contenteditable="true"] {
    font-size: 16px !important;
  }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }