:root{--navy:#111a2d;--ink:#172033;--muted:#738095;--line:#e5e9f0;--bg:#f3f5f8;--green:#199b6a;--orange:#ffb453;--blue:#4269db}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid var(--blue)}button{cursor:pointer}button,.btn{border:1px solid var(--line);border-radius:8px;background:white;padding:11px 16px;color:var(--ink);display:inline-flex;gap:8px;align-items:center;font-weight:600}button:hover,.btn:hover{background:#eef1f7}.primary{background:var(--orange);border-color:var(--orange)}.primary:hover{background:#ffc777}.danger{color:#bd3e43;background:#fff3f3}.topbar{height:78px;background:var(--navy);color:white;display:flex;align-items:center;gap:32px;padding:0 28px;position:fixed;top:0;left:0;right:0;width:100%;z-index:50}.brand{width:218px;display:flex;align-items:center;gap:11px;font-size:23px;font-weight:750;letter-spacing:-1px}.mark{background:var(--orange);color:var(--navy);width:39px;height:39px;border-radius:11px;display:grid;place-items:center}.brand small{display:block;font-size:10px;color:#aab6ce;letter-spacing:2px;font-weight:500}.cinema-select{background:#253047;color:white;border:1px solid #3e4a62;padding:11px 16px;border-radius:8px;min-width:270px}.top-right{margin-left:auto;display:flex;align-items:center;gap:20px}.avatar{background:#34415b;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-size:13px}.sidebar{position:fixed;top:78px;bottom:0;width:248px;background:white;border-right:1px solid var(--line);padding:23px 15px;overflow:auto}.nav-label{font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:700;margin:24px 14px 9px}.nav-label:first-child{margin-top:0}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 15px;border-radius:8px;margin:3px 0;font-weight:600;color:#526079}.nav-item i{width:19px}.nav-item.active{background:#fff2df;color:#8f5614}.nav-item:hover{background:#f4f6fa}.sub{padding-left:47px;font-size:14px;font-weight:400}.sidebar-bottom{border-top:1px solid var(--line);margin-top:25px;padding:18px 15px;color:var(--muted);font-size:12px}main{margin-left:248px;padding:30px 36px 50px;max-width:1800px}.breadcrumb{color:var(--muted);font-size:12px;margin-bottom:18px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}h1{font-size:29px;letter-spacing:-.8px;margin:0 0 8px}h2{font-size:18px;margin:0}h3{font-size:16px;margin:0}p{line-height:1.6}.muted,small{color:var(--muted)}.page-head p{margin:0;color:var(--muted)}.actions{display:flex;gap:9px;align-items:center}.period{display:flex;background:white;border:1px solid var(--line);padding:4px;border-radius:9px;gap:3px}.period button{border:0;padding:8px 13px;background:transparent;font-size:13px}.period button.active{background:var(--navy);color:white}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.kpi-top{display:flex;align-items:center;justify-content:space-between;color:#5f6c80;font-size:13px}.icon-box{background:#f0f3fa;color:var(--blue);height:35px;width:35px;border-radius:9px;display:grid;place-items:center}.kpi-value{font-size:29px;font-weight:700;letter-spacing:-1px;margin:12px 0 9px}.trend{color:var(--green);font-size:12px}.trend span{color:var(--muted);margin-left:5px}.grid-2{display:grid;grid-template-columns:1.7fr 1fr;gap:22px;margin-bottom:24px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.card-head a{font-size:13px;color:var(--blue);font-weight:600}.chart{height:215px;display:flex;gap:18px;align-items:end;border-bottom:1px solid var(--line);padding:0 16px 0;margin-top:25px;background:repeating-linear-gradient(to top,transparent 0,transparent 52px,#eff2f6 53px,#eff2f6 54px)}.bar-col{height:100%;flex:1;display:flex;align-items:end;justify-content:center;gap:5px;position:relative}.bar{width:17px;background:var(--blue);border-radius:4px 4px 0 0}.bar.secondary{background:#ffbf6b}.chart-labels{display:flex;justify-content:space-around;font-size:11px;color:var(--muted);margin:12px 0}.legend{display:flex;gap:20px;font-size:12px;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:6px}.dot.orange{background:var(--orange)}.goal{margin:26px 0}.goal-line{display:flex;justify-content:space-between;margin-bottom:10px;font-size:13px}.progress{height:8px;border-radius:8px;background:#edf0f5;overflow:hidden}.progress span{display:block;background:var(--blue);height:100%;border-radius:8px}.note{background:#fff6e8;border:1px solid #ffe3bb;padding:15px;border-radius:9px;font-size:13px;line-height:1.6}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:22px}.search{position:relative;flex:1;min-width:200px}.search i{position:absolute;left:14px;top:14px;color:var(--muted)}input,select,textarea{padding:11px 13px;border:1px solid #dfe4ed;border-radius:7px;background:white;color:var(--ink);max-width:100%}.search input{width:100%;padding-left:40px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;font-size:11px;letter-spacing:.5px;color:var(--muted);padding:14px 15px;background:#f8f9fb;border-bottom:1px solid var(--line)}td{padding:17px 15px;border-bottom:1px solid var(--line);font-size:14px}td small{display:block;margin-top:6px;font-size:12px}td strong{font-weight:600}.badge{display:inline-block;border-radius:5px;padding:5px 8px;font-size:11px;background:#edf1fc;color:#4261b7;margin:2px}.badge.green{background:#e6f5ee;color:#167c57}.badge.orange{background:#fff1db;color:#9a6117}.badge.red{background:#fdecee;color:#b7424c}.group-row td{background:#f4f6fa;font-size:13px;font-weight:650;padding:13px 15px}.row-actions{display:flex;gap:7px}.row-actions button,.row-actions a{padding:8px 10px;font-size:12px}.footer-line{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding-top:20px}.poster{width:42px;height:56px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:white;font-size:16px;background:linear-gradient(140deg,#203557,#cf9a55);margin-right:12px;vertical-align:middle}.film-name{display:inline-block;vertical-align:middle}.film-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.film-card{display:flex;gap:16px}.film-art{height:148px;width:100px;flex-shrink:0;border-radius:8px;color:white;display:flex;align-items:end;padding:12px;font-size:20px;font-weight:750;background:linear-gradient(155deg,#182b51,#5a668d,#efbd86)}.film-info h3{margin:8px 0 10px}.film-info p{font-size:12px;color:var(--muted)}.calendar-layout{display:grid;grid-template-columns:minmax(500px,1fr) 250px;gap:20px}.week{display:grid;grid-template-columns:55px repeat(7,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}.day-head{padding:15px 4px;text-align:center;font-size:12px;border-bottom:1px solid var(--line);background:#f8f9fb}.day-head strong{display:block;font-size:20px;margin-top:5px}.slot{height:74px;border-bottom:1px solid #edf0f5;border-right:1px solid #edf0f5;padding:4px;min-width:0;font-size:11px}.slot.time{color:var(--muted);text-align:center;padding-top:12px}.slot.dragover{background:#fff1dc}.event{width:100%;height:100%;padding:7px;border-radius:5px;background:#ecf0fe;border:0;border-left:3px solid var(--blue);color:#324c94;display:block;text-align:left;font-size:10px;line-height:1.5;overflow:hidden}.event.orange{background:#fff1dc;border-left-color:var(--orange);color:#8b5b19}.draggable-film{border:1px solid var(--line);padding:14px;border-radius:8px;margin:12px 0;cursor:grab;background:white}.draggable-film strong{display:block;font-size:13px;margin-bottom:7px}.draggable-film small{font-size:11px}.calendar-help{font-size:12px;line-height:1.7;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.field input,.field select,.field textarea{width:100%}.field.full{grid-column:1/-1}.field small{display:block;margin-top:7px;line-height:1.5}.form-section{margin-bottom:22px}.form-section h2{margin-bottom:23px}.check-row{display:flex;gap:15px;flex-wrap:wrap;margin:14px 0;align-items:center}.check-row label{background:#f8f9fb;border:1px solid var(--line);padding:11px 15px;border-radius:7px;font-size:13px}.check-row input{margin-right:7px}.seat-layout{display:flex;flex-direction:column;align-items:center;gap:9px;padding:28px;background:#f8f9fb;border-radius:9px}.screen{width:75%;text-align:center;border-top:4px solid #cbd3e3;padding:12px;color:var(--muted);font-size:11px;letter-spacing:3px;margin-bottom:20px}.seat-row{display:flex;gap:7px;align-items:center}.seat-row span{width:22px;color:var(--muted);font-size:12px}.seat{padding:0;width:29px;height:29px;border-radius:6px 6px 3px 3px;background:#dae3fa;border-color:#c5d3f1;color:#5e79ac;font-size:10px;justify-content:center}.seat:nth-child(7){margin-right:22px}.seat.selected{background:var(--orange);border-color:#e99a35;color:#725019}.seat.blocked{background:#e0e2e6;color:#8a909c}.modal-backdrop{position:fixed;inset:0;background:#111a2d99;z-index:80;display:grid;place-items:center;padding:20px}.modal-box{background:white;border-radius:14px;padding:28px;width:620px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 25px 100px #0003}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-foot{display:flex;justify-content:end;gap:10px;margin-top:25px}.toast{position:fixed;bottom:28px;right:30px;background:var(--navy);color:white;padding:17px 24px;border-radius:9px;z-index:100;box-shadow:0 8px 30px #0002}.mobile-toggle{display:none}.empty{padding:45px;text-align:center;color:var(--muted)}.list-item{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:16px 0}.list-item:last-child{border:0}.list-item .right{margin-left:auto}.big-number{font-size:25px;font-weight:700}.welcome{display:flex;align-items:center;gap:10px}.live{width:7px;height:7px;background:var(--green);border-radius:50%}.version{font-size:11px;color:#aab6ce}.hall-summary{display:flex;gap:25px;margin:22px 0}.hall-summary strong{display:block;font-size:22px;margin-bottom:5px}.hidden{display:none!important}@media(min-width:1600px){main{padding:36px 48px}.chart{height:250px}}@media(max-width:1150px){.sidebar{width:210px}main{margin-left:210px;padding:25px}.brand{width:180px}.grid-2{grid-template-columns:1fr}.calendar-layout{grid-template-columns:1fr}.film-grid{grid-template-columns:1fr 1fr}.kpis{gap:12px}.card{padding:18px}.kpi-value{font-size:24px}}@media(max-width:760px){.topbar{padding:0 16px;gap:15px;height:70px}.brand{width:auto;font-size:18px}.brand small,.top-right .user-name,.version{display:none}.cinema-select{min-width:0;width:190px;font-size:12px}.top-right{gap:8px}.sidebar{display:none;top:70px;z-index:30;box-shadow:10px 0 25px #0002}.sidebar.open{display:block}.mobile-toggle{display:inline-flex;padding:8px;background:#253047;color:white;border:0}main{margin-left:0;padding:22px 16px}.page-head{align-items:start;flex-direction:column}h1{font-size:25px}.kpis{grid-template-columns:1fr 1fr}.film-grid,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.calendar-layout{display:block}.week{min-width:700px}.calendar-scroll{overflow:auto}.actions{flex-wrap:wrap}.chart{gap:8px}.bar{width:12px}.seat-layout{padding:18px 5px}.seat{width:22px;height:25px}.seat-row{gap:4px}.topbar .avatar{display:none}}
.grid-2 > *, .kpis > *, .film-grid > * { min-width: 0; } @media(max-width:760px){ .topbar .brand {flex-shrink:0} .topbar .cinema-select {width:165px} .top-right{display:none} .page-head .actions{max-width:100%} .card-head{gap:10px;flex-wrap:wrap} .note{overflow-wrap:anywhere} }
@media(max-width:760px){ .chart{gap:5px;padding:0 4px} .bar-col{min-width:0;gap:2px} .bar{width:8px;flex-shrink:1} .chart-labels{font-size:9px} }
.bar-col{min-width:0}.chart .bar{flex-shrink:1} .chart{overflow:hidden}
.five-minute-week{grid-template-rows:78px repeat(132,8px);overflow:visible;isolation:isolate}.five-minute-week .slot{height:8px;padding:0;border-bottom:1px solid #f7f8fb}.five-minute-week .slot.time{position:relative;border:0}.five-minute-week .time span{position:absolute;top:2px;left:5px;font-size:11px;background:white;z-index:2}.five-minute-week .hour-start{border-top:1px solid #dce2ed}.five-minute-week .half-hour{border-top:1px solid #eaf0f6}.five-minute-week .drop-slot{cursor:crosshair}.five-minute-week .drop-slot:hover,.five-minute-week .drop-slot.dragover{background:#ffd8a4;box-shadow:inset 0 0 0 1px #eea13e}.five-minute-week .calendar-event{z-index:3;height:calc(100% - 4px);align-self:start;margin-top:2px;padding:7px 5px;font-size:10px;line-height:1.6;white-space:normal;overflow:hidden}.calendar-layout>*,.calendar-scroll{min-width:0}.five-minute-week .day-head{height:78px}

/* Danger states must override the generic button hover background. */
button.danger, .btn.danger, a.danger, .btn.btn-outline-danger {
  color: #bd3e43;
  background-color: #fff3f3;
  border-color: #efc5c7;
}
button.danger:hover, .btn.danger:hover, a.danger:hover,
button.danger:focus-visible, .btn.danger:focus-visible, a.danger:focus-visible,
.btn.btn-outline-danger:hover, .btn.btn-outline-danger:focus-visible {
  color: #fff;
  background-color: #bd3e43;
  border-color: #bd3e43;
}
button.danger:active, .btn.danger:active, a.danger:active,
.btn.btn-outline-danger:active {
  color: #fff;
  background-color: #a12f34;
  border-color: #a12f34;
}
.btn.btn-danger {
  color: #fff;
  background-color: #bd3e43;
  border-color: #bd3e43;
}
.btn.btn-danger:hover, .btn.btn-danger:focus-visible, .btn.btn-danger:active {
  color: #fff;
  background-color: #a12f34;
  border-color: #a12f34;
}

/* Navigation is fixed even when app-ui.css is not included by PHP. */
body:has(.topbar){padding-top:78px}
.sidebar{left:0;height:calc(100dvh - 78px);overscroll-behavior:contain;z-index:40}
@media(max-width:760px){body:has(.topbar){padding-top:70px}.sidebar{height:calc(100dvh - 70px);z-index:45}}


/* Disabled form controls: HTML disabled attribute remains authoritative. */
input:disabled,
select:disabled,
textarea:disabled,
.form-control:disabled,
.form-select:disabled {
  background-color: #e9edf2;
  color: #8791a1;
  border-color: #d8dee7;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #8791a1;
}
input:disabled::placeholder,
textarea:disabled::placeholder {
  color: #9aa3b1;
  opacity: 1;
}
