.cbk-sheet-runtime { min-width: 0; }
.cbk-sheet-runtime.is-busy { opacity: .72; pointer-events: none; }
.cbk-sheet-card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: 18px; box-shadow: 0 12px 36px rgba(15, 23, 42, .08); overflow: hidden; }
.cbk-sheet-titlebar { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 24px; background: linear-gradient(135deg, rgba(15, 47, 78, .98), rgba(26, 77, 111, .95)); color: white; }
.cbk-sheet-titlebar h2 { margin: 3px 0 4px; font-size: clamp(18px, 2vw, 25px); line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.cbk-sheet-titlebar p { margin: 0; max-width: 760px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.cbk-sheet-eyebrow { color: #67e8f9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.cbk-sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.cbk-btn { border: 0; border-radius: 10px; padding: 9px 13px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.cbk-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.cbk-btn-primary { color: #071b2b; background: #67e8f9; }
.cbk-btn-outline { color: inherit; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.cbk-sheet-titlebar .cbk-btn-outline { color: white; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.cbk-shot-meta-control { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 260px; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.09); }
.cbk-shot-meta-control span { color: rgba(255,255,255,.82); font-size: 11px; font-weight: 800; }
.cbk-shot-meta-control strong { min-width: 34px; color: #fff; font-size: 25px; line-height: 1; text-align: center; }
.cbk-shot-meta-control .cbk-btn { padding: 7px 11px; }
.cbk-btn-danger { color: white; background: #dc2626; }
.cbk-sheet-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.cbk-sheet-stats > div { padding: 15px 20px; background: hsl(var(--card)); }
.cbk-sheet-stats span { display: block; color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.cbk-sheet-stats strong { display: block; margin-top: 2px; color: hsl(var(--foreground)); font-size: 22px; }
.cbk-sheet-toolbar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid hsl(var(--border)); font-size: 12px; color: hsl(var(--muted-foreground)); }
.cbk-search { display: flex; align-items: center; gap: 7px; flex: 1 1 320px; max-width: 520px; border: 1px solid hsl(var(--input)); border-radius: 10px; background: hsl(var(--background)); padding: 0 10px; }
.cbk-search input { width: 100%; padding: 9px 0; border: 0; outline: none; background: transparent; color: hsl(var(--foreground)); font-size: 12px; }
.cbk-page-size { margin: 0 4px; padding: 7px 25px 7px 8px; border: 1px solid hsl(var(--input)); border-radius: 8px; color: hsl(var(--foreground)); background: hsl(var(--background)); }
.cbk-result-count { margin-left: auto; white-space: nowrap; }
.cbk-sheet-table-wrap { max-width: 100%; overflow: auto; scrollbar-width: thin; }
.cbk-sheet-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.cbk-sheet-table th { position: sticky; top: 0; z-index: 2; padding: 10px 12px; text-align: left; white-space: nowrap; color: #000 !important; background: #e8eef3 !important; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #b8c4d1; font-size: 9.5px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.cbk-sheet-table td { max-width: 230px; padding: 9px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid hsl(var(--border) / .65); border-bottom: 1px solid hsl(var(--border) / .7); color: hsl(var(--foreground)); background: hsl(var(--card)); }
.cbk-sheet-table tbody tr:nth-child(even) td { background: hsl(var(--accent) / .32); }
.cbk-sheet-table tbody tr:hover td { background: hsl(var(--accent) / .7); }
.cbk-sheet-table .cbk-actions-col { position: sticky; right: 0; z-index: 3; min-width: 88px; box-shadow: -7px 0 12px rgba(15, 23, 42, .08); }
.cbk-sheet-table th.cbk-actions-col { z-index: 4; }
.cbk-empty { color: hsl(var(--muted-foreground) / .55); }
.cbk-no-data { padding: 34px !important; text-align: center; color: hsl(var(--muted-foreground)) !important; }
.cbk-icon-btn { width: 29px; height: 29px; margin-right: 4px; border: 1px solid hsl(var(--border)); border-radius: 8px; color: #0369a1; background: hsl(var(--background)); cursor: pointer; font-size: 15px; }
.cbk-icon-btn:hover { background: #e0f2fe; }
.cbk-icon-btn.is-danger { color: #dc2626; }
.cbk-icon-btn.is-danger:hover { background: #fee2e2; }
.cbk-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; color: hsl(var(--muted-foreground)); font-size: 11px; }
.cbk-pagination > div { display: flex; align-items: center; gap: 10px; }
.cbk-pagination button { padding: 7px 10px; border: 1px solid hsl(var(--border)); border-radius: 8px; color: hsl(var(--foreground)); background: hsl(var(--background)); cursor: pointer; }
.cbk-pagination button:disabled { opacity: .42; cursor: default; }
.cbk-sheet-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 18px; background: rgba(2, 12, 22, .72); backdrop-filter: blur(5px); }
.cbk-sheet-dialog { width: min(980px, 96vw); max-height: 92vh; overflow: auto; border: 1px solid hsl(var(--border)); border-radius: 18px; color: hsl(var(--foreground)); background: hsl(var(--card)); box-shadow: 0 28px 80px rgba(0, 0, 0, .35); }
.cbk-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; color: white; background: #123a59; }
.cbk-dialog-head span { display: block; color: #67e8f9; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.cbk-dialog-head h3 { margin: 2px 0 0; font-size: 19px; }
.cbk-dialog-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 23px; }
.cbk-sheet-editor-dialog form { padding: 20px; }
.cbk-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.cbk-form-grid label, .cbk-attendance-editor label { min-width: 0; }
.cbk-form-grid label > span, .cbk-attendance-editor label > span { display: block; margin-bottom: 5px; color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 750; }
.cbk-form-grid input, .cbk-form-grid select, .cbk-form-grid textarea, .cbk-attendance-editor input { width: 100%; border: 1px solid hsl(var(--input)); border-radius: 9px; padding: 9px 10px; color: hsl(var(--foreground)); background: hsl(var(--background)); font-size: 12px; outline: none; }
.cbk-form-grid input:focus, .cbk-form-grid select:focus, .cbk-form-grid textarea:focus, .cbk-attendance-editor input:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .12); }
.cbk-form-wide { grid-column: 1 / -1; }
.cbk-attendance-editor { margin-top: 20px; padding-top: 17px; border-top: 1px solid hsl(var(--border)); }
.cbk-attendance-editor h4 { margin: 0 0 10px; font-size: 13px; }
.cbk-attendance-editor > div { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 8px; }
.cbk-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.cbk-confirm-dialog { width: min(440px, 94vw); padding: 26px; text-align: center; }
.cbk-confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 13px; border-radius: 50%; color: #b91c1c; background: #fee2e2; font-size: 25px; font-weight: 900; }
.cbk-confirm-dialog h3 { margin: 0 0 8px; font-size: 19px; }
.cbk-confirm-dialog p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.55; }
.cbk-confirm-dialog .cbk-dialog-actions { justify-content: center; }
.cbk-export-dialog { width: min(720px, 96vw); color: #111827 !important; background: #fff !important; opacity: 1 !important; }
.cbk-export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px 22px 8px; }
.cbk-export-grid label { min-width: 0; }
.cbk-export-grid label > span, .cbk-meta-dialog form label > span { display: block; margin-bottom: 6px; color: #475569; font-size: 11px; font-weight: 800; }
.cbk-export-grid select, .cbk-export-grid input, .cbk-meta-dialog input { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px 11px; color: #111827; background: #fff; font-size: 13px; }
.cbk-export-period-value, .cbk-export-wide { grid-column: 1 / -1; }
.cbk-export-mini-search { display: flex; align-items: center; gap: 8px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0 11px; background: #fff; }
.cbk-export-mini-search b { color: #64748b; font-size: 15px; }
.cbk-export-mini-search input { border: 0; padding-inline: 0; outline: none; }
.cbk-export-help { margin: 8px 22px 0; color: #64748b; font-size: 11px; }
.cbk-export-error { margin: 12px 22px 0; padding: 9px 11px; border: 1px solid #fecaca; border-radius: 9px; color: #991b1b; background: #fef2f2; font-size: 12px; font-weight: 750; }
.cbk-export-dialog > .cbk-dialog-actions { padding: 0 22px 22px; }
.cbk-meta-dialog { width: min(500px, 94vw); }
.cbk-meta-dialog > p { margin: 18px 20px 0; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.5; }
.cbk-meta-dialog form { padding: 16px 20px 20px; }
.cbk-sheet-toast { position: fixed; z-index: 110000; right: 20px; bottom: 20px; max-width: min(430px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid #a5f3fc; border-radius: 12px; color: #164e63; background: #ecfeff; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); font-size: 12px; font-weight: 750; opacity: 0; transform: translateY(10px); transition: .2s ease; }
.cbk-sheet-toast.is-visible { opacity: 1; transform: translateY(0); }
.cbk-sheet-toast.is-error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
@media (max-width: 850px) {
  .cbk-sheet-titlebar { align-items: flex-start; flex-direction: column; }
  .cbk-shot-meta-control { width: 100%; margin: 0; justify-content: flex-start; }
  .cbk-sheet-actions { justify-content: flex-start; }
  .cbk-sheet-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbk-sheet-toolbar, .cbk-pagination { align-items: stretch; flex-direction: column; }
  .cbk-result-count { margin-left: 0; }
  .cbk-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbk-attendance-editor > div { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}
@media (max-width: 520px) {
  .cbk-export-grid { grid-template-columns: 1fr; }
  .cbk-export-period-value, .cbk-export-wide { grid-column: auto; }
  .cbk-form-grid { grid-template-columns: 1fr; }
  .cbk-form-wide { grid-column: auto; }
  .cbk-attendance-editor > div { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}
