* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6fb;
  color: #1b1f23;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #0b1f3a;
  color: #e6edff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.brand-lang {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.brand-lang select {
  background: rgba(255, 255, 255, 0.08);
  color: #e6edff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 8px;
}

.brand-lang select option {
  background: #0b1020;
  color: #e6edff;
}

.brand strong {
  font-size: 18px;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1dcff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
  background: #1f6feb;
  color: #ffffff;
  border-color: transparent;
}

.menu-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.page {
  flex: 1;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px 32px;
  display: grid;
  gap: 16px;
}

.act-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fef3c7;
  color: #1f2937;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.act-banner span {
  font-size: 13px;
}

.act-banner-select {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.act-banner select {
  background: #fff7ed;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 6px 8px;
}

.act-banner .danger {
  border-color: #ef4444;
  color: #b91c1c;
}

.hero {
  background: #0e3a5d;
  color: #fff;
  padding: 24px;
  border-radius: 10px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-right {
  margin-left: auto;
}

.hero-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hero-lang select {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 6px 8px;
}

.hero-lang select option {
  background: #0b1020;
  color: #ffffff;
}

.hero-text {
  display: grid;
  gap: 2px;
}

.hero-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px;
}

.hero h1 {
  margin: 0;
}

.hero p {
  margin: 0;
}

@media (max-width: 720px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-right {
    margin-left: 0;
  }

  .hero-lang {
    width: 100%;
  }

  .hero-logo {
    margin-bottom: 0;
  }
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.title-count {
  font-size: 13px;
  color: #64748b;
}

.title-actions {
  margin-left: auto;
}

.clock-language {
  min-width: 130px;
}

.title-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7eefc;
  border-radius: 8px;
  color: #1f6feb;
}

.title-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.actions {
  display: flex;
  gap: 12px;
  margin: 8px 0 12px;
  align-items: center;
  justify-content: center;
}

.clock-now {
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
  color: #0b1020;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.clock-now .clock-date {
  font-size: 13px;
}

.clock-now .clock-time {
  font-size: 20px;
  letter-spacing: 1px;
}

.quick-accounts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #f8fafc;
}

.quick-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quick-title {
  font-weight: 600;
  color: #0f172a;
}

.quick-hint {
  font-size: 12px;
  color: #64748b;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.quick-item.selected {
  border-color: #22c55e;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.25);
}

.quick-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.quick-meta {
  display: grid;
  gap: 2px;
  text-align: left;
}

.quick-name {
  font-weight: 600;
  color: #0f172a;
}

.quick-code {
  font-size: 12px;
  color: #64748b;
}

.quick-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.account-form {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d7deea;
  background: #f8fafc;
}

.account-form + .account-form {
  margin-top: 12px;
}

.quick-password {
  font-size: 16px;
  height: 44px;
}

.correction-form {
  display: grid;
  gap: 8px;
  color: #1b1f23;
  background: #f9fbff;
  padding: 10px;
  border-radius: 8px;
}

.modal-info {
  font-size: 12px;
  color: #475569;
  background: #eef2ff;
  padding: 8px;
  border-radius: 6px;
}

.missing-modal .modal-info {
  background: #fff4e5;
  color: #7a3e00;
  border: 1px solid #ffd8a8;
}

.missing-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.missing-list li {
  margin: 4px 0;
}

.event-list {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #1f2937;
}

.correction-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.correction-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hidden {
  display: none !important;
}

.section {
  display: grid;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-content {
  width: min(720px, 94vw);
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
}

.ghost {
  background: #e7eefc;
  color: #1b1f23;
}

.ghost:hover {
  background: #d7e4fb;
}

.login {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dual-login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.login-block {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-block:focus-within {
  border-color: #7aa2f7;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.15);
  transform: translateY(-1px);
}

.login-block-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-block-hint {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1 1 36px;
  height: 1px;
  background: #e2e8f0;
  margin: 0 8px;
}

.login-logout {
  grid-column: 1 / -1;
  justify-content: center;
}

.dual-login .btn-icon {
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
}

.dual-login .login-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dual-login .login-input:focus {
  outline: none;
  border-color: #1f6feb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

.login-input.hidden {
  display: none;
}

#login-pin {
  text-align: center;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .dual-login {
    grid-template-columns: 1fr auto 1fr;
  }

  .login-divider {
    flex-direction: column;
  }

  .login-divider::before,
  .login-divider::after {
    width: 1px;
    height: 36px;
    margin: 8px 0;
  }
}

.status {
  margin-bottom: 8px;
  color: #0e3a5d;
  font-weight: 600;
}

button {
  background: #1f6feb;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

#btn-clock {
  padding: 14px 28px;
  font-size: 18px;
}

button:hover {
  background: #1559c1;
}

.quick-item {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 10px;
}

.quick-item:hover {
  background: #ffffff;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ico svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar .menu-item {
  background: transparent;
  color: #d1dcff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .menu-item.active {
  background: #1f6feb;
  color: #ffffff;
  border-color: transparent;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
select,
textarea {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1f6feb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.note {
  display: grid;
  gap: 6px;
}

.today-events {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.today-title {
  font-weight: 700;
  color: #94a3b8;
  font-size: 13px;
}

.today-list {
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
}

.range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

pre,
.hint,
.attendance-list {
  background: #0b1020;
  color: #d1e2ff;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
}

pre {
  display: none;
}

.attendance-item {
  display: grid;
  grid-template-columns: 130px 1fr 60px 60px 70px 1.6fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
}

.attendance-header {
  display: grid;
  grid-template-columns: 130px 1fr 60px 60px 70px 1.6fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.attendance-cell {
  font-size: 13px;
  color: #e3ebff;
  line-height: 1.4;
}

.missing-hint {
  color: #ffb347;
  font-weight: 600;
  margin-bottom: 4px;
}

.attendance-cell.date-cell {
  position: relative;
}

.attendance-header > div,
.attendance-item > .attendance-cell {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.attendance-item > .attendance-cell.closed-day {
  background: #471111;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  color: #e3ebff;
  font-size: 13px;
  table-layout: fixed;
}

.event-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-table tr:last-child td {
  border-bottom: none;
}

.event-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  gap: 10px;
}

.event-time {
  flex: 1;
  min-width: 0;
}

.alert {
  background: #3f1d1d;
  color: #ffb4b4;
  border: 1px solid rgba(255, 120, 120, 0.5);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

#admin-attendance .attendance-item,
#admin-attendance .attendance-header {
  grid-template-columns: 160px 130px 1fr 60px 60px 70px 1.6fr 1fr;
}

#admin-attendance .summary-header,
#admin-attendance .summary-row {
  grid-template-columns: 1fr 120px 120px 90px 90px 90px;
}

#admin-attendance .summary-row {
  cursor: pointer;
}

#admin-attendance .summary-row:hover {
  background: rgba(255, 255, 255, 0.12);
}

#admin-attendance .summary-row.expanded {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

#admin-attendance .detail-block {
  margin: 6px 0 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

#admin-attendance .detail-block .attendance-header,
#admin-attendance .detail-block .attendance-item {
  grid-template-columns: 130px 1fr 60px 60px 70px 1.6fr 1fr;
}

.detail-row .attendance-cell:first-child {
  font-weight: 600;
}
.month-title {
  margin: 18px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(52, 84, 155, 0.4), rgba(11, 16, 32, 0.9));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-header {
  background: rgba(255, 255, 255, 0.12);
}

.summary-row {
  background: rgba(255, 255, 255, 0.06);
}

.attendance-divider {
  margin: 14px 0;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #d1e2ff;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

#admin-attendance .attendance-header {
  background: rgba(255, 255, 255, 0.18);
}

#admin-attendance .attendance-item {
  background: rgba(255, 255, 255, 0.04);
}

.exceptions-cell {
  background: rgba(255, 178, 71, 0.12);
  border-color: rgba(255, 178, 71, 0.35);
}
.attendance-divider {
  margin: 14px 0;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #d1e2ff;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.strike {
  text-decoration: line-through;
  opacity: 0.7;
}

.event-action {
  flex: 0 0 auto;
}

.invalidate-btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
}

.invalidate-btn:hover {
  background: #ea580c;
}

.empty {
  color: #cbd6f0;
  font-size: 13px;
}

.admin-section {
  display: grid;
  gap: 18px;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}

.modal-grid label {
  display: grid;
  gap: 6px;
}

.register-grid .primary-action,
.verify-grid .primary-action {
  grid-column: 2 / 3;
  justify-self: stretch;
}

.verify-grid .secondary-action {
  grid-column: 1 / 2;
  justify-self: stretch;
}

@media (max-width: 720px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .register-grid .primary-action,
  .verify-grid .primary-action,
  .verify-grid .secondary-action {
    grid-column: 1 / -1;
  }
}

.admin-controls strong {
  font-size: 14px;
}

.admin-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
}

#admin-attendance.admin-list {
  background: #0b1020;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1e2ff;
}

#schedule-calendar.admin-list {
  background: #0b1020;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1e2ff;
}

.admin-attendance h3 {
  margin: 16px 0 8px;
}

.calendar {
  display: grid;
  gap: 10px;
}

#preview-status {
  color: #94a3b8;
}

.preview .sidebar {
  display: none;
}

.preview .page {
  max-width: none;
  margin: 0;
  padding: 12px;
}

.preview .hero {
  display: none;
}

.preview .card {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.preview .admin-controls {
  margin-bottom: 6px;
}

.preview .calendar-grid {
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 6px;
}

.preview .calendar-day {
  min-height: 140px;
  padding: 6px;
  cursor: default;
}

.preview-lines {
  display: grid;
  gap: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.preview-line {
  display: grid;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-name {
  font-weight: 600;
  color: #e2e8f0;
}

.preview-name-active {
  color: #4ac454;
}

.preview-shifts {
  color: #94a3b8;
}

.preview-shifts-rest {
  color: #bd3f3f;
}
#my-schedule-calendar {
  background: #0b1020;
  color: #d1e2ff;
  padding: 12px;
  border-radius: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  font-weight: 700;
  color: #d1e2ff;
  background: #0a1225;
  border-radius: 8px;
  padding: 4px;
}

.calendar-header div {
  padding: 6px 8px;
}

.calendar-header .sunday {
  background: #471111;
  border-radius: 6px;
}

.calendar-day {
  min-height: 110px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
  color: #e3ebff;
  cursor: pointer;
  display: grid;
  gap: 8px;
  position: relative;
}

.calendar-day.closed-day {
  background: #471111;
}

.calendar-day.muted {
  opacity: 0.45;
}

.calendar-day.selected {
  outline: 2px solid #38bdf8;
}

.violation-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.closed-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.calendar-date {
  font-weight: 700;
  margin-bottom: 6px;
}

.shift-stack {
  display: grid;
  gap: 6px;
}

.shift-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}

.shift-pill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #c7d2fe;
}

.shift-label {
  font-weight: 700;
}

.shift-tag {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
}

.shift-time {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.shift-duration {
  font-size: 12px;
  color: #94a3b8;
}

.shift-lines div {
  margin-bottom: 4px;
}

.shift-lines div:last-child {
  margin-bottom: 0;
}

.weekday {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.calendar-shift {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.calendar-shift.muted {
  opacity: 0.7;
}

.schedule-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-meta {
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
}

.schedule-hint {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.schedule-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.form-title {
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.company-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.span-2 {
  grid-column: 1 / -1;
}

.shift-row {
  grid-template-columns: 80px repeat(2, minmax(180px, 1fr)) 110px 80px;
  align-items: center;
}

.copy-row {
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  align-items: center;
}

.shift-label {
  font-weight: 700;
  color: #1e293b;
}

.shift-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.duration-tag {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.time-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 8px;
  color: #d1e2ff;
}

.time-group span {
  font-size: 12px;
  color: #94a3b8;
}

.time-group input[type="time"] {
  background: transparent;
  color: #e2e8f0;
  border: none;
  padding: 0;
}

.form-hint {
  font-size: 12px;
  color: #64748b;
}

.form-row .inline {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.employee-table th,
.employee-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
}

.employee-table th {
  background: #eef2ff;
  font-weight: 700;
}

.employee-actions button {
  padding: 6px 10px;
  font-size: 12px;
  margin-right: 6px;
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .menu {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    flex: 1;
  }

  .page {
    margin: 16px 0;
    padding: 0 16px 24px;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #eef2ff;
  font-weight: 700;
}

.admin-actions button {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-right: 6px;
}

.admin-actions .approve {
  background: #16a34a;
}

.admin-actions .approve:hover {
  background: #15803d;
}

.admin-actions .reject {
  background: #dc2626;
}

.admin-actions .reject:hover {
  background: #b91c1c;
}
