:root { --abc-primary: #0f5c63; --abc-accent: #e07a2f; }
body { background: #f3f6f8; min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; max-width: 1500px; }
.app-navbar { background: var(--abc-primary); }
.app-navbar .nav-link.active { background: rgba(255,255,255,.15); border-radius: .375rem; }
.btn-primary { --bs-btn-bg: var(--abc-primary); --bs-btn-border-color: var(--abc-primary); --bs-btn-hover-bg: #0b474d; --bs-btn-hover-border-color: #0b474d; --bs-btn-active-bg: #0b474d; }
.text-abc { color: var(--abc-primary); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; font-weight: 600; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; color: var(--abc-primary); line-height: 1; }
.stat-card .stat-label { color: #6c757d; font-size: .85rem; }
.stat-card i { font-size: 2rem; color: var(--abc-accent); opacity: .85; }
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { color: var(--abc-primary); }
.section-tabs .nav-link { font-size: .9rem; padding: .45rem .7rem; }
.section-tabs .nav-link .sec-letter { display: inline-block; width: 1.4rem; height: 1.4rem; line-height: 1.4rem; text-align: center; border-radius: 50%; background: #e9ecef; font-weight: 700; font-size: .75rem; margin-right: .25rem; }
.section-tabs .nav-link.active .sec-letter { background: var(--abc-primary); color: #fff; }
fieldset:disabled .form-control, fieldset:disabled .form-select { background-color: #f8f9fa; }
.form-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dee2e6; padding: .75rem 0; margin-top: 1rem; z-index: 5; }
textarea.remarks { min-height: 320px; font-family: inherit; resize: vertical; }
textarea.auto-grow { overflow-y: hidden; }
.calendar { table-layout: fixed; }
.calendar td { height: 92px; vertical-align: top; font-size: .8rem; }
.calendar td.other-month { background: #f8f9fa; color: #adb5bd; }
.calendar td.today { outline: 2px solid var(--abc-accent); outline-offset: -2px; }
.calendar td a.day-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.slot-pill { display: block; border-radius: .25rem; padding: 0 .3rem; margin-top: 2px; font-size: .72rem; }
.queue-no { font-size: 1.6rem; font-weight: 700; color: var(--abc-primary); }
.table td, .table th { vertical-align: middle; }
.doc-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: .25rem; background: #e9ecef; }
.page-meter { height: .6rem; }
.billing-hidden-note { color: #6c757d; font-style: italic; }
/* Printable A1 10 form */
.a110 { overflow-wrap: anywhere; word-break: break-word; background: #fff; max-width: 900px; margin: 0 auto; padding: 24px 32px; font-size: 13px; color: #000; }
.a110 h4 { font-size: 16px; letter-spacing: .5px; }
.a110 .sec { border: 1px solid #000; margin-top: 8px; }
.a110 .sec-h { background: #e9ecef; font-weight: 700; padding: 2px 6px; border-bottom: 1px solid #000; }
.a110 .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.a110 .cell { padding: 3px 6px; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; min-height: 34px; }
.a110 .cell small { display: block; color: #555; font-size: 10px; text-transform: uppercase; }
.a110 .span2 { grid-column: span 2; } .a110 .span4 { grid-column: span 4; }
.a110 table { width: 100%; border-collapse: collapse; }
.a110 table td, .a110 table th { border: 1px solid #000; padding: 3px 6px; }
.a110 .chk::before { content: "☐ "; } .a110 .chk.on::before { content: "☒ "; }
@media print {
  .no-print, .navbar, footer { display: none !important; }
  body { background: #fff; }
  .app-main { padding: 0 !important; max-width: none; }
  .a110 { padding: 0; max-width: none; }
}
/* ---- Real-time updates ---- */
.live-pill { font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: #fff; background: rgba(255,255,255,.15); border-radius: 1rem; padding: .15rem .55rem; }
.live-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #3ddc84; margin-right: .2rem; animation: livepulse 2s infinite; }
.live-pill.offline .live-dot { background: #ffc107; animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 70% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.live-flash { animation: liveflash 1.2s ease-out; }
@keyframes liveflash { from { background-color: #fff3cd; } to { background-color: transparent; } }
.live-updated { font-size: .75rem; color: #6c757d; }
.now-serving { font-size: 2.6rem; font-weight: 800; color: var(--abc-primary); line-height: 1; }
.feed-item { border-left: 3px solid transparent; }
.feed-item.unread { border-left-color: var(--abc-accent); background: #fffaf3; }
.welcome { background: linear-gradient(120deg, var(--abc-primary), #187c84); color: #fff; border-radius: .5rem; }
.welcome .text-muted, .welcome .live-updated { color: rgba(255,255,255,.8) !important; }
.toast { --bs-toast-bg: #fff; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2); }
