/* Tema: zaman çizelgesi */
:root {
  --zemin: #fff;
  --yan: #faf9f8;
  --ustu: #f1edeb;       /* üzerine gelince */
  --cizgi: #e6dfdc;
  --kenar: #cfc6c2;
  --yazi: #211d1c;
  --soluk: #746b68;
  --ana: #b3122a;
  --bos: #2f6b52;
  --bos-zemin: #f1edeb;
  --bekler: #8c0c20;
  --bekler-zemin: #fbdfe3;
  --kotu: #b3122a;
  --r: 6px;
  color-scheme: light;
  --yazitipi: 'Plus Jakarta Sans';
  --ana-koyu: #8f0d20;
  --ana-acik: #fdf3f4;
  --kotu-acik: #fdf0f1;
  --kotu-kenar: #e5bfc4;
  --odak: #d98792;
  --ana-golge: #b3122a26;
}

/* Solda kırmızı panel, sağda üst menü ve içerik */
body[data-canli] { height: 100dvh; display: grid; grid-template: auto minmax(0, 1fr) / 264px minmax(0, 1fr); overflow: hidden; }
.yan-panel { grid-row: 1 / 3; background: var(--ana); color: #fff; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; scrollbar-width: none; }
.yan-panel :focus-visible { outline-color: #fff; }
.marka { font-weight: 700; font-size: 1.07rem; text-decoration: none; }
.cikis button:hover { background: #ffffff1f; }
.gun-basi { margin-top: 18px; }
.gun-basi h1 { font-size: 2.9rem; line-height: 1; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.gun-basi h1 span { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: 0; margin-top: 8px; }
.oklar { display: none; }
.kapi b { display: block; font-weight: 650; }
.kapi span { font-size: 13px; color: #ffdde1; }
.odaniz { background: #fff; color: var(--yazi); border-radius: 10px; padding: 13px 15px; }
.odaniz p { font-size: 13px; color: var(--soluk); }
.odaniz h2 { font-size: 1.35rem; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; }
.odaniz form { margin-top: 10px !important; }
.sayilar { display: grid; }
.sayilar > * { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 10px; margin: 0 -10px; background: none; color: #fff; border: 0; border-top: 1px solid #ffffff40; border-radius: 0; font-weight: 500; text-decoration: none; }
.sayilar b { font-size: 1.4rem; font-weight: 750; }
.sayilar > *:hover { background: #ffffff1a; }
[data-suzgec=bos] [data-suz=bos], [data-suzgec=dolu] [data-suz=dolu], [data-suzgec=bekler] [data-suz=bekler] { background: #fff; color: var(--ana); border-radius: 8px; }
.panel-islem .tam { background: #fff; color: var(--ana); border-color: #fff; }
.panel-islem .tam:hover { background: #ffe9ec; }
.panel-islem .yarim { background: none; border-color: #ffffff80; color: #fff; font-size: 13px; }
.panel-islem .yarim:hover { background: #ffffff1f; }
/* Sayılardan sonra gelen her şey (günler, düğmeler, çıkış) tarih sayısı ne olursa olsun altta durur */
.yan-panel > .sayilar { margin-bottom: auto; }
.yan-panel > .sayilar ~ .cikis { margin-top: 0; }
.gunler { display: grid; gap: 2px; }
.gunler a { padding: 6px 12px; margin: 0 -12px; border-radius: 8px; text-decoration: none; }
.gunler a:hover { background: #ffffff1a; }
.gunler [aria-current] { background: #fff; color: var(--ana); font-weight: 700; }
.ray { display: flex; align-items: center; gap: 24px; min-height: 52px; padding: 0 34px; background: var(--yan); }
.ray a { display: flex; align-items: center; gap: 7px; height: 52px; color: var(--soluk); text-decoration: none; font-weight: 500; }
.ray a:hover { color: var(--yazi); }
.ray .ikon { display: none; }
.ray [aria-current] { color: var(--ana); font-weight: 700; }
.ray .ayri { margin-left: auto; }
.sayi { background: var(--ana); color: #fff; border-radius: 9px; min-width: 18px; padding: 0 5px; text-align: center; font-size: 11px; line-height: 18px; font-weight: 700; }
/* Zaman çizelgesi: odalar alt alta, saatler soldan sağa */
.s-odalar main { padding: 0 34px 16px; }
.cizelge { min-height: 100%; display: flex; flex-direction: column; --ad: 190px; --kat: 108px; }
.eksen { position: sticky; top: 0; z-index: 3; background: var(--yan); padding-left: calc(var(--kat) + var(--ad)); flex: none; }
.eksen > div { position: relative; height: 26px; }
.eksen span { position: absolute; top: 2px; font-size: 13px; color: var(--soluk); }
.kat { display: grid; grid-template-columns: var(--kat) minmax(0, 1fr); flex: var(--n) 0 auto; max-height: calc(var(--n) * 60px + 11px); padding: 5px 0; border-top: 1px solid #d9d0cc; }
.kat h2 { color: var(--ana); font-weight: 700; font-size: 1rem; line-height: 1.3; padding: 10px 12px 0 0; }
.kat-odalar { display: flex; flex-direction: column; }
.oda { flex: 1 0 36px; display: grid; grid-template-columns: var(--ad) minmax(0, 1fr); align-items: center; }
.oda h3 { display: flex; justify-content: space-between; gap: 10px; padding-right: 22px; font-size: 1rem; font-weight: 600; }
.oda h3 span { font-weight: 400; color: var(--soluk); }
.oda h3 i { display: none; font-style: normal; }
.serit { position: relative; height: 32px; background: linear-gradient(90deg, #ddd5d1 1px, transparent 1px) 0 0 / calc(100% / var(--saat)) 100%; }
.disi { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #efeae8 0 5px, transparent 5px 10px); }
.dilim { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; min-height: 0; border: 0; border-right: 3px solid transparent; background-clip: padding-box; border-radius: 6px; padding: 0; container-type: inline-size; font-weight: 400; }
.blok { flex: 1; min-width: 0; height: 100%; min-height: 0; border: 0; background: none; color: inherit; border-radius: 5px; padding: 0 12px; gap: 12px; justify-content: flex-start; }
.blok b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.blok time, .blok small { font-size: 12.5px; font-weight: 400; color: inherit; opacity: .78; }
.blok:hover { background: #ffffff22; }
.blok[draggable] { cursor: grab; }
.dilim.approved { background-color: #3a3331; color: #fff; }
.dilim.pending { background-color: #fbdfe3; color: #850b1e; }
.dilim.pending .blok:hover { background: #f7cbd2; }
.dilim.pending form { margin-right: 4px; flex: none; }
.dilim.pending .kucuk { min-height: 24px; }
.dilim.bizim.approved { background-color: var(--ana); }
.dilim.engel { background-color: #e9e3e0; color: var(--soluk); }
.dilim.engel span { padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bos-dilim { background: none; color: #857b77; justify-content: flex-start; }
.bos-dilim span { padding-left: 12px; font-size: 13px; }
.bos-dilim i { font-style: normal; font-size: 13px; font-weight: 650; color: var(--ana); padding-left: 12px; display: none; }
button.bos-dilim:hover, button.bos-dilim:focus-visible { background-color: #fdeaec; }
button.bos-dilim:hover span, button.bos-dilim:focus-visible span { display: none; }
button.bos-dilim:hover i, button.bos-dilim:focus-visible i { display: inline; }
@container (max-width: 360px) { .pending-ic small, .pending-ic time { display: none; } }
@container (max-width: 250px) { .blok small { display: none; } }
@container (max-width: 190px) { .blok time, .dilim.pending form { display: none !important; } .blok { padding: 0 8px; } }
@container (max-width: 64px) { .bos-dilim span { font-size: 0; } }
.oda.hedef .serit { outline: 2px solid var(--ana); outline-offset: 2px; border-radius: 4px; }
[data-suzgec=bos] .oda:not(.t-bos), [data-suzgec=dolu] .oda:not(.t-dolu), [data-suzgec=bekler] .oda:not(.t-bekler) { opacity: .16; }
.paylas { display: flex; justify-content: flex-end; border-top: 1px solid #d9d0cc; padding-top: 6px; }
.yazi { background: none; border: 0; color: var(--ana); padding: 0 10px; min-height: 30px; font-size: 13px; }
.yazi:hover { background: #fdeaec; }
@media (min-width: 900px) and (max-height: 760px) {
  .yan-panel { gap: 12px; padding-block: 18px; }
  .gun-basi { margin-top: 6px; }
  .sayilar > * { min-height: 36px; }
  .gunler a { padding-block: 4px; }
  .oda { flex-basis: 34px; }
  .serit { height: 29px; }
  .kat { padding: 3px 0; }
}
@media (min-width: 900px) and (max-width: 1150px) { body[data-canli] { grid-template-columns: 220px minmax(0, 1fr); } .cizelge { --ad: 160px; --kat: 84px; } .gun-basi h1 { font-size: 2.3rem; } }

[data-canli]:not(.s-odalar) main { padding-inline: 34px; }
@media (max-width: 899px) {
  body[data-canli] { grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr); }
  body:not(.s-odalar) .yan-panel > :not(.panel-ust), .gunler { display: none; }
  .yan-panel { grid-row: 1; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; overflow: visible; }
  .gun-basi { display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .gun-basi h1 { font-size: 2rem; }
  .gun-basi h1 span { display: inline; font-size: 1.07rem; margin-left: 9px; }
  .oklar { display: flex; margin-right: -8px; }
  .ok { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; }
  span.ok { opacity: .35; }
  .kapi b, .kapi span { display: inline; font-size: 13.5px; }
  .kapi b::after { content: ', '; }
  .kapi b:only-child::after { content: none; }
  .odaniz { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 9px 13px; }
  .odaniz form { grid-area: 1 / 2 / 4 / 3; margin: 0 !important; }
  .sayilar { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .sayilar > * { margin: 0; border: 1px solid #ffffff4d; border-radius: 8px; min-height: 40px; padding: 0 9px; font-size: 12.5px; white-space: normal; text-align: left; line-height: 1.15; gap: 4px; }
  .sayilar b { font-size: 1.2rem; }
  main { grid-row: 2; }
  .ray { grid-row: 3; gap: 0; min-height: 0; padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--cizgi); }
  .ray a { position: relative; flex: 1; min-width: 0; height: 48px; flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; }
  .ray .ikon { display: block; width: 20px; height: 20px; }
  .ray .ayri { margin: 0; }
  .sayi { position: absolute; top: 2px; left: 55%; }
  [data-canli] main { padding: 14px 16px; }
  [data-canli].s-odalar main { padding: 0 18px 18px; }
  [data-canli] .bant { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .cizelge { display: block; --ad: 0px; --kat: 0px; }
  .eksen { border-bottom: 1px solid var(--cizgi); }
  .eksen > div { height: 30px; }
  .eksen span { top: 6px; font-size: 12px; }
  .uzun .eksen span:nth-child(3n+2), .uzun .eksen span:nth-child(3n) { display: none; }
  .kat { display: block; max-height: none; border: 0; padding: 12px 0 0; }
  .kat h2 { padding: 0 0 2px; }
  .oda { display: block; padding: 5px 0 7px; }
  .oda h3 { padding: 0 0 4px; }
  .oda h3 span { font-size: 13px; }
  .oda h3 i { display: inline; }
  .serit { height: 38px; background-color: #f1edeb; border-radius: 6px; }
  .bos-dilim i { display: none !important; }
  button.bos-dilim span { display: inline !important; color: #6b615d; }
  .dilim.pending .kucuk { min-height: 30px; }
  [data-suzgec=bos] .oda:not(.t-bos), [data-suzgec=dolu] .oda:not(.t-dolu), [data-suzgec=bekler] .oda:not(.t-bekler),
  [data-suzgec=bos] .kat:not(:has(.t-bos)), [data-suzgec=dolu] .kat:not(:has(.t-dolu)), [data-suzgec=bekler] .kat:not(:has(.t-bekler)) { display: none; }
  [data-canli]:not(.s-odalar) main { padding-inline: 16px; }
  .panel-ust { margin-bottom: -6px; }
}
