.attendance-public{background:#f3f5f7;margin:0}.attendance-shell{max-width:720px;margin:24px auto;padding:16px}.attendance-panel{max-width:720px;margin:20px auto;background:#fff;border:1px solid #e2e6ec;border-radius:18px;padding:24px}.attendance-panel h1{margin-top:0}.attendance-panel label{display:grid;gap:8px;margin:16px 0}.attendance-panel select{width:100%;padding:12px}.attendance-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.attendance-panel video{width:100%;max-height:480px;background:#111;border-radius:12px;transform:scaleX(-1);margin-bottom:16px}.attendance-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:16px 0}.attendance-filters label{display:grid;gap:6px}.attendance-reference{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:20px 0}.attendance-reference img{width:120px;height:140px;object-fit:cover;border-radius:12px}.attendance-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.attendance-day{border:1px solid #dce2e9;border-radius:10px;background:white;padding:8px;min-width:0;min-height:140px}.attendance-day h3{margin:0 0 8px}.attendance-event{border-top:1px solid #eee;padding:8px 0}.attendance-event img{width:100%;max-height:180px;object-fit:contain;border-radius:6px}.attendance-event time{display:block;font-size:12px}.attendance-event textarea{width:100%;min-height:60px;box-sizing:border-box}.attendance-event .btn{padding:6px;font-size:12px}.attendance-weekday{font-weight:600;text-align:center}.attendance-event p{overflow-wrap:anywhere}.attendance-event label{font-size:12px}.attendance-empty{visibility:hidden}@media(max-width:1000px){.attendance-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-weekday,.attendance-empty{display:none}}@media(max-width:520px){.attendance-calendar{grid-template-columns:minmax(0,1fr)}.attendance-panel{padding:16px}.attendance-actions .btn{flex:1}.attendance-filters>*{width:100%}}

.attendance-panel [hidden]{display:none!important}

/* Davomat: shared controls and calendar workspace. */
.attendance-admin{--att-border:#e5eaf2;--att-muted:#7a879b;max-width:1600px;margin:auto;padding-bottom:24px}
.attendance-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.attendance-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:1.7px;color:#8895a8;margin-bottom:8px}
.attendance-heading h2{font-size:27px;letter-spacing:-.7px;margin:0 0 8px;color:#102b4e}
.attendance-heading p{font-size:14px;color:var(--att-muted);margin:0;line-height:1.6}
.attendance-heading .btn{flex-shrink:0;gap:16px}
.attendance-device-admin{position:relative;border:1px solid #dce7f5;border-radius:16px;background:linear-gradient(110deg,#edf5ff,#f8fbff);padding:18px 22px;margin-bottom:20px}
.attendance-device-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.attendance-device-title h3{font-size:14px;margin:0;color:#244261}
.attendance-device-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#dfeeff;color:#377bd3;font-size:22px}
.attendance-badge{font-size:10px;font-weight:700;padding:5px 9px;border-radius:6px;letter-spacing:.2px}
.attendance-badge.is-connected{color:#15805f;background:#ddf4e9}.attendance-badge.is-pending{background:#fff0d4;color:#a76a0c}
.attendance-device-admin p{font-size:12px;line-height:1.6;margin:8px 0 0;color:#617791}
.attendance-device-admin details{margin-top:10px;font-size:12px}.attendance-device-admin summary{cursor:pointer;color:#326eb7;font-weight:600}.attendance-device-admin details .btn{margin-top:12px}
.attendance-filters{display:grid;grid-template-columns:minmax(160px,.65fr) minmax(200px,1.35fr) auto;gap:16px;background:#fff;border:1px solid var(--att-border);border-radius:16px;padding:20px 22px;margin:0 0 20px;align-items:end}
.attendance-filters label{font-size:12px;font-weight:650;color:#687a91;gap:9px;min-width:0}
.attendance-filters input,.attendance-filters select,.attendance-panel select{height:46px;background:#f8fafc;border:1px solid #dfe6ef;border-radius:10px;padding:0 14px;font-size:14px;width:100%;min-width:0;color:#183351;outline:none;color-scheme:light}
.attendance-filters input:focus,.attendance-filters select:focus,.attendance-panel select:focus{border-color:#5598f0;box-shadow:0 0 0 3px #0b6bff12;background:white}
.attendance-filters .btn{height:46px;padding:0 26px}
.attendance-reference{background:#fff;border:1px solid var(--att-border);padding:22px;border-radius:16px;margin:0 0 20px;gap:22px;flex-wrap:nowrap}
.attendance-reference img,.attendance-avatar{width:86px;height:100px;border-radius:14px;flex-shrink:0}
.attendance-avatar{display:grid;place-items:center;font-size:34px;font-weight:750;color:#5682b9;background:linear-gradient(145deg,#edf4ff,#dce9fb);border:1px solid #d8e5f5}
.attendance-person{flex:1;min-width:0}.attendance-person h3{font-size:20px;margin:0 0 5px;letter-spacing:-.4px}.attendance-person .eyebrow{margin-bottom:5px}.attendance-person p{font-size:12px;line-height:1.5;margin:0 0 12px}
.attendance-person form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.attendance-person .btn{min-height:36px;font-size:12px;padding:0 13px;border-color:#e1e8f1}
.attendance-file{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px dashed #a6c3e9;border-radius:8px;padding:0 12px;color:#3373c4;background:#f5f9ff;font-size:12px;font-weight:600;cursor:pointer;max-width:100%}
.attendance-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.attendance-file:focus-within{outline:3px solid #bdd6f9;outline-offset:2px}
.attendance-file-name{font-size:11px;color:#8592a4;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attendance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.attendance-summary>div{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--att-border);padding:18px 20px;border-radius:14px}
.attendance-summary strong{display:block;font-size:26px;line-height:1.1;letter-spacing:-.7px;color:#153453}.attendance-summary div div>span{display:block;font-size:11px;color:#7c8ba0;margin-top:6px}
.attendance-stat-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-size:23px;flex-shrink:0;font-weight:600}.attendance-stat-icon.in{background:#e9f8f1;color:#199c70}.attendance-stat-icon.out{background:#edf3ff;color:#427de0}.attendance-stat-icon.note{background:#fff3e4;color:#d69334}
.attendance-calendar-card{background:white;border:1px solid var(--att-border);border-radius:18px;padding:22px;overflow:hidden}
.attendance-month-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.attendance-month-heading h3{font-size:21px;margin:0;letter-spacing:-.4px}.attendance-month-heading .attendance-eyebrow{margin-bottom:6px}
.attendance-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:11px;color:#7b8ba0}.attendance-legend span{display:flex;align-items:center;gap:6px}.attendance-legend span:before{content:'';width:7px;height:7px;border-radius:50%;background:#27af83}.attendance-legend .legend-out:before{background:#5c8fee}.attendance-legend .legend-today:before{background:#ff9a45}
.attendance-calendar{gap:8px;align-items:stretch}.attendance-weekday{font-size:11px;font-weight:650;color:#95a0b1;padding:0 0 8px;text-transform:uppercase;letter-spacing:.7px}
.attendance-day{min-height:108px;padding:10px;background:#fbfcfe;border:1px solid #eaf0f6;border-radius:12px}.attendance-day h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;font-size:13px;color:#566b85}.attendance-day h3>span{width:26px;height:26px;display:grid;place-items:center;border-radius:8px}.attendance-day h3 small{font-size:9px;color:#de8b38;font-weight:600}
.attendance-day>.muted{display:block;font-size:10px;color:#a9b4c3;text-align:center;margin-top:22px}.attendance-day.is-today{border-color:#efc89e;background:#fffcf7;box-shadow:0 0 0 1px #fff2e2}.attendance-day.is-today h3>span{background:#fff0dc;color:#c87b23}.attendance-day.has-events{background:#fff}
.attendance-event{border:0;border-radius:8px;padding:9px;background:#f0faf5;margin:6px 0;font-size:11px;overflow:hidden}.attendance-event.event-out{background:#f0f5ff}.attendance-event>b{color:#258466;font-size:10px}.attendance-event.event-out>b{color:#4a79c1}.attendance-event time{font-size:12px;font-weight:700;color:#385570;display:block;margin:4px 0 8px;font-variant-numeric:tabular-nums}.attendance-event img{max-height:130px;background:#ffffff8c;border-radius:6px}.attendance-event p{font-size:10px;line-height:1.6;margin:7px 0}.attendance-event summary{cursor:pointer;font-size:10px;color:#627b90;line-height:1.5;margin-top:7px}.attendance-event textarea{border:1px solid #d5e2ee;border-radius:7px;padding:8px;font-size:11px;margin:8px 0;background:white}.attendance-event label{font-size:10px}.attendance-event .btn{font-size:10px;line-height:1.5;width:100%;min-height:32px;white-space:normal}
.attendance-panel{box-shadow:0 12px 42px #234e7910;border-color:#e2eaf4;padding:30px;border-radius:22px}.attendance-panel h1{letter-spacing:-.8px;color:#133457}.attendance-panel label{color:#647890;font-size:13px;font-weight:600}.attendance-panel .muted{line-height:1.75;font-size:14px}.attendance-actions .btn{min-height:50px;border-radius:12px;flex:1}.attendance-panel .alert{border-radius:12px;line-height:1.6}.attendance-panel #attendance-status{font-size:13px;line-height:1.6}.attendance-shell{padding-top:25px}
@media(min-width:1001px){.attendance-calendar{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1000px){.attendance-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-summary>div{padding:14px;gap:10px}.attendance-day{min-height:115px}.attendance-heading h2{font-size:24px}}
@media(max-width:680px){.attendance-heading{align-items:flex-start;flex-direction:column;gap:16px}.attendance-heading .btn{width:100%}.attendance-filters{grid-template-columns:minmax(0,1fr);padding:18px;gap:14px}.attendance-reference{align-items:flex-start;padding:18px;gap:14px}.attendance-reference img,.attendance-avatar{width:60px;height:72px;border-radius:10px}.attendance-person h3{font-size:17px}.attendance-person form{gap:8px}.attendance-file-name{white-space:normal;overflow-wrap:anywhere;max-width:100%}.attendance-summary{gap:8px}.attendance-summary>div{flex-direction:column;align-items:flex-start;padding:12px;gap:10px}.attendance-summary strong{font-size:23px}.attendance-summary div div>span{font-size:10px;line-height:1.5}.attendance-stat-icon{width:32px;height:32px;font-size:19px;border-radius:9px}.attendance-calendar-card{padding:14px;border-radius:14px}.attendance-month-heading{flex-direction:column;align-items:flex-start;gap:12px}.attendance-calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attendance-device-admin{padding:16px}.attendance-device-title{gap:8px}.attendance-device-title h3{font-size:13px}.attendance-panel{padding:22px}.attendance-person .attendance-eyebrow{font-size:9px;letter-spacing:1px}}
