/**
 * Secure Solution — Bootstrap 5 theme + auth layout
 */
:root {
  --bs-primary: #0f4c81;
  --bs-primary-rgb: 15, 76, 129;
  --bs-body-font-family: "DM Sans", system-ui, sans-serif;
  --ss-indigo: #4338ca;
  --ss-indigo-dark: #312e81;
}

body.ss-body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

.text-bg-indigo {
  background-color: var(--ss-indigo) !important;
  color: #fff !important;
}

.bg-indigo {
  background-color: var(--ss-indigo) !important;
}

.btn-indigo {
  --bs-btn-bg: var(--ss-indigo);
  --bs-btn-border-color: var(--ss-indigo);
  --bs-btn-hover-bg: var(--ss-indigo-dark);
  --bs-btn-hover-border-color: var(--ss-indigo-dark);
}

.btn-outline-indigo {
  --bs-btn-color: var(--ss-indigo);
  --bs-btn-border-color: var(--ss-indigo);
  --bs-btn-hover-bg: var(--ss-indigo);
  --bs-btn-hover-border-color: var(--ss-indigo);
  --bs-btn-hover-color: #fff;
}

.ss-btn-gradient {
  background: linear-gradient(135deg, #0f4c81 0%, #1478b8 100%);
  border: none;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.35);
  filter: brightness(1.05);
}

.ss-btn-indigo {
  background: linear-gradient(135deg, #4338ca, #6366f1);
  border: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.ss-btn-indigo:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Auth full-page background */
.ss-auth-body {
  overflow-x: hidden;
}

.ss-auth-page {
  position: relative;
}

.ss-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0a3558 0%, #0f4c81 45%, #0e7490 100%);
  background-size: 200% 200%;
  animation: ss-gradient 20s ease infinite;
}

body.ss-auth-body--employee .ss-auth-bg {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(20, 184, 166, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(99, 102, 241, 0.2), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #134e4a 45%, #0d9488 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: ss-gradient 24s ease infinite;
}

body.ss-auth-body--employee .ss-orb--1 {
  background: rgba(45, 212, 191, 0.35);
}

body.ss-auth-body--employee .ss-orb--2 {
  background: rgba(255, 255, 255, 0.12);
}

body.ss-auth-body--vendor .ss-auth-bg {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(251, 146, 60, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(234, 88, 12, 0.25), transparent 50%),
    linear-gradient(145deg, #431407 0%, #9a3412 45%, #ea580c 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: ss-gradient 24s ease infinite;
}

body.ss-auth-body--vendor .ss-orb--1 {
  background: rgba(251, 146, 60, 0.35);
}

body.ss-auth-body--vendor .ss-orb--2 {
  background: rgba(255, 255, 255, 0.1);
}

body.ss-auth-body--vendor .ss-auth-card-head-icon {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(251, 146, 60, 0.12));
  color: #c2410c;
}

body.ss-auth-body--vendor .ss-auth-feature-badge {
  background: rgba(251, 146, 60, 0.35);
  color: #fff;
}

body.ss-auth-body--vendor .ss-auth-link {
  color: #c2410c;
}

body.ss-auth-body--vendor .ss-auth-link:hover {
  color: #9a3412;
}

.ss-auth-bg--admin {
  background: linear-gradient(135deg, #1e1b4b, #4338ca, #6366f1);
}

.ss-auth-bg::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -100px;
  right: -60px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.22);
  filter: blur(70px);
}

.ss-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: ss-float 18s ease-in-out infinite;
}

.ss-orb--1 {
  width: 260px;
  height: 260px;
  bottom: 8%;
  left: 5%;
  background: rgba(56, 189, 248, 0.35);
}

.ss-orb--2 {
  width: 160px;
  height: 160px;
  top: 35%;
  left: 30%;
  background: rgba(255, 255, 255, 0.15);
  animation-delay: -6s;
}

@keyframes ss-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ss-float {
  50% { transform: translate(10px, -14px); }
}

.ss-auth-page .container {
  z-index: 1;
}

.ss-card-auth {
  border-radius: 1rem !important;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 480px;
}

body.ss-auth-body--employee {
  --bs-primary: #0d9488;
  --bs-primary-rgb: 13, 148, 136;
}

body.ss-auth-body--employee .ss-card-auth {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

body.ss-auth-body--employee .ss-auth-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.ss-auth-body--employee .ss-auth-card-head-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(20, 184, 166, 0.08));
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

body.ss-auth-body--employee .ss-auth-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

body.ss-auth-body--employee .ss-auth-card-sub {
  font-size: 0.875rem;
  color: #64748b;
}

body.ss-auth-body--employee .ss-auth-feature-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.ss-auth-body--employee .ss-auth-link {
  color: #0d9488;
  text-decoration: none;
}

body.ss-auth-body--employee .ss-auth-link:hover {
  color: #0f766e;
  text-decoration: underline;
}

body.ss-auth-body--employee .form-control,
body.ss-auth-body--employee .input-group-text {
  border-color: rgba(15, 23, 42, 0.1);
  border-radius: 0.55rem;
}

body.ss-auth-body--employee .input-group .form-control {
  min-height: 2.75rem;
}

body.ss-auth-body--employee .input-group-lg .form-control,
body.ss-auth-body--employee .input-group-lg .input-group-text {
  min-height: 3rem;
}

body.ss-auth-body--employee .input-group .input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

body.ss-auth-body--employee .input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

body.ss-auth-body--employee .form-control:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

body.ss-auth-body--employee .ss-logo-mark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(45, 212, 191, 0.35);
}

.ss-register-card {
  max-width: 560px;
}

.ss-register-form .input-group-text {
  min-width: 2.75rem;
  justify-content: center;
}

.ss-register-form .form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.ss-register-form--large .ss-register-label {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.ss-register-form--large .input-group-lg .form-control,
.ss-register-form--large .input-group-lg .input-group-text {
  min-height: 3.5rem;
  font-size: 1.0625rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.ss-register-form--large .input-group-text {
  min-width: 3.5rem;
  font-size: 1.2rem;
}

.ss-register-form--large .input-group-lg .form-control::placeholder {
  font-size: 1rem;
  opacity: 0.55;
}

.ss-register-submit {
  min-height: 3.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.ss-logo-mark {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ss-brand-logo--auth img {
  display: block;
  max-width: min(280px, 85vw);
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ss-brand-logo--nav {
  max-height: 40px;
  max-width: min(200px, 45vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ss-brand-logo--settings-preview img {
  display: block;
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
}

.ss-animate-in {
  animation: ss-fade-up 0.5s ease both;
}

@keyframes ss-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.letter-spacing {
  letter-spacing: 0.1em;
}

/* App pages */
.ss-app-body {
  background: #eef2f7;
  min-height: 100vh;
}

.ss-app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(15, 76, 129, 0.08), transparent);
}

.ss-app-body .container-lg,
.ss-app-navbar {
  position: relative;
  z-index: 2;
}

.ss-navbar-employee {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0d9488 100%) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.2);
}

.ss-nav-brand-employee {
  max-width: min(70vw, 16rem);
  font-weight: 700;
}

.ss-sidebar-nav .ss-task-item--logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--ss-dash-border);
  color: #b91c1c;
}

.ss-sidebar-nav .ss-task-item--logout:hover {
  background: #fef2f2;
  color: #991b1b;
}

.ss-sidebar-nav .ss-task-item--logout .ss-task-icon {
  color: #b91c1c;
}

.ss-navbar-admin {
  background: linear-gradient(90deg, #312e81, #4338ca) !important;
}

.ss-nav-logo-badge {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.ss-nav-user-pill {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
}

.ss-step-pills .nav-link.active {
  background: var(--bs-primary);
}

.ss-file-drop {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ss-file-drop:hover {
  border-color: var(--bs-primary) !important;
  background: rgba(var(--bs-primary-rgb), 0.04);
}

.ss-profile-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--bs-primary-rgb), 0.06);
  color: var(--bs-primary);
  box-shadow: none;
}

.ss-profile-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.ss-avatar-img {
  border: 4px solid #fff;
}

/* —— Employee dashboard theme —— */
body.ss-employee-dashboard,
body.ss-vendor-dashboard,
body.ss-admin-dashboard {
  --bs-primary: #0d9488;
  --bs-primary-rgb: 13, 148, 136;
  --ss-dash-bg: #f1f5f9;
  --ss-dash-surface: #ffffff;
  --ss-dash-ink: #0f172a;
  --ss-dash-muted: #64748b;
  --ss-dash-accent: #14b8a6;
  --ss-dash-accent-dark: #0f766e;
  --ss-dash-border: rgba(15, 23, 42, 0.08);
  --ss-dash-radius: 1rem;
  --ss-dash-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  background: var(--ss-dash-bg);
}

body.ss-employee-dashboard .ss-btn-gradient,
body.ss-admin-dashboard .ss-btn-gradient,
body.ss-employee-dashboard .btn-primary,
body.ss-admin-dashboard .btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  border: none;
}

body.ss-vendor-dashboard {
  --bs-primary: #ea580c;
  --bs-primary-rgb: 234, 88, 12;
  --ss-dash-accent: #f97316;
  --ss-dash-accent-dark: #c2410c;
}

body.ss-vendor-dashboard .ss-btn-gradient,
body.ss-vendor-dashboard .btn-primary,
.ss-btn-accent--vendor {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
  border: none;
  color: #fff;
}

body.ss-vendor-dashboard .ss-btn-gradient:hover,
body.ss-vendor-dashboard .btn-primary:hover,
.ss-btn-accent--vendor:hover {
  color: #fff;
}

.ss-navbar-vendor {
  background: linear-gradient(90deg, #7c2d12, #c2410c, #ea580c) !important;
  box-shadow: 0 4px 24px rgba(124, 45, 18, 0.25);
}

body.ss-vendor-dashboard .ss-task-sidebar .ss-task-item.active {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.2);
}

body.ss-vendor-dashboard .ss-page-header-icon {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(251, 146, 60, 0.08));
  color: #c2410c;
}

body.ss-vendor-dashboard .form-control:focus,
body.ss-vendor-dashboard .form-select:focus {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.15);
}

.ss-vendor-dashboard .ss-dashboard-main,
body.ss-vendor-dashboard .ss-dashboard-main {
  min-height: min(420px, 50vh);
}

.ss-dash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--ss-dash-bg, #f1f5f9);
}

.ss-dash-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* Admin panel: full viewport width & height after login */
body.ss-admin-dashboard {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.ss-admin-dashboard .ss-app-navbar {
  flex-shrink: 0;
}

body.ss-admin-dashboard .ss-app-navbar .ss-dash-container {
  max-width: none;
  width: 100%;
}

body.ss-admin-dashboard .ss-admin-dash-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

body.ss-admin-dashboard .ss-dash-container--admin {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 0;
}

body.ss-admin-dashboard .ss-admin-sidebar-wrap {
  position: sticky;
  top: 4.25rem;
  max-height: calc(100dvh - 4.75rem);
}

body.ss-admin-dashboard .ss-admin-sidebar-wrap .ss-left-sidebar,
body.ss-admin-dashboard .ss-admin-sidebar-wrap .ss-task-sidebar {
  min-height: calc(100dvh - 5rem);
  max-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
}

body.ss-admin-dashboard .ss-admin-sidebar-wrap .ss-sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.ss-admin-dashboard .ss-admin-dashboard-main {
  min-height: calc(100dvh - 5.5rem);
}

body.ss-admin-dashboard .ss-admin-main-body {
  overflow-x: auto;
}

body.ss-admin-dashboard .ss-admin-main-body--form {
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 0;
}

body.ss-admin-dashboard .ss-dashboard-row--form .ss-admin-sidebar-wrap {
  position: sticky;
  top: 4.25rem;
  align-self: flex-start;
  max-height: calc(100dvh - 4.75rem);
}

body.ss-admin-dashboard .ss-admin-employee-edit {
  max-width: 100%;
  min-width: 0;
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-admin-edit-section {
  border: 1px solid var(--ss-dash-border);
  border-radius: var(--ss-dash-radius);
  background: #fff;
  box-shadow: var(--ss-dash-shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-admin-edit-section-head {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-dash-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--ss-dash-border);
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-admin-edit-section-body {
  padding: 1rem 1rem 1.15rem;
}

@media (min-width: 768px) {
  body.ss-admin-dashboard .ss-admin-employee-edit .ss-admin-edit-section-body {
    padding: 1.15rem 1.25rem 1.35rem;
  }
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-file-drop {
  min-height: 7.5rem;
  height: auto !important;
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-file-drop [data-file-name] {
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-admin-edit-upload-preview {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

body.ss-admin-dashboard .ss-admin-employee-edit .ss-page-sub {
  word-break: break-word;
}

body.ss-admin-dashboard .ss-attendance-dt-wrap {
  width: 100%;
}

.ss-dash-alert {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--ss-dash-shadow);
}

.ss-dash-menu-btn {
  background: var(--ss-dash-surface);
  border: 1px solid var(--ss-dash-border);
  color: var(--ss-dash-ink);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  box-shadow: var(--ss-dash-shadow);
}

.ss-dash-menu-btn:hover {
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.25);
  color: var(--ss-dash-accent-dark);
}

.ss-left-sidebar-wrap {
  position: sticky;
  top: 5.25rem;
}

.ss-left-sidebar,
.ss-task-sidebar {
  border-radius: var(--ss-dash-radius);
  background: var(--ss-dash-surface);
  box-shadow: var(--ss-dash-shadow);
  border: 1px solid var(--ss-dash-border);
  overflow: hidden;
}

.ss-offcanvas .ss-task-sidebar,
.ss-dash-offcanvas .ss-task-sidebar {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.ss-sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff;
}

.ss-sidebar-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.ss-sidebar-head-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: 100%;
}

.ss-dash-offcanvas .offcanvas-title {
  max-width: calc(100% - 2.5rem);
}

.ss-sidebar-head-sub {
  font-size: 0.75rem;
  opacity: 0.75;
}

.ss-sidebar-nav .ss-task-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-bottom: 1px solid var(--ss-dash-border);
  color: var(--ss-dash-ink);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.ss-sidebar-nav .ss-task-item:last-child {
  border-bottom: none;
}

.ss-sidebar-nav .ss-task-item:hover {
  background: #f0fdfa;
  color: var(--ss-dash-accent-dark);
}

.ss-sidebar-nav .ss-task-item.active {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.06));
  color: var(--ss-dash-accent-dark);
  box-shadow: inset 3px 0 0 var(--ss-dash-accent);
}

.ss-task-item--locked {
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.65;
}

.ss-task-icon {
  width: 2rem;
  text-align: center;
  color: var(--ss-dash-muted);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ss-task-label {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
}

.ss-sidebar-nav .ss-task-item.active .ss-task-icon {
  color: var(--ss-dash-accent-dark);
}

.ss-sidebar-foot {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--ss-dash-border);
}

.ss-sidebar-foot-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ss-sidebar-foot-note--warn {
  color: #b45309;
}

.ss-sidebar-foot-note--ok {
  color: #047857;
  font-weight: 600;
}

.ss-employee-dashboard .ss-dashboard-main,
.ss-admin-dashboard .ss-dashboard-main {
  min-height: min(420px, 50vh);
  border-radius: var(--ss-dash-radius);
  background: var(--ss-dash-surface);
  box-shadow: var(--ss-dash-shadow);
  border: 1px solid var(--ss-dash-border);
}

.ss-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.ss-page-header--split {
  justify-content: space-between;
}

.ss-page-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(20, 184, 166, 0.08));
  color: var(--ss-dash-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.ss-page-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--ss-dash-ink);
  margin: 0;
}

.ss-page-sub {
  font-size: 0.875rem;
  color: var(--ss-dash-muted);
}

.ss-page-header-actions {
  flex-shrink: 0;
}

.ss-page-header--with-action {
  align-items: center;
}

.ss-page-header--with-action .ss-page-header-actions {
  margin-left: auto;
}

.ss-btn-accent.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}

.ss-btn-accent.btn-sm:hover {
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.ss-btn-accent {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.65rem;
  padding: 0.55rem 1.15rem;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ss-btn-accent:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
}

.ss-badge-marked {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-weight: 600;
}

.ss-dash-info-list {
  border: 1px solid var(--ss-dash-border);
  border-radius: var(--ss-dash-radius);
  overflow: hidden;
}

.ss-dash-info-list .list-group-item {
  padding: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
  .ss-dash-info-list .list-group-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.25rem;
  }
}

body.ss-employee-dashboard .form-control,
body.ss-admin-dashboard .form-control,
body.ss-employee-dashboard .form-select,
body.ss-admin-dashboard .form-select {
  border-radius: 0.55rem;
  border-color: var(--ss-dash-border);
  min-height: 2.75rem;
}

body.ss-employee-dashboard .form-control:focus,
body.ss-admin-dashboard .form-control:focus,
body.ss-employee-dashboard .form-select:focus,
body.ss-admin-dashboard .form-select:focus {
  border-color: var(--ss-dash-accent);
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.ss-dash-offcanvas {
  width: min(100%, 300px);
  border-right: 1px solid var(--ss-dash-border);
}

.ss-dash-quick-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ss-dash-quick-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

body.ss-admin-dashboard .ss-auth-link {
  color: #0d9488;
  text-decoration: none;
}

body.ss-admin-dashboard .ss-auth-link:hover {
  text-decoration: underline;
}

.ss-attendance-dt-wrap {
  border: 1px solid var(--ss-dash-border);
  border-radius: var(--ss-dash-radius);
  padding: 0.75rem;
  background: #fafafa;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ss-attendance-dt-wrap table.dataTable {
  width: 100% !important;
  margin: 0 !important;
}

.ss-attendance-dt-wrap .ss-admin-dt-col-action,
.ss-attendance-dt-wrap th.ss-admin-dt-col-action {
  min-width: 9rem;
  white-space: nowrap;
}

.ss-attendance-dt-wrap .ss-admin-status-form .btn {
  white-space: nowrap;
}

.ss-attendance-loc-cell {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.ss-punch-camera-dialog {
  width: calc(100% - 1.5rem);
  max-width: 380px;
  margin: 0.75rem auto;
}

.ss-punch-camera-modal {
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
}

.ss-punch-camera-modal .modal-body {
  overflow: hidden;
}

.ss-punch-camera-frame {
  position: relative;
  width: 100%;
  height: clamp(200px, 42vmin, 280px);
  max-height: 280px;
  margin-inline: auto;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-punch-cam-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #111;
  transform: scaleX(-1);
}

.ss-punch-cam-preview {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #111;
}

@media (max-width: 575.98px) {
  .ss-punch-camera-dialog {
    max-width: min(94vw, 340px);
  }

  .ss-punch-camera-frame {
    height: clamp(180px, 38vmin, 240px);
    max-height: 240px;
  }
}

.ss-attendance-photo-cell {
  min-width: 72px;
  vertical-align: middle;
}

.ss-attendance-photo-btn {
  line-height: 1;
  display: inline-block;
}

.ss-attendance-photo-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--ss-dash-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ss-attendance-photo-btn:hover .ss-attendance-photo-thumb,
.ss-attendance-photo-btn:focus-visible .ss-attendance-photo-thumb {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ss-attendance-photo-full {
  max-height: min(70vh, 520px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ss-attendance-detail-dl dt {
  font-weight: 600;
  color: var(--ss-dash-muted, #64748b);
}

.ss-attendance-detail-dl dd {
  margin-bottom: 0.65rem;
}

.ss-attendance-detail-photo-wrap {
  min-height: 80px;
}

.ss-attendance-detail-photo {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--ss-dash-border);
  cursor: pointer;
}

.ss-attendance-dt-wrap table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
  display: block;
}

.ss-attendance-dt-wrap table.dataTable > tbody > tr.child ul.dtr-details > li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ss-dash-border);
}

.ss-attendance-dt-wrap table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
}

.ss-attendance-dt-wrap table.dataTable > tbody > tr.child span.dtr-title {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ss-dash-muted, #64748b);
}

.ss-attendance-dt-wrap table.dataTable > tbody > tr.child span.dtr-data {
  text-align: right;
}

.ss-attendance-dt-wrap table.dataTable.dtr-column > tbody > tr > td.control:before,
.ss-attendance-dt-wrap table.dataTable.dtr-column > tbody > tr > th.control:before {
  background-color: var(--ss-dash-accent, #0d9488);
  border: none;
  box-shadow: none;
  color: #fff;
  line-height: 1rem;
}

.ss-attendance-dt-wrap table.dataTable.dtr-column > tbody > tr.parent td.control:before,
.ss-attendance-dt-wrap table.dataTable.dtr-column > tbody > tr.parent th.control:before {
  background-color: var(--ss-dash-accent-dark, #0f766e);
}

.ss-attendance-dt-wrap .dataTables_wrapper .dataTables_filter input,
.ss-attendance-dt-wrap .dataTables_wrapper .dataTables_length select {
  border-radius: 0.5rem;
  min-height: 2.35rem;
}

.ss-attendance-dt-wrap .dataTables_wrapper .row {
  margin-bottom: 0.75rem;
  align-items: center;
}

.ss-attendance-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.4rem !important;
  margin: 0 0.1rem;
}

@media (max-width: 767.98px) {
  .ss-attendance-dt-wrap {
    padding: 0.5rem;
  }

  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_length,
  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_filter,
  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_info,
  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_paginate {
    text-align: center;
    width: 100%;
    float: none;
  }

  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_filter {
    text-align: left;
  }

  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .ss-attendance-dt-wrap .dataTables_wrapper .dataTables_paginate {
    margin-top: 0.5rem;
  }

  .ss-page-header--split {
    flex-direction: column;
  }

  .ss-page-header--with-action {
    align-items: stretch;
  }

  .ss-page-header--with-action .ss-page-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
  }

  .ss-app-navbar .navbar-brand span:last-child {
    font-size: 0.95rem;
  }

  .ss-employee-dashboard .ss-dashboard-main .card-body,
  .ss-admin-dashboard .ss-dashboard-main .card-body {
    padding: 1rem !important;
  }
}

@media (max-width: 991.98px) {
  .ss-left-sidebar-wrap {
    position: static;
  }

  .ss-app-navbar .nav-link {
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .ss-dash-container {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .ss-auth-brand-col {
    text-align: center;
  }
  .ss-auth-brand-inner {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .ss-auth-list .list-group-item {
    justify-content: flex-start;
    text-align: left;
  }
  .ss-register-card {
    max-width: 100%;
  }

  body.ss-auth-body--employee .ss-auth-page {
    align-items: flex-start !important;
    padding-top: 0.5rem;
  }

  body.ss-auth-body--employee .ss-auth-brand-col {
    margin-top: 0.5rem;
  }

  body.ss-auth-body--employee .ss-auth-brand-col .display-6 {
    font-size: calc(1.25rem + 1vw);
  }
}

@media (max-width: 575.98px) {
  body.ss-auth-body--employee .ss-card-auth .card-body {
    padding: 1.25rem !important;
  }

  body.ss-auth-body--employee .ss-auth-card-head {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .ss-auth-brand-inner {
    max-width: 420px;
    margin-left: auto;
  }
  .ss-register-card {
    margin-right: auto;
    margin-left: 0;
  }
}

.ss-job-card {
  border-radius: var(--ss-dash-radius, 0.75rem);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ss-job-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ss-job-card--expired {
  opacity: 0.92;
  background-color: rgba(248, 249, 250, 0.85);
}

.ss-job-card--expired:hover {
  transform: none;
}

.ss-job-card-desc {
  line-height: 1.55;
  max-height: 8.5rem;
  overflow: auto;
}

.ss-job-card-meta li {
  line-height: 1.45;
}

.ss-job-card-actions .btn {
  white-space: nowrap;
}

.ss-job-card .card-body {
  min-height: 100%;
  width: 100%;
}

.ss-job-respondents-btn {
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0.35em 0.65em;
  line-height: 1.2;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.ss-job-respondents-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ss-admin-job-respondents-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
