:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d8dee7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --nav: #17324d;
  --nav-2: #214766;
  --accent: #0f766e;
  --accent-2: #b42318;
  --focus: #f59e0b;
  --shadow: 0 14px 35px rgba(30, 41, 59, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface-2);
}

.login-body {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .18), transparent 36%),
    linear-gradient(315deg, rgba(245, 158, 11, .18), transparent 30%),
    #eef3f8;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  padding: 18px 14px;
  color: #f8fafc;
  background: linear-gradient(180deg, var(--nav), #10283e);
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--nav);
  font-weight: 800;
}

.brand-name {
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  width: min(1080px, 100%);
  min-height: 640px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 640px;
  padding: 34px;
  color: #f8fafc;
  background:
    linear-gradient(rgba(23, 50, 77, .84), rgba(16, 40, 62, .92)),
    url("images/excel.png") right 36px bottom 32px / 130px auto no-repeat,
    var(--nav);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}โ

.login-copy h1 {
  max-width: 560px;
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 540px;
  margin: 0;
  color: #d9e3ee;
  line-height: 1.7;
}

.login-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-status-grid div {
  min-height: 94px;
  padding: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.login-status-grid strong,
.login-status-grid span {
  display: block;
}

.login-status-grid span {
  margin-top: 6px;
  color: #d9e3ee;
  font-size: 13px;
  line-height: 1.5;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  background: #eef2f7;
  border-radius: 8px;
}

.login-tab {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.login-tab.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, .12);
}

.login-form {
  display: none;
}

.login-form.active {
  display: grid;
  gap: 14px;
}

.login-form h2 {
  margin: 0;
  font-size: 26px;
}

.login-form p {
  margin: -4px 0 6px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.login-preview {
  margin-top: 18px;
  padding: 12px 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.sidebar-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  outline: none;
}

.sidebar-search input::placeholder {
  color: #cbd5e1;
}

.sidebar-search input:focus {
  border-color: var(--focus);
}

.module-nav {
  overflow-y: auto;
  padding-right: 4px;
}

.menu-group {
  margin-bottom: 14px;
}

.group-title {
  margin: 0 0 6px;
  padding: 0 8px;
  color: #aab8c7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 4px;
  padding: 8px;
  color: #e5edf5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.menu-button:hover,
.menu-button.active {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .16);
}

.menu-button.active {
  box-shadow: inset 3px 0 0 var(--focus);
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  font-size: 16px;
}

.menu-label {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
}

.menu-meta {
  display: block;
  margin-top: 2px;
  color: #b8c5d2;
  font-size: 11px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-role-super_admin {
  background: #ef6b6b;
  border-bottom-color: #e55a5a;
}

.topbar-role-super_admin .eyebrow,
.topbar-role-super_admin h1,
.topbar-role-super_admin .icon-button {
  color: #ffffff;
}

.topbar-role-super_admin .icon-button {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-open-link {
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #7a2e0e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-role-super_admin .status-pill {
  color: #111111;
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .7);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.admin-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 100px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.admin-user-menu[hidden] {
  display: none;
}

.admin-user-menu-button {
  width: 100%;
  min-height: 20px;
  padding: 3px 6px;
  color: #b42318;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-user-menu-button:hover,
.admin-user-menu-button:focus-visible {
  background: #fee2e2;
}

.index-shell .sidebar {
  width: 300px;
  padding-top: 14px;
}

.index-sidebar-profile {
  padding: 8px 10px;
  color: #e5edf5;
  background: rgba(255, 255, 255, .08);
  border-radius: 7px;
}

.index-sidebar-profile p {
  margin: 0;
  color: #a8b8ca;
  font-size: 12px;
  font-weight: 700;
}

.index-sidebar-profile strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
}

.index-side-nav {
  overflow: auto;
}

.index-nav-btn {
  min-height: 44px;
}

.index-nav-btn .menu-label,
.index-nav-btn .menu-meta {
  white-space: normal;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.index-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  pointer-events: none;
}

.index-sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.content-area {
  padding: 16px 18px 24px;
}

.admin-frame-shell {
  display: grid;
  grid-template-rows: minmax(620px, calc(100vh - 166px));
  min-height: calc(100vh - 134px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-frame-shell-plain {
  grid-template-rows: minmax(620px, calc(100vh - 166px));
}

.admin-frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.admin-frame-toolbar strong,
.admin-frame-toolbar span {
  display: block;
}

.admin-frame-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-frame-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.module-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f7fb;
}

.module-page-body {
  min-height: 100vh;
  background: #f5f7fb;
}

.module-page {
  padding: 14px;
}

.module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.module-title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
}

.module-description {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.kpi-grid,
.quick-grid,
.form-grid,
.document-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.kpi {
  min-height: 98px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.kpi-value {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.panel {
  margin-bottom: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel h3 {
  margin: 0;
  font-size: 16px;
}

.panel-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 750;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #cbd5e1;
}

.btn-danger {
  color: #ffffff;
  background: var(--accent-2);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #334155;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

td {
  color: #1f2937;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-ready {
  color: #166534;
  background: #dcfce7;
}

.tag-wait {
  color: #854d0e;
  background: #fef3c7;
}

.tag-off {
  color: #991b1b;
  background: #fee2e2;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card,
.document-card {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-card strong,
.document-card strong {
  display: block;
  margin-bottom: 6px;
}

.quick-card p,
.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.document-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.notice {
  padding: 12px 14px;
  color: #334155;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  line-height: 1.55;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
  text-align: center;
}

.api-output {
  min-height: 116px;
  margin: 14px 0;
  padding: 14px;
  color: #dbeafe;
  background: #111827;
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
}

.source-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-session-lock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(4px);
}

.admin-session-lock[hidden] {
  display: none;
}

.admin-session-lock-panel {
  width: min(430px, 100%);
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-session-lock-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.admin-session-lock-text,
.admin-session-lock-meta {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-session-lock-meta {
  color: var(--accent);
  font-weight: 750;
}

.admin-session-lock-field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.admin-session-lock-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
}

.admin-session-lock-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.admin-session-lock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.admin-session-lock-countdown {
  min-width: 64px;
  color: var(--accent-2);
  font-weight: 800;
  text-align: right;
}

.tis-popup-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.tis-popup-root[hidden] {
  display: none;
}

.tis-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
}

.tis-popup-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tis-popup-header {
  margin-bottom: 10px;
}

.tis-popup-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.tis-popup-message {
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

.tis-popup-history {
  display: grid;
  gap: 14px;
  white-space: normal;
}

.tis-popup-history-company {
  font-weight: 700;
}

.tis-popup-history-entry {
  display: grid;
  gap: 4px;
}

.tis-popup-history-data {
  display: block;
}

.tis-popup-history-changed {
  color: #b42318;
  font-weight: 800;
}

.tis-popup-prompt {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.tis-popup-prompt[hidden] {
  display: none;
}

.tis-popup-prompt-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
}

.tis-popup-prompt-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.tis-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.client-view {
  display: none;
}

.client-view.active {
  display: block;
}

.client-toolbar,
.client-shift-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.client-toolbar label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.client-toolbar input,
.client-toolbar select,
.client-inline-input,
.client-shift-select,
.client-shift-day-select,
.client-shift-form input {
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 7px;
  background: #ffffff;
  font-size: 11px;
}

.client-toolbar-save {
  margin-left: auto;
}

.client-table-wrap,
.client-shift-table-wrap {
  overflow: auto;
}

.client-shift-bulk-table {
  margin-bottom: 4px;
}

.client-shift-bulk-table td {
  background: #f8fafc;
  border-bottom: 1px solid #dbe4ef;
}

.client-shift-bulk-table td:nth-child(4) {
  color: #334155;
  font-weight: 700;
}

.client-data-table {
  min-width: 860px;
  border-collapse: collapse;
}

.client-data-table th,
.client-data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 6px;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.25;
}

.client-data-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
}

.client-inline-input {
  width: 132px;
}

.client-inline-input:disabled {
  color: #0f172a;
  background: #f8fafc;
  opacity: 1;
}

.client-data-table .btn {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}

.client-shift-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr)) auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.client-shift-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.client-shift-form .client-check-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}

.client-shift-form .client-check-label input {
  min-height: auto;
  width: 14px;
  height: 14px;
}

.client-break-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.client-break-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.client-break-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-break-row {
  display: grid;
  grid-template-columns: 98px 38px 32px;
  column-gap: 10px;
  row-gap: 4px;
  align-items: end;
  padding: 7px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.client-break-row label {
  font-size: 10px;
}

.client-break-time {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.client-break-duration {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  padding-left: 5px;
  padding-right: 3px;
}

.client-break-remove-btn {
  min-height: 30px;
  width: 30px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #b91c1c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.client-break-remove-btn:hover:not(:disabled) {
  border-color: #ef4444;
  background: #fef2f2;
}

.client-break-remove-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

#saveClientShiftBtn,
#resetClientShiftBtn {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
}

.client-supervisor-panel {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.client-supervisor-tools {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.client-supervisor-tools label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.client-supervisor-tools input,
.client-supervisor-tools select {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11px;
}

.client-supervisor-employee {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 11px;
}

.client-supervisor-employee input {
  width: 14px;
  height: 14px;
}

.client-supervisor-check-col {
  width: 42px;
  text-align: center;
}

.client-supervisor-row-check {
  width: 14px;
  height: 14px;
}

.client-supervisor-check-empty {
  color: #94a3b8;
  font-size: 11px;
}

.client-shift-table th:nth-child(-n+4),
.client-shift-table td:nth-child(-n+4) {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.client-shift-table th:nth-child(1),
.client-shift-table td:nth-child(1) {
  min-width: 90px;
}

.client-shift-table th:nth-child(2),
.client-shift-table td:nth-child(2) {
  min-width: 90px;
}

.client-shift-table th:nth-child(3),
.client-shift-table td:nth-child(3) {
  min-width: 130px;
}

.client-shift-table th:nth-child(4),
.client-shift-table td:nth-child(4) {
  min-width: 160px;
}

.client-shift-select,
.client-shift-day-select {
  width: 34px;
  min-width: 34px;
  min-height: 26px;
  padding: 2px 3px;
  text-align: center;
  font-size: 11px;
}

.client-shift-table th:nth-child(n+5),
.client-shift-table td:nth-child(n+5) {
  min-width: 38px;
  padding-left: 2px;
  padding-right: 2px;
  text-align: center;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 360px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(320px, 88vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .icon-button {
    display: inline-grid;
    place-items: center;
  }

  .kpi-grid,
  .form-grid,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .login-body {
    padding: 0;
  }

  .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-hero,
  .login-panel {
    padding: 22px;
  }

  .login-copy h1 {
    font-size: 30px;
  }

  .login-status-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .module-header,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 14px 16px;
  }

  .content-area {
    padding: 12px 12px 18px;
  }

  .module-header {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .form-grid,
  .quick-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .module-title {
    font-size: 20px;
  }

  .topbar-actions {
    justify-content: space-between;
  }
}
