/* ALG Psikoteknik v0.4 — modular and image-free apart from ALG brand logo */
.psy-app{--pc:#174da7;--pr:#edf3fb;--pl:#dae5f3;min-width:0;color:#15243b}
.psy-page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.psy-page-head h1{font-size:28px;letter-spacing:-.6px;margin:4px 0 6px}.psy-page-head p{margin:0;color:#73839b;font-size:13px}.psy-kicker{font-size:10px;font-weight:800;color:#2f67b8;letter-spacing:1px}.psy-logo{width:165px;max-height:78px;object-fit:contain}
.psy-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:15px}.psy-metric{border:1px solid #e2e9f4;border-radius:12px;min-height:91px;text-align:left;padding:18px;background:white;cursor:pointer;display:grid;gap:4px;transition:border-color .12s}.psy-metric:hover{border-color:#8cb8e9}.psy-metric span{font-size:12px;color:#5e728e}.psy-metric strong{font-size:25px;color:#102b51}
.psy-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px;align-items:start}.psy-table-card,.psy-detail{background:#fff;border:1px solid #e0e8f2;border-radius:13px;box-shadow:0 5px 25px #1230550a;min-width:0}.psy-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 15px;border-bottom:1px solid #e7edf5}.psy-table-head h2,.psy-detail h2{margin:0;font-size:16px}.psy-date-actions{display:flex;align-items:center;gap:7px}.psy-date-actions b{font-size:12px;min-width:175px;text-align:center}.psy-date-actions button,.psy-detail-head button{font:inherit;font-size:12px;padding:7px 11px;border:1px solid #d6e2f0;border-radius:8px;background:#fff;color:#20559a;cursor:pointer}.psy-date-actions button:hover,.psy-detail-head button:hover{background:#ebf4ff}
.psy-calendar-scroll{overflow:auto;width:100%}.psy-calendar{border-collapse:collapse;width:100%;min-width:825px;table-layout:fixed}.psy-calendar th,.psy-calendar td{border:1px solid #dfe7f2}.psy-calendar thead th{font-size:10px;color:#204e84;background:#eaf3ff;text-align:center;padding:12px 2px;white-space:nowrap;font-weight:800}.psy-calendar th:first-child{width:106px}.psy-calendar th:nth-child(2){width:82px}.psy-calendar tbody .psy-day{background:#f5f8fd;text-align:center;font-size:11px;line-height:1.8;font-weight:800;color:#263e5f}.psy-calendar tbody .psy-device{background:#f9fbfe;text-align:center;font-size:11px;font-weight:800;color:#334966}.psy-calendar tbody tr.psy-saturday td{background:#fffdf2}.psy-calendar tbody tr.psy-saturday .psy-device,.psy-calendar tbody tr.psy-saturday .psy-day{background:#fff4d0}.psy-calendar tbody tr{height:69px}.psy-calendar td.psy-slot-cell{height:69px;padding:4px;background:#fff;vertical-align:top}.psy-calendar tbody tr.psy-saturday td.psy-slot-cell{background:#fffdf7}.psy-cell{font-family:inherit;width:100%;height:58px;border:1px dashed #e3eaf4;border-radius:7px;padding:5px;cursor:pointer;text-align:left;background:#fbfcff;color:#8ca0b9;font-size:10px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;min-width:0}.psy-cell:hover{border-color:#4b89da;background:#ecf5ff}.psy-cell strong{font-size:10.5px;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.psy-cell small{font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.psy-cell.pending{background:#fff1ca;border-color:#eac974;color:#805a12}.psy-cell.confirmed{background:#e3f0ff;border-color:#9fc9f9;color:#1b599f}.psy-cell.arrived{background:#dcf9e9;border-color:#9bdfb6;color:#1b7c49}.psy-cell.missed{background:#ffe1e1;border-color:#f2b0b0;color:#a43b3b}.psy-cell.blocked{background:#e0e6ef;border-color:#a8b5c8;color:#475569;text-align:center;align-items:center;font-weight:800}.psy-cell:focus-visible{outline:3px solid #427fd5;outline-offset:1px}.psy-cell.psy-filter-muted{opacity:.33}
.psy-legend{display:flex;flex-wrap:wrap;gap:11px;padding:13px 15px;border-top:1px solid #e8eef5}.psy-legend span{font-size:10px;color:#50627b;display:inline-flex;align-items:center;gap:5px}.psy-dot{display:inline-block;width:10px;height:10px;border-radius:50%}.psy-dot.pending{background:#eab954}.psy-dot.confirmed{background:#70adef}.psy-dot.arrived{background:#4cc78a}.psy-dot.missed{background:#ef6a6a}.psy-dot.blocked{background:#69778d}.psy-bottom-actions{padding:12px 15px;border-top:1px solid #edf1f7;display:flex;align-items:end;gap:10px;flex-wrap:wrap}.psy-bottom-actions label{font-size:11px;font-weight:650;display:grid;gap:5px}.psy-bottom-actions input{border:1px solid #dce5ef;padding:7px;border-radius:7px}.psy-hint{font-size:10.5px;color:#6e7d94;flex:1}
.psy-detail-head{padding:15px 13px;border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between}.psy-detail-empty{padding:32px 19px;color:#7f91a6;font-size:12px;text-align:center;line-height:1.7}.psy-detail-body{padding:14px}.psy-detail-name{font-size:17px;font-weight:800;margin:0 0 4px}.psy-detail-phone{margin:0 0 14px;color:#526989;font-size:13px}.psy-detail-line{display:flex;justify-content:space-between;gap:9px;border-bottom:1px solid #eef2f6;padding:12px 0;font-size:12px}.psy-detail-line span{color:#6b7e96}.psy-detail-line b{text-align:right}.psy-detail-actions{display:grid;gap:8px;margin-top:15px}.psy-detail-actions button{font:inherit;background:#1766c8;color:white;border:0;border-radius:8px;padding:11px;font-size:12px;font-weight:700;cursor:pointer}.psy-detail-actions button:hover{background:#134d9a}.psy-detail-notes{white-space:pre-wrap;background:#f5f8fc;border-radius:8px;padding:10px;font-size:11px;color:#4a607f;margin-top:15px;overflow-wrap:anywhere}.psy-pill{padding:4px 8px;border-radius:12px;font-size:10px;font-weight:750}.psy-pill.pending{background:#fff0c4;color:#906714}.psy-pill.confirmed{background:#dfedff;color:#20579f}.psy-pill.arrived{background:#dbf7e7;color:#196a41}.psy-pill.missed{background:#ffe3e3;color:#a33838}
.psy-modal-wrap[hidden],.psy-toast[hidden]{display:none!important}.psy-modal-wrap{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}.psy-modal-backdrop{position:absolute;inset:0;background:rgba(5,22,46,.64)}.psy-modal{position:relative;width:min(100%,470px);max-height:94vh;overflow-y:auto;border-radius:16px;background:#fff;box-shadow:0 20px 70px #040d1d80;padding:21px}.psy-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.psy-modal-head h2{margin:0;font-size:20px}.psy-modal-head button{background:transparent;border:0;font-size:25px;cursor:pointer;color:#60748f}.psy-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.psy-form-grid label{font-size:11px;font-weight:750;color:#405673;display:grid;gap:5px}.psy-form-grid input,.psy-form-grid select,.psy-form-grid textarea{background:#fff;border:1px solid #d5e0ee;border-radius:8px;width:100%;min-width:0;padding:10px;font:inherit;font-size:12px;color:#203656}.psy-form-grid textarea{resize:vertical}.psy-span{grid-column:1/-1}.psy-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;flex-wrap:wrap}.psy-modal-actions button,.psy-block-link{font:inherit;cursor:pointer;font-size:12px;border-radius:8px;padding:10px 13px;border:1px solid #d6e2ee;background:#f6f9fd;color:#275483;font-weight:750}.psy-modal-actions .psy-primary{background:#1766c8;color:white;border-color:#1766c8}.psy-modal-actions .psy-danger{color:#ad3540;background:#fff1f1;border-color:#ffc9cc;margin-right:auto}.psy-block-link{margin-top:10px;width:100%}.psy-modal-actions button:disabled{opacity:.55;cursor:progress}.psy-toast{position:fixed;bottom:22px;right:23px;z-index:120;border-radius:10px;box-shadow:0 15px 45px #091a3540;background:#194d86;color:white;padding:13px 18px;font-size:13px;max-width:380px}.psy-toast.error{background:#992d3b}.psy-setup{text-align:center;padding:50px 20px}.psy-setup-logo{height:85px;width:120px;object-fit:contain}.psy-setup h1{margin:12px 0 7px}
@media(max-width:1500px){.psy-workspace{grid-template-columns:minmax(0,1fr) 270px}.psy-page-head h1{font-size:25px}}@media(max-width:1230px){.psy-workspace{grid-template-columns:1fr}.psy-detail{width:100%}.psy-detail-body{display:grid;grid-template-columns:repeat(2,1fr);gap:5px 18px}.psy-detail-actions{grid-column:1/-1}}@media(max-width:760px){.psy-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.psy-page-head h1{font-size:22px}.psy-logo{width:100px}.psy-table-head{flex-direction:column;align-items:flex-start}.psy-date-actions b{min-width:120px}}

.psy-app [hidden]{display:none!important}


/* v0.4.1 — Yatay kaydırmasız, yedi sütunlu geniş ALG takvimi.
   Yalnızca randevu modülünü etkiler. SRC ekranları değiştirilmez. */
.psy-app .psy-workspace {
  grid-template-columns: minmax(0,1fr) 205px;
  align-items: stretch;
  gap: 9px;
}
.psy-app .psy-calendar-scroll { overflow-x: hidden; overflow-y: visible; }
.psy-app .psy-calendar {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.psy-app .psy-calendar th:first-child { width: 70px; }
.psy-app .psy-calendar th:nth-child(2) { width: 76px; }
.psy-app .psy-calendar thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: clamp(8px, .76vw, 11px);
  padding: 12px 2px;
}
.psy-app .psy-calendar tbody tr {height: 102px;}
.psy-app .psy-calendar tbody .psy-day,
.psy-app .psy-calendar tbody .psy-device {font-size: 10px;line-height: 1.45;overflow-wrap:anywhere;}
.psy-app .psy-calendar td.psy-slot-cell {height: 100px;padding: 4px 3px;}
.psy-app .psy-cell {
  box-sizing: border-box;
  width: 100%;
  min-height: 90px;
  height: 90px;
  padding: 7px 5px;
  gap: 6px;
  text-align: left;
  justify-content: center;
  overflow: hidden;
  line-height: 1.25;
}
.psy-app .psy-cell strong {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow: visible;
  font-size: clamp(9px, .84vw, 12px);
  line-height: 1.25;
}
.psy-app .psy-cell small {
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(8.5px, .76vw, 10.5px);
  line-height: 1.25;
}
.psy-app .psy-detail {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.psy-app .psy-detail-head {padding: 13px 10px;gap:6px;flex-wrap:wrap;}
.psy-app .psy-detail-head h2 {font-size:14px;}
.psy-app .psy-detail-body {padding: 12px 10px;}
.psy-app .psy-detail-name {font-size: 15px;overflow-wrap:anywhere;}
.psy-app .psy-detail-phone {font-size: 12px;}
.psy-app .psy-detail-line {
  display:block;
  padding: 10px 0;
  font-size:11px;
}
.psy-app .psy-detail-line span,
.psy-app .psy-detail-line b {display:block;text-align:left;overflow-wrap:anywhere;}
.psy-app .psy-detail-line span {margin-bottom:3px;}
.psy-app .psy-detail-actions button {padding: 10px 6px;}
.psy-app .psy-table-head {padding: 13px 11px;flex-wrap:wrap;}
.psy-app .psy-table-head h2 {font-size:15px;}
.psy-app .psy-date-actions {flex-wrap:wrap;}
.psy-app .psy-date-actions b {min-width:130px;font-size:11px;}
/* Daha dar masaüstü ekranlarda yedi sütunun tamamı önce gösterilir;
   ayrıntı paneli takvimin altına taşınır. */
@media (max-width: 1120px) {
  .psy-app .psy-workspace {grid-template-columns: minmax(0,1fr);}
  .psy-app .psy-detail {min-height:0;}
  .psy-app .psy-detail-body {display:block;}
}
@media (max-width: 760px) {
  .psy-app .psy-calendar th:first-child {width:54px;}
  .psy-app .psy-calendar th:nth-child(2) {width:58px;}
  .psy-app .psy-calendar thead th {font-size:8px;letter-spacing:-.25px;}
  .psy-app .psy-calendar td.psy-slot-cell {padding:2px;}
  .psy-app .psy-cell {padding:3px;min-height:90px;}
  .psy-app .psy-cell strong {font-size:9px;}
  .psy-app .psy-cell small {font-size:8px;}
}
@media (max-width: 580px) {
  .psy-app .psy-calendar thead th {font-size:7px;}
  .psy-app .psy-calendar th:first-child {width:45px;}
  .psy-app .psy-calendar th:nth-child(2) {width:48px;}
  .psy-app .psy-cell {padding:2px;}
  .psy-app .psy-cell strong {font-size:8px;}
  .psy-app .psy-cell small {font-size:7px;}
}

/* v0.5.2 — Daha büyük randevu hücreleri ve haftanın gününe göre dönüşümlü
   krem/beyaz zemin. SRC modüllerini etkilemez. */
.psy-app .psy-workspace {
  grid-template-columns: minmax(0, 1fr) 182px;
  gap: 8px;
}
.psy-app .psy-table-card { min-width: 0; }
.psy-app .psy-calendar-scroll { width: 100%; overflow-x: clip; }
.psy-app .psy-calendar { width: 100%; min-width: 0; table-layout: fixed; }
.psy-app .psy-calendar th:first-child { width: 65px; }
.psy-app .psy-calendar th:nth-child(2) { width: 74px; }
.psy-app .psy-calendar thead th {
  font-size: clamp(8.5px, .78vw, 11.5px);
  padding: 12px 1px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.psy-app .psy-calendar tbody tr { height: 126px; }
.psy-app .psy-calendar td.psy-slot-cell {
  height: 124px;
  padding: 5px 4px;
  vertical-align: middle;
}
.psy-app .psy-cell {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 113px;
  min-height: 113px;
  border-radius: 8px;
  padding: 10px 6px;
  gap: 7px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.psy-app .psy-cell strong {
  font-size: clamp(10px, .88vw, 12px);
  font-weight: 800;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: normal;
}
.psy-app .psy-cell small {
  font-size: clamp(9px, .78vw, 11px);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Pazartesi/Çarşamba/Cuma krem; Salı/Perşembe/Cumartesi/Pazar beyaz. */
.psy-app #psy-body tr.psy-day-cream > td { background: #fff8e8 !important; }
.psy-app #psy-body tr.psy-day-white > td { background: #ffffff !important; }
.psy-app #psy-body tr.psy-day-cream .psy-device,
.psy-app #psy-body tr.psy-day-cream .psy-day { background: #fff0cf !important; }
.psy-app #psy-body tr.psy-day-white .psy-device,
.psy-app #psy-body tr.psy-day-white .psy-day { background: #f5f8fd !important; }
.psy-app #psy-body tr.psy-day-cream .psy-cell:not(.pending):not(.confirmed):not(.arrived):not(.missed):not(.blocked) {
  background: #fffaf0;
  border-color: #e9d9bc;
}
.psy-app #psy-body tr.psy-day-white .psy-cell:not(.pending):not(.confirmed):not(.arrived):not(.missed):not(.blocked) {
  background: #fbfdff;
  border-color: #dfe8f4;
}
/* İki cihazlı günlerin başlangıcı belirgin olsun. */
.psy-app #psy-body tr.psy-day-first > td { border-top: 3px solid #cdd7e6; }
.psy-app #psy-body tr.psy-day-cream.psy-day-first > td { border-top-color: #e3cda3; }
.psy-app .psy-detail { min-width: 0; }
.psy-app .psy-detail-head { padding: 13px 9px; }
.psy-app .psy-detail-body { padding: 12px 9px; }
.psy-app .psy-detail-head button { padding: 7px 8px; }
@media (max-width: 1120px) {
  .psy-app .psy-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .psy-app .psy-calendar th:first-child { width: 51px; }
  .psy-app .psy-calendar th:nth-child(2) { width: 58px; }
  .psy-app .psy-calendar td.psy-slot-cell { padding: 2px; }
  .psy-app .psy-cell { height: 106px; min-height: 106px; padding: 5px 2px; gap: 5px; }
  .psy-app .psy-calendar tbody tr { height: 116px; }
  .psy-app .psy-calendar td.psy-slot-cell { height: 114px; }
  .psy-app .psy-cell strong { font-size: 9px; }
  .psy-app .psy-cell small { font-size: 8px; }
}

/* v0.9.4 — ALG compact header, large full-width appointment calendar, group labels. */
.psy-app .psy-top-compact{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e0e8f2;border-radius:11px;padding:8px 12px;margin-bottom:9px;min-width:0}
.psy-app .psy-heading{min-width:185px;flex:0 0 auto}
.psy-app .psy-heading h1{font-size:20px;margin:0 0 2px;line-height:1.15;color:#10294b}
.psy-app .psy-heading span{font-size:11px;color:#6b7f98}
.psy-app .psy-logo{width:58px;height:52px;max-height:52px;object-fit:contain;flex:0 0 auto}
.psy-app .psy-metrics{margin:0 0 0 auto;display:flex;gap:6px;min-width:0;flex:1;justify-content:flex-end}
.psy-app .psy-metric{display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 9px;min-width:0;min-height:39px;line-height:1.2;border-radius:7px;background:#f8fbff}
.psy-app .psy-metric span{font-size:11px;white-space:normal;color:#496384}
.psy-app .psy-metric strong{font-size:17px;line-height:1.1}
.psy-app .psy-metric[aria-pressed=true]{background:#e3f0ff;border-color:#3876ca}
.psy-app .psy-workspace{display:block!important;min-width:0}
.psy-app .psy-table-card{width:100%}
.psy-app .psy-table-head{padding:9px 11px;gap:9px;flex-wrap:wrap}
.psy-app .psy-date-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.psy-app .psy-date-actions h2{margin:0 9px 0 0;font-size:16px;white-space:nowrap}
.psy-app .psy-date-actions b{font-size:12px;min-width:155px}
.psy-app .psy-date-actions button{padding:7px 9px;font-size:12px}
.psy-app .psy-main-actions{display:flex;gap:7px;flex-wrap:wrap}
.psy-app .psy-main-actions button{font:700 12px/1.25 inherit;cursor:pointer;border:1px solid #c7d7ee;border-radius:7px;padding:8px 11px}
.psy-app .psy-main-actions .psy-action-primary{background:#1c4b94;color:#fff;border-color:#1c4b94}
.psy-app .psy-main-actions .psy-action-wait{background:#edf4ff;color:#144784}
.psy-app .psy-action-wait b{display:inline-block;background:#d0e4ff;padding:2px 6px;border-radius:9px;margin-left:4px}
.psy-app .psy-calendar-scroll{overflow-x:auto;overflow-y:visible}
.psy-app .psy-calendar{width:100%;min-width:1020px;table-layout:fixed}
.psy-app .psy-calendar th:first-child{width:77px}
.psy-app .psy-calendar th:nth-child(2){width:76px}
.psy-app .psy-calendar thead th{font-size:11px;padding:9px 2px;letter-spacing:0}
.psy-app .psy-calendar tbody .psy-day,.psy-app .psy-calendar tbody .psy-device{font-size:11.5px;line-height:1.45}
.psy-app .psy-calendar tbody tr{height:155px}
.psy-app .psy-calendar td.psy-slot-cell{height:155px;padding:4px}
.psy-app .psy-cell{height:145px;min-height:145px;padding:7px 6px;gap:6px;justify-content:center;overflow:hidden;line-height:1.25}
.psy-app .psy-cell .psy-add-sign{font-size:19px;align-self:center;color:#5376ac}
.psy-app .psy-cell strong,.psy-app .psy-cell .psy-client-name{font-size:13px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;white-space:normal}
.psy-app .psy-cell small,.psy-app .psy-cell .psy-client-phone{font-size:12px;line-height:1.2;overflow-wrap:anywhere;white-space:normal}
.psy-app .psy-cell-flags{display:flex;gap:3px;flex-wrap:wrap;align-items:center}
.psy-app .psy-cell-flags em{font-style:normal;font-size:10.5px;font-weight:750;border-radius:4px;padding:2px 4px;border:1px solid #b6cae1;background:#fff;color:#23466e;white-space:nowrap}
.psy-app .psy-cell-flags .psy-payment-paid{background:#e7f7eb;color:#176135;border-color:#8dd4a7}
.psy-app .psy-cell-flags .psy-payment-unpaid{background:#fff0dd;color:#945512;border-color:#eecb91}
.psy-app .psy-group-tag{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;font-size:10.5px;font-weight:900;letter-spacing:.1px;border-radius:5px;border:1px solid currentColor;padding:3px 6px;overflow-wrap:anywhere;white-space:normal;line-height:1.15}
.psy-app .psy-group-0{background:#e0efff;color:#1156a9}.psy-app .psy-group-1{background:#f8e8ff;color:#842e9f}.psy-app .psy-group-2{background:#e2f7e4;color:#156c36}.psy-app .psy-group-3{background:#fff0d3;color:#9a5f0e}.psy-app .psy-group-4{background:#ffe3e3;color:#ac2946}.psy-app .psy-group-5{background:#e4f8f5;color:#16766a}.psy-app .psy-group-6{background:#eeecff;color:#503eb1}
.psy-app .psy-legend{padding:8px 12px;gap:14px}.psy-app .psy-legend span{font-size:11px}
.psy-app .psy-bottom-actions{padding:8px 12px}.psy-app .psy-bottom-actions label,.psy-app .psy-hint{font-size:11px}
.psy-app .psy-form-grid label{font-size:12px}.psy-app .psy-form-grid input,.psy-app .psy-form-grid select,.psy-app .psy-form-grid textarea{font-size:13px}
.psy-app .psy-modal{width:min(100%,540px);padding:20px}
.psy-app .psy-followup-window{width:min(100%,890px);max-height:90vh}
.psy-app .psy-wait-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 14px}
.psy-app .psy-wait-tabs button{border:1px solid #cee0f3;background:#f7faff;color:#245483;padding:8px 11px;border-radius:7px;font-size:12px;cursor:pointer;font-weight:700}
.psy-app .psy-wait-tabs button[aria-pressed=true]{background:#1e4b8a;color:#fff;border-color:#1e4b8a}
.psy-app .psy-wait-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:8px;padding:12px;background:#f5f8fe;border:1px solid #e2eaf4;border-radius:10px}
.psy-app .psy-wait-form h3{grid-column:1/-1;font-size:14px;margin:0 0 2px}
.psy-app .psy-wait-form label{display:grid;gap:5px;font-size:11.5px;font-weight:700;color:#345371}
.psy-app .psy-wait-form input,.psy-app .psy-wait-form select{width:100%;min-width:0;padding:8px;border:1px solid #cad8ea;border-radius:6px;font-size:12px;background:#fff}
.psy-app .psy-wait-form button,.psy-app .psy-wait-buttons button{font-size:12px;font-weight:700;border-radius:7px;cursor:pointer;padding:9px 10px;border:1px solid #1f529a;background:#20549a;color:#fff}
.psy-app .psy-wait-form button:disabled{opacity:.55}
.psy-app .psy-wait-count{font-size:12px;color:#536985;font-weight:700;margin:10px 0 6px}
.psy-app .psy-wait-list{display:grid;gap:7px}
.psy-app .psy-wait-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #dbe5f0;border-radius:8px}
.psy-app .psy-wait-person-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.psy-app .psy-wait-person-main strong{font-size:14px;color:#183657}
.psy-app .psy-wait-phone{font-size:13px;color:#275bb0;text-decoration:underline}
.psy-app .psy-wait-meta{display:flex;align-items:center;gap:7px;font-size:11px;color:#556a84;font-weight:700;flex-wrap:wrap}
.psy-app .psy-wait-booked{color:#17653d}
.psy-app .psy-wait-note{font-size:11px;color:#66788e;overflow-wrap:anywhere}
.psy-app .psy-wait-buttons{display:flex;gap:6px;flex-wrap:wrap}
.psy-app .psy-wait-buttons .psy-wait-done{background:#fff;color:#395670;border-color:#bdcfe1}
.psy-app .psy-wait-empty{font-size:13px;color:#6a7e96;background:#f7f9fc;padding:17px;text-align:center;border-radius:7px}
@media(max-width:1350px){.psy-app .psy-top-compact{flex-wrap:wrap}.psy-app .psy-metrics{flex:1 1 530px}}
@media(max-width:950px){.psy-app .psy-calendar{min-width:1050px}.psy-app .psy-wait-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.psy-app .psy-top-compact{gap:6px}.psy-app .psy-heading h1{font-size:17px}.psy-app .psy-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.psy-app .psy-metric{min-height:35px}.psy-app .psy-wait-form{grid-template-columns:1fr}.psy-app .psy-wait-person{align-items:start;flex-direction:column}}

/* v0.9.5 — readability, group identity and usable follow-up search. */
.psy-app .psy-top-compact{padding:7px 10px;margin-bottom:7px;gap:10px}
.psy-app .psy-heading h1{font-size:21px}
.psy-app .psy-metric{padding:7px 8px;min-height:37px}
.psy-app .psy-metric span{font-size:12px}
.psy-app .psy-table-head{padding:9px 11px}
.psy-app .psy-calendar{min-width:1090px}
.psy-app .psy-calendar thead th{font-size:12px;padding:12px 2px}
.psy-app .psy-calendar tbody .psy-day,.psy-app .psy-calendar tbody .psy-device{font-size:12px}
.psy-app .psy-calendar tbody tr,.psy-app .psy-calendar td.psy-slot-cell{height:161px}
.psy-app .psy-cell{height:151px;min-height:151px;padding:8px 7px;gap:6px;justify-content:flex-start}
.psy-app .psy-cell strong,.psy-app .psy-cell .psy-client-name{font-size:14px;line-height:1.24}
.psy-app .psy-cell small,.psy-app .psy-cell .psy-client-phone{font-size:12.5px}
.psy-app .psy-cell .psy-status-mini{font-size:10px;line-height:1.15;font-weight:800;letter-spacing:.1px;opacity:.88}
.psy-app .psy-cell-flags em{font-size:11px}
.psy-app .psy-group-tag{font-size:11px}
.psy-app .psy-cell.psy-linked{border-left:5px solid currentColor;padding-left:5px}
.psy-app .psy-cell.psy-linked.psy-group-0{border-left-color:#1156a9}
.psy-app .psy-cell.psy-linked.psy-group-1{border-left-color:#842e9f}
.psy-app .psy-cell.psy-linked.psy-group-2{border-left-color:#156c36}
.psy-app .psy-cell.psy-linked.psy-group-3{border-left-color:#9a5f0e}
.psy-app .psy-cell.psy-linked.psy-group-4{border-left-color:#ac2946}
.psy-app .psy-cell.psy-linked.psy-group-5{border-left-color:#16766a}
.psy-app .psy-cell.psy-linked.psy-group-6{border-left-color:#503eb1}
.psy-app .psy-group-field{display:grid;gap:5px;font-size:12px;font-weight:750;color:#405673}
.psy-app .psy-group-input-row{display:flex;gap:7px;min-width:0}
.psy-app .psy-group-input-row input{flex:1;min-width:0}
.psy-app .psy-group-input-row button{flex:0 0 auto;padding:9px 11px;border:1px solid #aac5e6;border-radius:7px;background:#e8f2ff;color:#164b8b;font-weight:800;cursor:pointer}
.psy-app .psy-group-input-row button:hover{background:#d4e7ff}
.psy-app .psy-group-field small{font-size:11px;color:#66788e;font-weight:500}
.psy-app .psy-wait-tools{display:flex;align-items:center;gap:9px;margin:3px 0 10px}
.psy-app .psy-wait-tools label{font-size:12px;font-weight:800;color:#314d72}
.psy-app .psy-wait-tools input{flex:1;min-width:0;border:1px solid #bccfe4;border-radius:8px;padding:10px 12px;font-size:14px}
.psy-app .psy-wait-person-main strong{font-size:15px}
.psy-app .psy-wait-phone{font-size:14px}
.psy-app .psy-wait-booking{font-size:12px;font-weight:800;color:#17653d}
@media(max-width:1050px){.psy-app .psy-top-compact{flex-wrap:wrap}.psy-app .psy-metrics{flex-basis:100%;justify-content:stretch}.psy-app .psy-metric{flex:1}}
@media(max-width:650px){.psy-app .psy-wait-tools{align-items:stretch;flex-direction:column}.psy-app .psy-wait-tools input{width:100%}.psy-app .psy-calendar{min-width:1010px}}


/* v0.9.6 — device column removed, 5-day continuous view, status colors updated. */
.psy-app .psy-top-compact{align-items:center;gap:8px;padding:7px 10px;position:sticky;top:0;z-index:5}
.psy-app .psy-heading{min-width:150px}
.psy-app .psy-heading h1{font-size:24px;margin:0;color:#0f2949}
.psy-app .psy-heading span{font-size:12px;font-weight:700;color:#58718f}
.psy-app .psy-logo{width:50px;height:46px;max-height:46px}
.psy-app .psy-metrics{gap:5px}
.psy-app .psy-metric{padding:6px 8px;min-height:34px;border-radius:6px}
.psy-app .psy-metric span{font-size:11px;font-weight:700}
.psy-app .psy-metric strong{font-size:16px}
.psy-app .psy-table-head{padding:7px 10px;border-bottom:0}
.psy-app .psy-date-actions h2{font-size:15px}
.psy-app .psy-date-actions b{min-width:170px;font-size:12px}
.psy-app .psy-calendar-scroll{overflow-x:auto;overflow-y:visible;max-height:none}
.psy-app .psy-calendar{min-width:980px}
.psy-app .psy-calendar th:first-child{width:92px}
.psy-app .psy-calendar thead th:nth-child(n+2){width:124px}
.psy-app .psy-calendar thead th{font-size:12px;padding:10px 4px}
.psy-app .psy-calendar tbody tr,.psy-app .psy-calendar td.psy-slot-cell{height:146px}
.psy-app .psy-calendar tbody .psy-day{font-size:13px;line-height:1.4;font-weight:900}
.psy-app .psy-cell{position:relative;height:136px;min-height:136px;padding:8px 8px 24px 8px;gap:5px;justify-content:flex-start}
.psy-app .psy-cell strong,.psy-app .psy-cell .psy-client-name{font-size:14px;line-height:1.22;color:#163451}
.psy-app .psy-cell small,.psy-app .psy-cell .psy-client-phone{font-size:12px;line-height:1.18;color:#35516f}
.psy-app .psy-cell .psy-status-mini{font-size:10.5px;color:#5b6f85;opacity:1;font-weight:900}
.psy-app .psy-add-sign{font-size:22px;line-height:1;color:#4d71a6;margin:auto}
.psy-app .psy-device-mini{position:absolute;right:7px;bottom:6px;font-size:10.5px;font-weight:900;color:#59718f;background:rgba(255,255,255,.82);padding:2px 5px;border-radius:10px;border:1px solid #ced8e5}
.psy-app .psy-cell.pending{background:#fbfdff;border-color:#d6e2f0;color:#183657}
.psy-app .psy-cell.pending .psy-status-mini,.psy-app .psy-cell.pending strong,.psy-app .psy-cell.pending small{color:#183657}
.psy-app .psy-cell.confirmed{background:#fff3c9;border-color:#e6c86b;color:#6d4e08}
.psy-app .psy-cell.confirmed .psy-status-mini,.psy-app .psy-cell.confirmed strong,.psy-app .psy-cell.confirmed small{color:#6d4e08}
.psy-app .psy-cell.arrived{background:#dff7e8;border-color:#84cca0;color:#145533}
.psy-app .psy-cell.arrived .psy-status-mini,.psy-app .psy-cell.arrived strong,.psy-app .psy-cell.arrived small{color:#145533}
.psy-app .psy-cell.missed{background:#ffe0e0;border-color:#e59f9f;color:#8b1f27}
.psy-app .psy-cell.missed .psy-status-mini,.psy-app .psy-cell.missed strong,.psy-app .psy-cell.missed small{color:#8b1f27}
.psy-app .psy-cell.blocked{padding-bottom:8px}
.psy-app .psy-cell.blocked .psy-device-mini{position:static;align-self:flex-end;margin-top:auto}
.psy-app .psy-cell-flags em{font-size:10.5px}
.psy-app .psy-legend span{font-size:11px}
.psy-app .psy-bottom-actions{padding:7px 10px}
.psy-app .psy-hint{font-size:10.8px}
@media(max-width:1200px){.psy-app .psy-calendar{min-width:930px}.psy-app .psy-calendar thead th:nth-child(n+2){width:114px}}
@media(max-width:900px){.psy-app .psy-top-compact{flex-wrap:wrap}.psy-app .psy-heading{flex:1 1 auto}.psy-app .psy-metrics{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.psy-app .psy-calendar{min-width:860px}}


/* v0.9.7 — WhatsApp reminder actions for saved appointments. */
.psy-app .psy-whatsapp-area{margin-top:13px;padding:10px 11px;background:#f0faf3;border:1px solid #badfc5;border-radius:9px;display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.psy-app .psy-whatsapp-action{background:#157e49;color:#fff;border:1px solid #13693f;border-radius:8px;padding:11px 14px;font-size:13px;font-weight:800;cursor:pointer}
.psy-app .psy-whatsapp-action:hover{background:#106338}
.psy-app .psy-whatsapp-action:focus-visible,.psy-app .psy-cell-whatsapp:focus-visible{outline:3px solid #174da7;outline-offset:2px}
.psy-app .psy-whatsapp-area span{font-size:11px;line-height:1.4;color:#356149;flex:1 1 210px}
.psy-app .psy-cell-wrap{position:relative;width:100%;height:100%}
.psy-app .psy-cell-wrap>.psy-cell{height:100%}
.psy-app .psy-cell-whatsapp{position:absolute;top:6px;right:6px;display:flex;justify-content:center;align-items:center;text-decoration:none;background:#157e49;color:#fff!important;font-size:10.5px;font-weight:900;letter-spacing:.3px;border-radius:5px;width:30px;height:24px;box-shadow:0 1px 3px #0002}
.psy-app .psy-cell-whatsapp:hover{background:#0b5f35}
.psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-status-mini{padding-right:30px}
@media(max-width:650px){.psy-app .psy-whatsapp-area{flex-direction:column;align-items:stretch}}


/* v0.9.8 — vertically scrollable, bidirectionally loading calendar. */
.psy-app .psy-calendar-scroll{
  max-height:clamp(520px,76vh,930px);
  overflow-y:auto!important;
  overflow-x:auto!important;
  overscroll-behavior-y:contain;
  scroll-behavior:auto;
  scrollbar-gutter:stable;
  border-top:1px solid #e1e8f1;
  border-bottom:1px solid #e1e8f1;
}
.psy-app .psy-calendar thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#eaf3ff;
  box-shadow:0 1px 0 #d8e2ef;
}
.psy-app .psy-calendar tbody .psy-day{vertical-align:top;padding-top:9px}
.psy-app .psy-calendar tbody tr.psy-day-first>td{border-top-width:3px}
.psy-app .psy-calendar-scroll:focus-visible{outline:2px solid #286fc4;outline-offset:-2px}
@media(max-width:650px){.psy-app .psy-calendar-scroll{max-height:70vh;min-height:420px}}


/* v0.9.9 — ALG controls in global top bar. Only appointment grid scrolls. */
body.psych-compact-layout{height:100dvh;overflow:hidden}
body.psych-compact-layout .app-shell{height:100dvh;min-height:0;overflow:hidden}
body.psych-compact-layout .main-area{height:100dvh;min-height:0;min-width:0;overflow:hidden;display:flex;flex-direction:column}
body.psych-compact-layout .main-area>.topbar{
  flex:0 0 auto;position:relative;z-index:10;display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:auto auto;
  align-items:center;column-gap:9px;row-gap:4px;
  width:100%;min-height:0;padding:6px 12px 8px;box-sizing:border-box;
  background:#fff;border-bottom:1px solid #dce5f0;
}
body.psych-compact-layout .topbar-left{grid-column:1;grid-row:1;min-width:0;gap:0}
body.psych-compact-layout .topbar-left>.topbar-current,
body.psych-compact-layout .topbar-left>.topbar-desc,
body.psych-compact-layout .topbar-left>.topbar-divider{display:none}
body.psych-compact-layout .topbar-right{grid-column:3;grid-row:1;min-width:0;white-space:nowrap}
body.psych-compact-layout .topbar-right>.topbar-date{display:none}
body.psych-compact-layout #psy-header-dock{display:contents}
body.psych-compact-layout #psy-header-dock .psy-top-compact{
  grid-column:2;grid-row:1;min-width:0;max-width:100%;
  display:flex;flex-wrap:nowrap;gap:7px;align-items:center;
  margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;
}
body.psych-compact-layout #psy-header-dock .psy-heading{min-width:118px;flex:0 0 auto}
body.psych-compact-layout #psy-header-dock .psy-heading h1{font-size:20px;line-height:1.15;margin:0}
body.psych-compact-layout #psy-header-dock .psy-heading span{font-size:10px;line-height:1.1;white-space:normal}
body.psych-compact-layout #psy-header-dock .psy-logo{width:38px;height:39px;max-height:39px;flex:0 0 auto}
body.psych-compact-layout #psy-header-dock .psy-metrics{
  flex:1 1 auto;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  justify-content:stretch;gap:4px;margin:0;
}
body.psych-compact-layout #psy-header-dock .psy-metric{
  min-width:0;min-height:35px;padding:4px 5px;gap:5px;
  border-radius:6px;display:flex;flex-direction:row;align-items:center;justify-content:center;
}
body.psych-compact-layout #psy-header-dock .psy-metric span{font-size:10px;line-height:1.1;white-space:normal;min-width:0}
body.psych-compact-layout #psy-header-dock .psy-metric strong{font-size:16px;flex:0 0 auto}
body.psych-compact-layout #psy-header-dock .psy-table-head{
  grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;align-items:center;
  gap:8px;flex-wrap:wrap;min-width:0;margin:0;padding:5px 0 0;
  background:transparent;border-top:1px solid #e6ecf4;border-bottom:0;
}
body.psych-compact-layout #psy-header-dock .psy-date-actions{gap:5px;flex-wrap:wrap}
body.psych-compact-layout #psy-header-dock .psy-date-actions h2{font-size:14px;margin-right:6px}
body.psych-compact-layout #psy-header-dock .psy-date-actions b{font-size:12px;min-width:185px}
body.psych-compact-layout #psy-header-dock .psy-date-actions button{padding:5px 8px;font-size:11.5px}
body.psych-compact-layout #psy-header-dock .psy-main-actions{gap:6px;flex-wrap:wrap}
body.psych-compact-layout #psy-header-dock .psy-main-actions button{padding:6px 9px;font-size:11.5px}
body.psych-compact-layout .main-area>.content{
  flex:1 1 auto;min-height:0;min-width:0;overflow:hidden;
  display:flex;flex-direction:column;box-sizing:border-box;
  padding:6px 10px 6px;
}
body.psych-compact-layout .main-area>.content>.psy-app{
  flex:1 1 auto;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;
}
body.psych-compact-layout .psy-app .psy-workspace{
  display:flex!important;flex:1 1 auto;min-height:0;min-width:0;flex-direction:column;
}
body.psych-compact-layout .psy-app .psy-table-card{
  display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden;
}
body.psych-compact-layout .psy-app .psy-calendar-scroll{
  flex:1 1 auto;min-height:0;height:0;max-height:none!important;
  overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain;
}
body.psych-compact-layout .psy-app .psy-legend,
body.psych-compact-layout .psy-app .psy-bottom-actions{flex:0 0 auto}
body.psych-compact-layout .main-area>.footer{flex:0 0 auto;padding-top:3px;padding-bottom:3px}
@media(max-width:1360px){
 body.psych-compact-layout #psy-header-dock .psy-top-compact{flex-wrap:wrap;gap:4px 7px}
 body.psych-compact-layout #psy-header-dock .psy-heading{flex:1 1 120px}
 body.psych-compact-layout #psy-header-dock .psy-metrics{flex:1 1 100%;grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
 body.psych-compact-layout #psy-header-dock .psy-table-head{align-items:flex-start;flex-direction:column}
 body.psych-compact-layout #psy-header-dock .psy-top-compact{grid-column:2/4}
 body.psych-compact-layout .topbar-right{grid-column:3;grid-row:1;align-self:start}
 body.psych-compact-layout #psy-header-dock .psy-top-compact{padding-right:100px}
 body.psych-compact-layout #psy-header-dock .psy-date-actions b{min-width:165px}
}
@media(max-width:600px){
 body.psych-compact-layout #psy-header-dock .psy-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.psych-compact-layout #psy-header-dock .psy-heading h1{font-size:17px}
 body.psych-compact-layout #psy-header-dock .psy-table-head{gap:5px}
 body.psych-compact-layout #psy-header-dock .psy-date-actions h2{flex-basis:100%}
 body.psych-compact-layout .main-area>.content{padding:3px}
 body.psych-compact-layout .psy-app .psy-bottom-actions{display:none}
}

/* v0.9.9 small viewport: account controls occupy row one; brand and KPIs row two. */
@media(max-width:700px){
 body.psych-compact-layout .main-area>.topbar{
   grid-template-columns:38px minmax(0,1fr) auto;
   grid-template-rows:auto auto auto;
   padding:6px 8px;
 }
 body.psych-compact-layout .topbar-left{grid-column:1;grid-row:1;align-self:center}
 body.psych-compact-layout .topbar-right{grid-column:2/4;grid-row:1;align-self:center;justify-self:end}
 body.psych-compact-layout #psy-header-dock .psy-top-compact{
   grid-column:1/-1;grid-row:2;padding:0;min-width:0;
   display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;
 }
 body.psych-compact-layout #psy-header-dock .psy-heading{min-width:0;flex:1 1 130px}
 body.psych-compact-layout #psy-header-dock .psy-logo{width:45px;height:32px;max-height:32px}
 body.psych-compact-layout #psy-header-dock .psy-metrics{
   flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
   width:100%;min-width:0;gap:4px;
 }
 body.psych-compact-layout #psy-header-dock .psy-metric{min-height:32px;padding:4px 6px}
 body.psych-compact-layout #psy-header-dock .psy-metric span{font-size:10.5px}
 body.psych-compact-layout #psy-header-dock .psy-table-head{grid-column:1/-1;grid-row:3;gap:5px}
 body.psych-compact-layout #psy-header-dock .psy-date-actions{gap:4px}
 body.psych-compact-layout #psy-header-dock .psy-date-actions h2{flex-basis:100%;margin:0}
 body.psych-compact-layout #psy-header-dock .psy-main-actions{width:100%;gap:5px}
 body.psych-compact-layout #psy-header-dock .psy-main-actions button{flex:1 1 auto;min-width:0}
}


/* v0.9.10 — Calendar toolbar is a real row ABOVE hours, never floating over the grid.
   Keep brand/KPIs/user in top app bar. Only the .psy-calendar-scroll scrolls. */
@media(min-width:701px){
 body.psych-compact-layout .main-area>.topbar{grid-template-rows:auto!important;}
}
body.psych-compact-layout #psy-header-dock .psy-top-compact{grid-row:1;}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head{
 display:flex!important;position:relative;z-index:4;flex:0 0 auto;
 align-items:center;justify-content:space-between;
 gap:10px;flex-wrap:wrap;min-height:49px;
 box-sizing:border-box;width:100%;margin:0;padding:8px 12px;
 background:#fff;border:0;border-bottom:1px solid #cbd9ea;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions{
 display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions h2{
 font-size:15px;margin:0 9px 0 0;white-space:nowrap;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions b{
 font-size:12px;min-width:187px;text-align:center;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions button{
 font-size:12px;padding:7px 9px;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-main-actions{
 display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;
}
body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-main-actions button{
 font-size:12px;padding:8px 10px;
}
body.psych-compact-layout .psy-app .psy-calendar-scroll{
 flex:1 1 0;min-height:0;height:0;max-height:none!important;
 position:relative;z-index:1;overflow-y:auto!important;overflow-x:auto!important;
 overscroll-behavior:contain;
}
body.psych-compact-layout .psy-app .psy-calendar thead th{
 position:sticky;top:0;z-index:3;background:#eaf3ff;
}
@media(max-width:1100px){
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head{align-items:flex-start;gap:6px;}
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions,
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-main-actions{width:100%;}
}
@media(max-width:700px){
 body.psych-compact-layout .main-area>.topbar{grid-template-rows:auto auto!important;}
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head{padding:7px 8px;}
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions h2{flex-basis:100%;margin:0;}
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-date-actions b{min-width:0;flex:1;font-size:11.5px;}
 body.psych-compact-layout .psy-app .psy-table-card>.psy-table-head .psy-main-actions button{flex:1 1 auto;}
}


/* === ALG v0.9.11 | EXCEL-LIKE FULL-HEIGHT CALENDAR + RIGHT OPERATIONS RAIL ===
   Scoped to Psych page only. Other SRC modules must retain their original layout. */
body.psych-compact-layout,
body.psych-compact-layout .app-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.psych-compact-layout .main-area{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 240px!important;
 grid-template-rows:minmax(0,1fr)!important;
 gap:0!important;width:auto;min-width:0!important;height:100dvh!important;
 min-height:0!important;overflow:hidden!important;
}
/* The actual topbar is now a right-side vertical management rail. */
body.psych-compact-layout .main-area>.topbar{
 grid-column:2!important;grid-row:1!important;
 position:relative!important;z-index:10!important;
 display:flex!important;flex-direction:column!important;
 align-items:stretch!important;justify-content:flex-start!important;
 gap:0!important;width:auto!important;height:100%!important;
 min-height:0!important;max-height:100%!important;
 padding:10px 9px 12px!important;margin:0!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 box-sizing:border-box!important;background:#f8fafc!important;
 border-left:1px solid #d5e1f0!important;border-bottom:0!important;
 scrollbar-width:thin;
}
body.psych-compact-layout .main-area>.topbar>.topbar-left{
 order:3!important;display:flex!important;min-height:36px;justify-content:flex-end;
 align-self:stretch!important;margin-top:4px;border-top:1px solid #d9e3ef;padding-top:8px;
}
body.psych-compact-layout .main-area>.topbar>.topbar-right{
 order:2!important;display:flex!important;align-self:stretch!important;
 justify-content:space-between!important;gap:8px!important;min-height:46px;
 padding:8px 3px 3px!important;margin-top:8px!important;
 border-top:1px solid #d9e3ef;
}
body.psych-compact-layout .topbar-right .user-pill{min-width:0}
body.psych-compact-layout .topbar-right>.topbar-date{display:none!important}
body.psych-compact-layout #psy-header-dock{
 order:0!important;display:flex!important;flex-direction:column!important;
 align-items:stretch!important;width:100%!important;gap:0!important;
 min-width:0!important;min-height:auto!important;
}
body.psych-compact-layout #psy-header-dock .psy-top-compact{
 display:grid!important;grid-template-columns:minmax(0,1fr) 49px!important;
 align-items:center!important;gap:6px!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 background:transparent!important;padding:1px 0 10px!important;
 margin:0!important;border:0!important;border-bottom:1px solid #dbe5ef!important;
 border-radius:0!important;box-shadow:none!important;
}
body.psych-compact-layout #psy-header-dock .psy-heading{
 grid-column:1;grid-row:1;min-width:0!important;flex:unset!important;
}
body.psych-compact-layout #psy-header-dock .psy-heading h1{
 font-size:21px!important;font-weight:850!important;line-height:1.15!important;margin:0 0 3px!important;
}
body.psych-compact-layout #psy-header-dock .psy-heading span{
 font-size:11px!important;line-height:1.25!important;white-space:normal!important;
}
body.psych-compact-layout #psy-header-dock .psy-logo{
 grid-column:2;grid-row:1;width:46px!important;height:45px!important;
 max-height:45px!important;object-fit:contain;
}
body.psych-compact-layout #psy-header-dock .psy-metrics{
 grid-column:1/-1;grid-row:2;
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:5px!important;width:100%!important;min-width:0!important;
 margin:5px 0 0!important;padding:0!important;flex:unset!important;
}
body.psych-compact-layout #psy-header-dock .psy-metric{
 display:flex!important;flex-direction:column!important;
 gap:3px!important;justify-content:center!important;align-items:center!important;
 width:100%!important;min-width:0!important;min-height:51px!important;
 margin:0!important;padding:5px 3px!important;text-align:center!important;
 background:#fff!important;border:1px solid #dce5ef!important;border-radius:7px!important;
}
body.psych-compact-layout #psy-header-dock .psy-metric[aria-pressed=true]{background:#e2eefc!important;border-color:#3b7bca!important}
body.psych-compact-layout #psy-header-dock .psy-metric span{
 font-size:10.5px!important;font-weight:750!important;line-height:1.1!important;
 color:#425a7d!important;min-width:0!important;text-align:center!important;
 white-space:normal!important;
}
body.psych-compact-layout #psy-header-dock .psy-metric strong{
 font-size:19px!important;line-height:1.1!important;color:#173c6c!important;
}
body.psych-compact-layout #psy-header-dock .psy-table-head{
 position:static!important;z-index:auto!important;
 order:1;display:flex!important;flex-direction:column!important;
 align-items:stretch!important;justify-content:flex-start!important;
 gap:8px!important;width:100%!important;min-width:0!important;
 margin:0!important;padding:12px 0 11px!important;background:transparent!important;
 border:0!important;border-bottom:1px solid #dbe5ef!important;
}
body.psych-compact-layout #psy-header-dock .psy-date-actions{
 display:grid!important;grid-template-columns:35px minmax(0,1fr) 35px!important;
 align-items:center!important;gap:5px!important;width:100%!important;
}
body.psych-compact-layout #psy-header-dock .psy-date-actions h2{
 grid-column:1/-1;font-size:16px!important;line-height:1.25!important;
 text-align:left!important;margin:0 0 4px!important;white-space:normal!important;
}
body.psych-compact-layout #psy-header-dock .psy-date-actions b{
 grid-column:2!important;grid-row:2!important;min-width:0!important;
 font-size:11px!important;line-height:1.35!important;text-align:center!important;
 white-space:normal!important;
}
body.psych-compact-layout #psy-header-dock .psy-date-actions [data-psy-prev]{grid-column:1!important;grid-row:2!important}
body.psych-compact-layout #psy-header-dock .psy-date-actions [data-psy-next]{grid-column:3!important;grid-row:2!important}
body.psych-compact-layout #psy-header-dock .psy-date-actions [data-psy-today]{grid-column:1/-1!important;grid-row:3!important}
body.psych-compact-layout #psy-header-dock .psy-date-actions button{
 width:100%;min-width:0!important;padding:8px 5px!important;font-size:12px!important;
 background:#fff;color:#28538a;border:1px solid #cedcec;border-radius:7px;
}
body.psych-compact-layout #psy-header-dock .psy-main-actions{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100%!important;gap:7px!important;margin:0!important;
}
body.psych-compact-layout #psy-header-dock .psy-main-actions button{
 display:block!important;width:100%!important;min-width:0!important;
 font-size:12px!important;line-height:1.3!important;
 padding:10px 8px!important;text-align:center!important;white-space:normal!important;
}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 order:2;gap:7px!important;padding:10px 0!important;
 background:transparent!important;border:0!important;border-bottom:1px solid #dbe5ef!important;
}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions label{
 font-size:11px!important;display:flex;align-items:center;justify-content:space-between;gap:6px;
}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions input[type=date]{
 min-width:0;width:126px;max-width:100%;font-size:11px;padding:6px 4px;
}
body.psych-compact-layout #psy-header-dock #psy-print-link{display:block;width:100%;box-sizing:border-box;text-align:center;padding:8px}
body.psych-compact-layout #psy-header-dock .psy-hint{font-size:10px!important;line-height:1.4!important}
body.psych-compact-layout #psy-header-dock .psy-legend{
 order:3;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:7px 4px!important;align-items:center;width:100%!important;
 border:0!important;margin:0!important;padding:10px 0!important;
}
body.psych-compact-layout #psy-header-dock .psy-legend span{font-size:10px!important;gap:4px!important;white-space:normal}
body.psych-compact-layout .main-area>.content{
 grid-column:1!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 flex:unset!important;width:auto!important;min-height:0!important;height:100%!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 box-sizing:border-box!important;background:#fff!important;
}
body.psych-compact-layout .main-area>.content>.psy-app{
 display:flex!important;flex-direction:column!important;
 flex:1 1 0!important;width:100%!important;height:100%!important;
 min-height:0!important;overflow:hidden!important;
}
body.psych-compact-layout .psy-app .psy-workspace{
 display:flex!important;flex-direction:column!important;
 flex:1 1 0!important;min-height:0!important;width:100%!important;overflow:hidden!important;
}
body.psych-compact-layout .psy-app .psy-table-card{
 display:flex!important;flex-direction:column!important;
 flex:1 1 0!important;width:100%!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;overflow:hidden!important;
}
body.psych-compact-layout .psy-app .psy-calendar-scroll{
 position:relative!important;z-index:1!important;
 flex:1 1 0!important;min-height:0!important;height:100%!important;
 width:100%!important;max-height:none!important;
 padding:0!important;margin:0!important;
 overflow-y:auto!important;overflow-x:auto!important;
 scrollbar-gutter:stable;overscroll-behavior:contain;
}
body.psych-compact-layout .psy-app .psy-calendar{
 width:100%!important;min-width:945px!important;table-layout:fixed!important;
 border-collapse:separate!important;border-spacing:0!important;
}
body.psych-compact-layout .psy-app .psy-calendar th:first-child{width:88px!important}
body.psych-compact-layout .psy-app .psy-calendar thead th:nth-child(n+2){width:auto!important}
body.psych-compact-layout .psy-app .psy-calendar thead th{
 position:sticky!important;top:0!important;z-index:5!important;
 font-size:11.5px!important;line-height:1.2!important;
 height:35px!important;padding:8px 2px!important;
 text-align:center!important;box-sizing:border-box!important;
 background:#eaf3ff!important;border-bottom:2px solid #b4c9e3!important;
}
/* Approximately five full days of two device rows in a standard desktop viewport. */
body.psych-compact-layout .psy-app{
 --psy-grid-row:clamp(56px, calc((100dvh - 66px)/10), 74px);
}
body.psych-compact-layout .psy-app .psy-calendar tbody tr{
 height:var(--psy-grid-row)!important;min-height:var(--psy-grid-row)!important;
}
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{
 height:var(--psy-grid-row)!important;min-height:var(--psy-grid-row)!important;
 padding:2px!important;vertical-align:middle!important;box-sizing:border-box!important;
}
body.psych-compact-layout .psy-app .psy-cell-wrap{
 height:calc(var(--psy-grid-row) - 5px)!important;min-height:0!important;
}
body.psych-compact-layout .psy-app .psy-cell{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:center!important;
 height:100%!important;min-height:0!important;max-height:100%!important;
 padding:3px 4px 14px!important;gap:1px!important;
 border-radius:5px!important;line-height:1.07!important;
 box-sizing:border-box!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-name,
body.psych-compact-layout .psy-app .psy-cell strong{
 font-size:clamp(11px,.88vw,13px)!important;line-height:1.1!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.psych-compact-layout .psy-app .psy-cell small,
body.psych-compact-layout .psy-app .psy-cell .psy-client-phone{
 font-size:10.5px!important;line-height:1.06!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-status-mini{font-size:9.5px!important;line-height:1!important;opacity:1!important}
body.psych-compact-layout .psy-app .psy-cell-flags{
 display:flex!important;flex-wrap:nowrap!important;gap:2px!important;
 overflow:hidden!important;min-width:0!important;
}
body.psych-compact-layout .psy-app .psy-cell-flags em{
 font-size:9px!important;line-height:1.1!important;
 padding:1px 2px!important;white-space:nowrap!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag{
 position:absolute;top:3px;right:3px;
 font-size:9px!important;padding:1px 3px!important;max-width:44px!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-linked .psy-client-name{padding-right:35px}
body.psych-compact-layout .psy-app .psy-cell .psy-device-mini{
 position:absolute!important;right:3px!important;bottom:2px!important;
 font-size:9px!important;line-height:1!important;padding:1px 3px!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-add-sign{font-size:19px!important;margin:auto!important}
body.psych-compact-layout .psy-app .psy-cell-whatsapp{
 top:2px!important;right:2px!important;width:24px!important;height:18px!important;
 font-size:9px!important;
}
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-client-name{padding-right:23px}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day{
 position:sticky!important;left:0!important;z-index:3!important;
 vertical-align:middle!important;text-align:center!important;
 padding:2px 3px!important;font-size:11.5px!important;
 line-height:1.35!important;white-space:normal!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div{
 display:block;text-align:center!important;font-size:11px!important;line-height:1.35!important;
 word-break:normal;overflow-wrap:normal;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:last-child{font-size:11.5px!important;font-weight:900!important;margin-top:4px}
body.psych-compact-layout .psy-app .psy-calendar tbody tr.psy-day-first>td{
 border-top-width:2px!important;
}
body.psych-compact-layout .main-area>.footer{display:none!important}
/* Narrow windows: keep the calendar full-height and scroll columns horizontally, as in Excel. */
@media(max-width:920px){
 body.psych-compact-layout .main-area{grid-template-columns:minmax(0,1fr) 214px!important}
 body.psych-compact-layout .psy-app .psy-calendar{min-width:930px!important}
}
/* Smartphone: a compact fixed right tools strip remains accessible, calendar scrolls horizontally. */
@media(max-width:600px){
 body.psych-compact-layout .main-area{grid-template-columns:minmax(0,1fr) 172px!important}
 body.psych-compact-layout .main-area>.topbar{padding:6px 4px!important}
 body.psych-compact-layout #psy-header-dock .psy-heading h1{font-size:17px!important}
 body.psych-compact-layout #psy-header-dock .psy-heading span{font-size:9.5px!important}
 body.psych-compact-layout #psy-header-dock .psy-date-actions{grid-template-columns:30px minmax(0,1fr) 30px!important;gap:2px!important}
 body.psych-compact-layout #psy-header-dock .psy-date-actions b{font-size:10px!important}
 body.psych-compact-layout #psy-header-dock .psy-metric span{font-size:9px!important}
 body.psych-compact-layout #psy-header-dock .psy-metric strong{font-size:16px!important}
 body.psych-compact-layout .psy-app .psy-calendar{min-width:925px!important}
}

/* v0.9.11 collision and legend color fixes. */
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{right:29px!important;}
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-status-mini{padding-right:49px!important;}
body.psych-compact-layout #psy-header-dock .psy-dot.pending{background:#97abc2!important;}
body.psych-compact-layout #psy-header-dock .psy-dot.confirmed{background:#e5bc48!important;}


/* ==========================================================================
   ALG v0.9.12 — 4 GÜN / PAZAR HARİÇ / OKUNAKLI RANDEVU KARTLARI
   Sağ kontrol paneli ve tam boy Excel takvimi v0.9.11 ile aynıdır.
   4 gün × 2 cihaz = masaüstü görünümünde yaklaşık 8 satır.
   ========================================================================== */
body.psych-compact-layout .psy-app{
 --psy-grid-row:clamp(68px, calc((100dvh - 41px)/8), 98px)!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody tr,
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{
 height:var(--psy-grid-row)!important;
 min-height:var(--psy-grid-row)!important;
}
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{
 padding:2px!important;
}
body.psych-compact-layout .psy-app .psy-cell-wrap{
 height:calc(var(--psy-grid-row) - 5px)!important;
}
body.psych-compact-layout .psy-app .psy-cell{
 padding:3px 5px 13px!important;
 gap:2px!important;
 line-height:1.12!important;
 justify-content:center!important;
 overflow:hidden!important;
 min-width:0!important;
}
/* Anlamlı bilgiler kartta farklı satırlarda gösterilir; çakışma engellenir. */
body.psych-compact-layout .psy-app .psy-cell .psy-status-mini{
 display:block!important;font-size:9.8px!important;line-height:1.05!important;
 font-weight:850!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 max-width:100%!important;
 padding-right:0!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-name{
 display:block!important;
 font-size:12.2px!important;line-height:1.14!important;
 font-weight:900!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 max-width:100%!important;
 padding-right:0!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-phone{
 display:block!important;font-size:11.4px!important;
 font-weight:750!important;line-height:1.08!important;
 white-space:nowrap!important;overflow:hidden!important;
 text-overflow:ellipsis!important;
 max-width:100%!important;
}
body.psych-compact-layout .psy-app .psy-cell-flags{
 display:flex!important;align-items:center!important;gap:3px!important;
 flex-wrap:nowrap!important;overflow:hidden!important;
 min-height:12px!important;
 padding-right:0!important;
}
body.psych-compact-layout .psy-app .psy-cell-flags em{
 font-size:9.7px!important;line-height:1.04!important;
 font-weight:800!important;padding:1px 3px!important;
 min-width:0!important;text-overflow:ellipsis!important;
 overflow:hidden!important;
}
/* Uzun adlarda durum metni kart yerine durum rengi + tam bilgi ipucuyla
   anlaşılır; ad iki satır gösterilir. */
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-status-mini{
 display:none!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-name{
 white-space:normal!important;overflow:hidden!important;
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow-wrap:anywhere!important;
 padding-right:0!important;
}
/* WA kısayolu adın üzerine gelmesin: alt soldaki özel konum. */
body.psych-compact-layout .psy-app .psy-cell-whatsapp{
 top:auto!important;left:4px!important;right:auto!important;
 bottom:3px!important;width:24px!important;height:15px!important;
 border-radius:4px!important;font-size:9px!important;
 box-shadow:none!important;line-height:1!important;
}
body.psych-compact-layout .psy-app .psy-device-mini{
 bottom:3px!important;right:4px!important;
 font-size:9.5px!important;padding:1px 4px!important;
 line-height:1.05!important;
}
/* Grup numarası sağ üstte ve isimden bağımsız. */
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag{
 top:3px!important;right:3px!important;
 max-width:48px!important;
 font-size:9.5px!important;
 padding:1px 3px!important;
}
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{
 right:3px!important;
}
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-client-name{
 padding-right:0!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-linked .psy-client-name{
 padding-right:0!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day{
 vertical-align:middle!important;
 text-align:center!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div{
 font-size:12px!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:last-child{
 font-size:12px!important;
}
/* v0.9.12 final: exactly four day-pairs fit in a 600px-high browser viewport. */
body.psych-compact-layout .psy-app{
 --psy-grid-row:clamp(68px,calc((100dvh - 66px)/8),98px)!important;
}
/* WA at bottom-left, group at bottom-center, device at bottom-right. */
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag,
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{
 top:auto!important;right:auto!important;left:32px!important;bottom:3px!important;
 max-width:51px!important;padding:1px 3px!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-name{
 font-size:11.8px!important;line-height:1.08!important;
}
/* Long names remain two lines without colliding with payment or bottom badges. */
body.psych-compact-layout .psy-app .psy-cell.psy-long-name{
 justify-content:flex-start!important;gap:0!important;
 padding-top:2px!important;padding-bottom:14px!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-name{
 font-size:11.4px!important;line-height:1.02!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-phone{
 font-size:10.6px!important;line-height:1!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-cell-flags{
 min-height:10px!important;gap:2px!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-cell-flags em{
 font-size:8.7px!important;line-height:1!important;padding:0 2px!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag,
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{
 font-size:8.8px!important;line-height:1!important;
 padding:1px 2px!important;max-width:51px!important;
}


/* ==========================================================================
   ALG v0.9.13 — 3 GÜN / PAZAR HARİÇ / ÇOK DAHA BÜYÜK KUTULAR
   Excel benzeri görünüm: ekranda 3 çalışma günü görünür.
   ========================================================================== */
body.psych-compact-layout .psy-app{
 --psy-grid-row:clamp(94px,calc((100dvh - 78px)/6),132px)!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody tr,
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{
 height:var(--psy-grid-row)!important;
 min-height:var(--psy-grid-row)!important;
}
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{padding:3px!important;}
body.psych-compact-layout .psy-app .psy-cell-wrap{height:calc(var(--psy-grid-row) - 6px)!important;}
body.psych-compact-layout .psy-app .psy-cell{
 padding:5px 7px 17px!important;
 gap:3px!important;
 justify-content:flex-start!important;
 align-items:flex-start!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-status-mini{
 display:block!important;font-size:11px!important;line-height:1.08!important;font-weight:900!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-name{
 display:block!important;font-size:14px!important;line-height:1.12!important;font-weight:900!important;
 white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow-wrap:anywhere!important;max-width:100%!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-phone{
 display:block!important;font-size:12.6px!important;line-height:1.08!important;font-weight:750!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.psych-compact-layout .psy-app .psy-cell-flags{
 display:flex!important;flex-wrap:wrap!important;gap:3px!important;align-items:center!important;
 min-height:15px!important;overflow:hidden!important;
}
body.psych-compact-layout .psy-app .psy-cell-flags em{
 font-size:10.6px!important;line-height:1.08!important;font-weight:850!important;padding:1px 4px!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag,
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{
 left:35px!important;bottom:4px!important;top:auto!important;right:auto!important;
 max-width:60px!important;font-size:9.5px!important;padding:1px 4px!important;
}
body.psych-compact-layout .psy-app .psy-cell-whatsapp{
 left:5px!important;bottom:4px!important;width:26px!important;height:17px!important;font-size:9.5px!important;
}
body.psych-compact-layout .psy-app .psy-device-mini{
 right:5px!important;bottom:4px!important;font-size:10px!important;padding:1px 4px!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day{vertical-align:middle!important;text-align:center!important;}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:first-child{
 font-size:13px!important;font-weight:900!important;line-height:1.15!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:last-child{
 font-size:13px!important;font-weight:900!important;margin-top:6px!important;line-height:1.12!important;
}
/* Büyük kartlarda uzun adlarda da rahat okunsun. */
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-name{
 font-size:13.2px!important;line-height:1.08!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-client-phone{
 font-size:12px!important;
}
body.psych-compact-layout .psy-app .psy-cell.psy-long-name .psy-cell-flags em{
 font-size:10px!important;
}
/* Dar ekranlarda yine 3 günü korurken kutular çok küçülmesin. */
@media (max-height: 680px){
 body.psych-compact-layout .psy-app{
  --psy-grid-row:clamp(86px,calc((100dvh - 78px)/6),118px)!important;
 }
}
@media (max-width: 1200px){
 body.psych-compact-layout .psy-app .psy-cell .psy-client-name{font-size:13.2px!important;}
 body.psych-compact-layout .psy-app .psy-cell .psy-client-phone{font-size:11.8px!important;}
}


/* ==========================================================================
   ALG v0.9.14 — SAĞ PANEL %40 DAR / KUTULAR %40 DAHA YÜKSEK / TEK GÜN GEZİNME
   ========================================================================== */
body.psych-compact-layout .main-area{
 grid-template-columns:minmax(0,1fr) 144px!important;
}
body.psych-compact-layout .main-area>.topbar{padding:8px 6px 10px!important;}
body.psych-compact-layout #psy-header-dock .psy-top-compact{grid-template-columns:minmax(0,1fr) 38px!important;gap:4px!important;padding-bottom:8px!important;}
body.psych-compact-layout #psy-header-dock .psy-heading h1{font-size:18px!important;}
body.psych-compact-layout #psy-header-dock .psy-heading span{font-size:9.5px!important;line-height:1.15!important;}
body.psych-compact-layout #psy-header-dock .psy-logo{width:34px!important;height:34px!important;max-height:34px!important;}
body.psych-compact-layout #psy-header-dock .psy-metrics{gap:4px!important;margin-top:4px!important;}
body.psych-compact-layout #psy-header-dock .psy-metric{min-height:43px!important;padding:4px 2px!important;}
body.psych-compact-layout #psy-header-dock .psy-metric span{font-size:9px!important;line-height:1.05!important;}
body.psych-compact-layout #psy-header-dock .psy-metric strong{font-size:17px!important;}
body.psych-compact-layout #psy-header-dock .psy-table-head{padding:9px 0 9px!important;gap:6px!important;}
body.psych-compact-layout #psy-header-dock .psy-date-actions h2{font-size:14px!important;margin-bottom:2px!important;}
body.psych-compact-layout #psy-header-dock .psy-date-actions{grid-template-columns:28px minmax(0,1fr) 28px!important;gap:4px!important;}
body.psych-compact-layout #psy-header-dock .psy-date-actions b{font-size:10px!important;line-height:1.2!important;}
body.psych-compact-layout #psy-header-dock .psy-date-actions button{padding:7px 4px!important;font-size:11px!important;}
body.psych-compact-layout #psy-header-dock .psy-main-actions{gap:6px!important;}
body.psych-compact-layout #psy-header-dock .psy-main-actions button{font-size:11px!important;padding:9px 5px!important;}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions{padding:8px 0!important;gap:6px!important;}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions label{font-size:10px!important;display:grid!important;gap:4px!important;justify-content:stretch!important;}
body.psych-compact-layout #psy-header-dock .psy-bottom-actions input[type=date]{width:100%!important;font-size:10px!important;padding:5px 3px!important;}
body.psych-compact-layout #psy-header-dock #psy-print-link{padding:7px 4px!important;font-size:11px!important;}
body.psych-compact-layout #psy-header-dock .psy-hint{font-size:9px!important;line-height:1.25!important;}
body.psych-compact-layout #psy-header-dock .psy-legend{grid-template-columns:1fr!important;gap:5px!important;padding:8px 0!important;}
body.psych-compact-layout #psy-header-dock .psy-legend span{font-size:9px!important;line-height:1.2!important;}

/* Takvim alanını büyüt ve kart yüksekliğini yaklaşık %40 artır. */
body.psych-compact-layout .psy-app{
 --psy-grid-row:clamp(132px,calc((100dvh - 82px)/4.8),184px)!important;
}
body.psych-compact-layout .psy-app .psy-calendar-scroll{scroll-snap-type:y proximity!important;}
body.psych-compact-layout .psy-app .psy-calendar tbody tr.psy-day-first{scroll-snap-align:start!important;}
body.psych-compact-layout .psy-app .psy-calendar tbody tr,
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{
 height:var(--psy-grid-row)!important;
 min-height:var(--psy-grid-row)!important;
}
body.psych-compact-layout .psy-app .psy-calendar td.psy-slot-cell{padding:4px!important;}
body.psych-compact-layout .psy-app .psy-cell-wrap{height:calc(var(--psy-grid-row) - 8px)!important;}
body.psych-compact-layout .psy-app .psy-cell{padding:7px 8px 19px!important;gap:4px!important;justify-content:flex-start!important;}
body.psych-compact-layout .psy-app .psy-cell .psy-status-mini{font-size:12px!important;line-height:1.1!important;font-weight:900!important;}
body.psych-compact-layout .psy-app .psy-cell .psy-client-name{
 font-size:15px!important;line-height:1.12!important;font-weight:900!important;
 display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;
 white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;
}
body.psych-compact-layout .psy-app .psy-cell .psy-client-phone{font-size:13.4px!important;line-height:1.12!important;font-weight:780!important;}
body.psych-compact-layout .psy-app .psy-cell-flags{gap:4px!important;flex-wrap:wrap!important;min-height:18px!important;}
body.psych-compact-layout .psy-app .psy-cell-flags em{font-size:11px!important;line-height:1.1!important;padding:2px 5px!important;font-weight:850!important;}
body.psych-compact-layout .psy-app .psy-cell-whatsapp{left:6px!important;bottom:5px!important;width:28px!important;height:18px!important;font-size:10px!important;}
body.psych-compact-layout .psy-app .psy-device-mini{right:6px!important;bottom:5px!important;font-size:10.5px!important;padding:2px 5px!important;}
body.psych-compact-layout .psy-app .psy-cell .psy-group-tag,
body.psych-compact-layout .psy-app .psy-cell-wrap:has(.psy-cell-whatsapp) .psy-group-tag{left:38px!important;bottom:5px!important;max-width:70px!important;font-size:10px!important;padding:2px 5px!important;}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:first-child{font-size:14px!important;line-height:1.15!important;}
body.psych-compact-layout .psy-app .psy-calendar tbody td.psy-day div:last-child{font-size:14px!important;line-height:1.12!important;margin-top:7px!important;}
body.psych-compact-layout .psy-app .psy-calendar thead th{font-size:13px!important;padding:10px 4px!important;}

/* Kısa ekranlarda bile önce okunabilirlik öncelikli olsun. */
@media (max-height: 700px){
 body.psych-compact-layout .psy-app{--psy-grid-row:clamp(120px,calc((100dvh - 82px)/5.1),166px)!important;}
}
@media (max-width: 1180px){
 body.psych-compact-layout .main-area{grid-template-columns:minmax(0,1fr) 132px!important;}
 body.psych-compact-layout #psy-header-dock .psy-heading h1{font-size:17px!important;}
 body.psych-compact-layout .psy-app .psy-cell .psy-client-name{font-size:14px!important;}
}
/* ALG v0.9.15 — first row always fully below sticky hour header; right rail scroll is non-overlapping */
body.psych-compact-layout .psy-app .psy-calendar-scroll{
 scroll-snap-type:y mandatory!important;
 scroll-padding-top:40px!important;
}
body.psych-compact-layout .psy-app .psy-calendar tbody tr.psy-day-first{
 scroll-snap-align:start!important;
 scroll-snap-stop:always!important;
}
body.psych-compact-layout #psy-header-dock .psy-top-compact{
 position:static!important;top:auto!important;z-index:auto!important;
}
