.spds-portal-page .entry-title,.spds-portal-page .page-title{color:#173b70;font-weight:750;letter-spacing:-.02em}
.spds-portal-page .entry-content{max-width:none!important}
.spds-portal-page .entry-content > .spds-card{margin-top:34px}
.spds-portal-page .edit-link,.spds-portal-page .post-edit-link{display:none!important}
.spds-card{box-sizing:border-box;max-width:620px;margin:36px auto;padding:34px;border:1px solid #d9e2ef;border-radius:22px;background:#fff;box-shadow:0 16px 44px rgba(20,44,80,.09);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17324f}
.spds-card h2{margin:8px 0 12px;color:#173b70;font-size:clamp(1.55rem,3vw,2rem);line-height:1.2;letter-spacing:-.025em}
.spds-card p{line-height:1.65}
.spds-kicker{font-size:.76rem;font-weight:800;letter-spacing:.15em;color:#7352c7;text-transform:uppercase}
.spds-mark{display:flex;align-items:center;justify-content:center;width:54px;height:54px;margin-bottom:20px;border-radius:16px;background:linear-gradient(145deg,#173b70,#315e9c);color:white;font-weight:800;letter-spacing:.04em;box-shadow:0 8px 20px rgba(23,59,112,.2)}
.spds-landing{position:relative;overflow:hidden}
.spds-landing:before{content:"";position:absolute;top:0;left:0;width:100%;height:5px;background:linear-gradient(90deg,#173b70 0%,#7352c7 100%)}
.spds-hint{display:flex;align-items:center;gap:12px;margin-top:24px;padding:14px 16px;border-radius:12px;background:#f4f6fb;color:#40536d;font-size:.92rem}
.spds-hint-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border-radius:10px;background:#e8e5fa;color:#6344b2;font-size:1.25rem;font-weight:800}
.spds-card label{display:block;margin:18px 0;font-weight:650}
.spds-card input{display:block;box-sizing:border-box;width:100%;margin-top:7px;padding:13px 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:1rem;background:#fff;color:#17324f}
.spds-card input:focus{outline:3px solid rgba(115,82,199,.18);border-color:#7352c7}
.spds-button{display:block;width:100%;padding:14px 16px;border:0;border-radius:11px;background:#173b70;color:#fff;font-size:1rem;font-weight:750;cursor:pointer;transition:background .15s ease,transform .15s ease}
.spds-button:hover{background:#234d8b;color:#fff;transform:translateY(-1px)}
.spds-button-warn{background:#9a3412}.spds-button-warn:hover{background:#7c2d12}
.spds-error{padding:12px 14px;border-radius:10px;background:#fff1f2;color:#9f1239}
.spds-status{padding:12px 14px;border-radius:10px;background:#ecfdf5;color:#065f46}
.spds-admin .spds-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
.spds-admin .spds-stat,.spds-panel{padding:20px;border:1px solid #dbe3ee;border-radius:12px;background:#fff}
.spds-admin .spds-stat span{display:block;color:#5b6575}.spds-admin .spds-stat strong{display:block;margin-top:10px;font-size:28px;color:#173b70}.spds-panel{margin:20px 0}.spds-panel h2{margin-top:0}
@media(max-width:900px){.spds-admin .spds-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.spds-card{margin:20px auto;padding:24px 20px;border-radius:17px}.spds-admin .spds-stats{grid-template-columns:1fr}.spds-portal-page .entry-content{padding-inline:12px}}

.spds-account-links{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-top:16px}
.spds-link-button{display:inline-block;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;color:#173b70;text-decoration:none;font-weight:600}
.spds-link-button:hover{background:#f1f5f9}
.spds-subform{margin-top:18px;padding:18px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc}
.spds-subform h3{margin:0 0 8px;color:#173b70}
.spds-subform label{display:block;margin:12px 0;font-weight:600}
.spds-subform input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #cbd5e1;border-radius:8px}
.spds-success{padding:12px;border-radius:8px;background:#ecfdf5;color:#047857}

/* v0.1.5: discourage saved credentials/autofill on SPDS forms */
.spds-login-form input[name="matric_no"],
.spds-login-form input[name="pin"],
.spds-subform input{ -webkit-text-security: none; }


/* SPDS-KUO v0.1.6 — official admin dashboard */
.spds-dashboard{max-width:1500px;color:#172b4d}
.spds-dashboard .spds-dash-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:22px 0 20px;padding:28px 30px;border-radius:16px;background:linear-gradient(120deg,#102f5f 0%,#1b477f 62%,#2867a4 100%);color:#fff;box-shadow:0 10px 26px rgba(16,47,95,.15)}
.spds-dashboard .spds-dash-eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#c7dcff;margin-bottom:8px}
.spds-dashboard .spds-dash-hero h1{font-size:28px;line-height:1.2;margin:0 0 8px;color:#fff;font-weight:750}
.spds-dashboard .spds-dash-hero p{font-size:13px;color:#e0ebff;margin:0}
.spds-dashboard .spds-dash-date{min-width:200px;padding-left:24px;border-left:1px solid rgba(255,255,255,.25);display:flex;flex-direction:column;gap:5px}
.spds-dashboard .spds-dash-date span{font-size:11px;color:#d4e4ff}
.spds-dashboard .spds-dash-date strong{font-size:17px;color:#fff}
.spds-dashboard .spds-live-dot:before{content:"";display:inline-block;width:7px;height:7px;background:#5ee0b0;border-radius:50%;margin-right:6px}
.spds-dashboard .spds-kitchen-strip{display:flex;align-items:center;gap:14px;padding:15px 18px;background:#fff;border:1px solid #dce5f1;border-radius:12px;margin-bottom:25px}
.spds-dashboard .spds-kitchen-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#eaf2ff;color:#1d4f91;font-size:25px}
.spds-dashboard .spds-kitchen-strip>div:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}
.spds-dashboard .spds-kitchen-strip>div:nth-child(2) strong{font-size:14px}
.spds-dashboard .spds-kitchen-strip>div:nth-child(2) span{font-size:12px;color:#6b7c93}
.spds-dashboard .spds-kitchen-state{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;margin-right:10px}
.spds-dashboard .spds-kitchen-state i{width:8px;height:8px;border-radius:50%;background:#12a875}
.spds-dashboard .spds-kitchen-state.is-closed{color:#a34b35}
.spds-dashboard .spds-kitchen-state.is-closed i{background:#e07b55}
.spds-dashboard .spds-dash-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}
.spds-dashboard .spds-dash-section-title h2,.spds-dashboard .spds-panel-heading h2{font-size:16px;margin:0 0 4px;color:#172b4d}
.spds-dashboard .spds-dash-section-title p,.spds-dashboard .spds-panel-heading p{font-size:12px;color:#728198;margin:0}
.spds-dashboard .spds-month-pill,.spds-dashboard .spds-mini-label{background:#edf3fb;color:#315b8b;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:700}
.spds-dashboard .spds-stats-official{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
.spds-dashboard .spds-stat-card{background:#fff;border:1px solid #e0e7f0;border-radius:13px;padding:17px 18px;box-shadow:0 2px 7px rgba(21,47,84,.025);min-width:0}
.spds-dashboard .spds-stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}
.spds-dashboard .spds-stat-icon{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:10px}
.spds-dashboard .spds-stat-icon .dashicons{font-size:20px;width:20px;height:20px}
.spds-dashboard .spds-stat-icon.blue{background:#e9f1ff;color:#3164ae}.spds-dashboard .spds-stat-icon.green{background:#e4f8ef;color:#14845c}.spds-dashboard .spds-stat-icon.purple{background:#f0eaff;color:#7551b7}.spds-dashboard .spds-stat-icon.orange{background:#fff0df;color:#b96a20}.spds-dashboard .spds-stat-icon.teal{background:#def7f5;color:#168c8a}.spds-dashboard .spds-stat-icon.red{background:#ffebeb;color:#c34e58}
.spds-dashboard .spds-stat-hint{font-size:10px;color:#8795a8;text-align:right}
.spds-dashboard .spds-stat-label{display:block;font-size:12px;color:#64748b;margin-bottom:5px}
.spds-dashboard .spds-stat-value{font-size:27px;line-height:1.25;color:#173b70;font-weight:750;letter-spacing:-.5px}
.spds-dashboard .spds-dash-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:18px;margin-bottom:18px}
.spds-dashboard .spds-panel{background:#fff;border:1px solid #e0e7f0;border-radius:13px;padding:20px;box-shadow:0 2px 7px rgba(21,47,84,.025);min-width:0}
.spds-dashboard .spds-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.spds-dashboard .spds-panel-heading>a{font-size:12px;text-decoration:none}
.spds-dashboard .spds-bar-chart{height:190px;display:flex;align-items:stretch;gap:12px;padding:8px 4px 0}
.spds-dashboard .spds-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.spds-dashboard .spds-bar-col>strong{font-size:11px;color:#58708e}
.spds-dashboard .spds-bar-track{height:135px;width:100%;max-width:38px;display:flex;align-items:flex-end;background:#f1f5fb;border-radius:7px 7px 3px 3px;overflow:hidden;margin-top:auto}
.spds-dashboard .spds-bar-track span{display:block;width:100%;min-height:4px;background:linear-gradient(180deg,#5a8de0,#24518c);border-radius:7px 7px 2px 2px}
.spds-dashboard .spds-bar-col small{font-size:10px;color:#78889c}
.spds-dashboard .spds-chart-foot{border-top:1px solid #edf1f6;padding-top:13px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#74839a}
.spds-dashboard .spds-chart-foot span{display:flex;align-items:center;gap:7px}
.spds-dashboard .spds-chart-foot i{display:inline-block;width:8px;height:8px;border-radius:2px;background:#3164ae}
.spds-dashboard .spds-chart-foot strong{color:#315b8b}
.spds-dashboard .spds-quick-panel .spds-panel-heading{margin-bottom:10px}
.spds-dashboard .spds-quick-link{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #eef2f7;text-decoration:none}
.spds-dashboard .spds-quick-link:last-of-type{border-bottom:0}
.spds-dashboard .spds-quick-icon{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.spds-dashboard .spds-quick-icon.blue{background:#eaf2ff;color:#3164ae}.spds-dashboard .spds-quick-icon.purple{background:#f0eaff;color:#7551b7}.spds-dashboard .spds-quick-icon.green{background:#e4f8ef;color:#14845c}
.spds-dashboard .spds-quick-link>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}
.spds-dashboard .spds-quick-link strong{font-size:12px;color:#243b5a}
.spds-dashboard .spds-quick-link small{font-size:11px;color:#8391a4}
.spds-dashboard .spds-quick-link>b{font-size:23px;font-weight:400;color:#8ba0bb}
.spds-dashboard .spds-today-note{display:flex;align-items:center;gap:9px;padding:12px;background:#f4f8fd;border-radius:9px;margin-top:12px;color:#315b8b}
.spds-dashboard .spds-today-note>div{display:flex;flex-direction:column;gap:3px}
.spds-dashboard .spds-today-note strong{font-size:12px}.spds-dashboard .spds-today-note small{font-size:10px;color:#75879c}
.spds-dashboard .spds-table-wrap{overflow-x:auto}
.spds-dashboard .spds-recent-table{border:0}
.spds-dashboard .spds-recent-table th{font-size:11px;color:#6b7c93;font-weight:600;border-bottom:1px solid #e9eef5}
.spds-dashboard .spds-recent-table td{font-size:11px;vertical-align:middle;padding-top:12px;padding-bottom:12px}
.spds-dashboard .spds-recent-table td:first-child strong,.spds-dashboard .spds-recent-table td:first-child small{display:block}
.spds-dashboard .spds-recent-table td:first-child strong{font-size:11px;color:#243b5a}
.spds-dashboard .spds-recent-table td:first-child small{margin-top:4px;color:#8795a8}
.spds-dashboard .spds-status-pill{display:inline-block;border-radius:20px;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.spds-dashboard .spds-status-pill.active{background:#fff2dc;color:#a86713}.spds-dashboard .spds-status-pill.completed{background:#e3f8ed;color:#16764f}.spds-dashboard .spds-status-pill.other{background:#edf1f6;color:#64748b}
.spds-dashboard .spds-empty-state{font-size:12px;color:#8a98aa;padding:24px!important;text-align:center}
.spds-dashboard .spds-frequent-list{display:flex;flex-direction:column}
.spds-dashboard .spds-frequent-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #eef2f7}
.spds-dashboard .spds-frequent-row:last-child{border-bottom:0}
.spds-dashboard .spds-rank{width:20px;text-align:center;font-size:11px;font-weight:700;color:#7c8da4}
.spds-dashboard .spds-avatar{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eaf2ff;color:#24518c;font-weight:700;font-size:12px;flex:none}
.spds-dashboard .spds-frequent-name{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.spds-dashboard .spds-frequent-name strong{font-size:11px;color:#243b5a;overflow-wrap:anywhere}
.spds-dashboard .spds-frequent-name small{font-size:10px;color:#8795a8}
.spds-dashboard .spds-frequent-count{font-size:13px;font-weight:700;color:#24518c;white-space:nowrap}
.spds-dashboard .spds-frequent-count small{font-size:10px;font-weight:400;color:#8795a8}
.spds-dashboard .spds-dash-footer{display:flex;align-items:center;gap:7px;padding:16px 4px;color:#8492a5;font-size:11px}
.spds-dashboard .spds-dash-footer span:last-child{margin-left:auto}
@media(max-width:1100px){.spds-dashboard .spds-stats-official{grid-template-columns:repeat(2,minmax(0,1fr))}.spds-dashboard .spds-dash-grid{grid-template-columns:1fr}}
@media(max-width:600px){.spds-dashboard .spds-dash-hero{align-items:flex-start;flex-direction:column;padding:22px}.spds-dashboard .spds-dash-date{border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:14px 0 0;width:100%}.spds-dashboard .spds-kitchen-strip{align-items:flex-start;flex-wrap:wrap}.spds-dashboard .spds-kitchen-state{margin-left:55px}.spds-dashboard .spds-stats-official{grid-template-columns:1fr 1fr}.spds-dashboard .spds-stat-value{font-size:22px}.spds-dashboard .spds-panel{padding:14px}}

/* SPDS-KUO v0.1.7 — live elapsed kitchen-use timer */
.spds-card .spds-live-duration{display:flex;flex-direction:column;align-items:center;gap:7px;margin:18px 0;padding:18px 14px;background:#f0f6ff;border:1px solid #d7e5fb;border-radius:12px;text-align:center}
.spds-card .spds-live-duration-label{font-size:12px;font-weight:700;color:#244c82}
.spds-card .spds-live-duration-value{font-size:34px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:1px;color:#153b70}
.spds-card .spds-live-duration small{font-size:11px;color:#71839b}

/* SPDS-KUO v0.1.8 — active kitchen occupancy count */
.spds-card .spds-occupancy{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px 15px;background:#f3f7fc;border:1px solid #dfe9f7;border-radius:12px}
.spds-card .spds-occupancy-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border-radius:10px;background:#e1ecfb;color:#1b477f;font-size:21px}
.spds-card .spds-occupancy-copy{display:flex;flex-direction:column;gap:3px;flex:1}
.spds-card .spds-occupancy-copy strong{font-size:17px;color:#173b70;line-height:1.2}
.spds-card .spds-occupancy-copy small{font-size:11px;color:#71839b}
.spds-card .spds-occupancy-capacity{font-size:10px;font-weight:700;color:#315b8b;background:#e6effb;border-radius:20px;padding:6px 8px}
