/* =========================================================
   Ansof Attendance - Classic Business/Admin Theme
   Consolidated theme file. Keep this file loaded after Bootstrap.
   ========================================================= */

:root {
    --ansof-font: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
    --ansof-bg: #f6f7f8;
    --ansof-surface: #ffffff;
    --ansof-surface-soft: #f7f8fa;
    --ansof-border: #d9dee5;
    --ansof-border-strong: #b8c2cc;
    --ansof-text: #1f2937;
    --ansof-muted: #667085;
    --ansof-heading: #111827;
    --ansof-primary: #0f8f8c;
    --ansof-primary-dark: #0b6f6d;
    --ansof-primary-soft: #e8f6f5;
    --ansof-success: #198754;
    --ansof-danger: #b42318;
    --ansof-warning: #b7791f;
    --ansof-radius: 4px;
    --ansof-radius-lg: 6px;
    --ansof-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    --ansof-bg: #f4f6f8;
    --ansof-surface: #ffffff;
    --ansof-surface-soft: #f8fafc;
    --ansof-border: #d7dee7;
    --ansof-border-strong: #b9c4d0;
    --ansof-text: #1f2937;
    --ansof-muted: #667085;
    --ansof-heading: #111827;
    --ansof-primary: #1f4e79;
    --ansof-primary-dark: #163a5b;
    --ansof-primary-soft: #e8f1f8;
    --ansof-success: #198754;
    --ansof-danger: #b42318;
    --ansof-warning: #b7791f;
    --ansof-radius: 6px;
    --ansof-radius-lg: 8px;
    --ansof-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body,
body.ansof-theme,
body.daily-sales-body,
body.daily-sales-login-body,
body.ansof-guest-theme {
    margin: 0;
    background: var(--ansof-bg) !important;
    color: var(--ansof-text) !important;
    font-family: var(--ansof-font) !important;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0;
}

body.ansof-theme .min-h-screen,
body.ansof-theme .bg-gray-100,
body.ansof-guest-theme .bg-gray-100 {
    background: var(--ansof-bg) !important;
}

main {
    padding: 22px 0 42px;
}

a {
    color: var(--ansof-primary);
}

a:hover {
    color: var(--ansof-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ansof-heading) !important;
    font-family: var(--ansof-font) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

strong,
.fw-bold,
label,
.form-label {
    font-weight: 650 !important;
}

.text-muted,
.form-text,
small {
    color: var(--ansof-muted) !important;
}

.container,
.container-fluid.ansof-page,
.container-fluid.ansof-page-narrow,
.dashboard-page-wrap,
.max-w-7xl {
    width: min(100% - 20px, 1540px) !important;
    max-width: 1540px !important;
    width: min(100% - 28px, 1500px) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container-fluid.ansof-page-narrow {
    max-width: 980px !important;
}

/* Navigation */
.ansof-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ansof-surface) !important;
    border-bottom: 1px solid var(--ansof-border);
    box-shadow: var(--ansof-shadow);
}

.ansof-navbar-inner {
    width: min(100% - 20px, 1540px);
    min-height: 54px;
    margin: 0 auto;
}

.ansof-navbar-row,
.ansof-navbar-left,
.ansof-navbar-right,
.ansof-desktop-menu {
    display: flex;
    align-items: center;
}

.ansof-navbar-row {
    min-height: 54px;
    justify-content: space-between;
    gap: 16px;
}

.ansof-navbar-left {
    gap: 22px;
    min-width: 0;
}

.ansof-navbar-right {
    gap: 10px;
}

.ansof-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ansof-heading) !important;
    text-decoration: none;
    white-space: nowrap;
}

.ansof-brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-weight: 700;
}

.ansof-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ansof-brand-text {
    color: var(--ansof-heading);
    font-size: 15px;
    font-weight: 700;
}

.ansof-brand-subtitle,
.ansof-brand-version {
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 500;
}

.ansof-brand-version {
    display: none;
}

.ansof-desktop-menu {
    gap: 4px;
}

.ansof-nav-dropdown-trigger,
.ansof-user-button,
.ansof-mobile-toggle,
.ansof-dark-mode-toggle,
.ansof-classic-theme-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--ansof-radius);
    background: transparent;
    color: var(--ansof-text) !important;
    padding: 7px 10px;
    font-family: var(--ansof-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.ansof-nav-dropdown-trigger:hover,
.ansof-nav-dropdown-active,
.ansof-user-button:hover,
.ansof-mobile-toggle:hover,
.ansof-dark-mode-toggle:hover,
.ansof-classic-theme-toggle:hover {
    border-color: #c8d7e6;
    background: var(--ansof-primary-soft);
    color: var(--ansof-primary-dark) !important;
}

.ansof-nav-chevron {
    width: 15px;
    height: 15px;
}

.ansof-user-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ansof-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.ansof-user-name {
    font-weight: 650;
}

.ansof-user-role,
.ansof-user-dropdown-email {
    color: var(--ansof-muted);
    font-size: 11px;
}

.ansof-user-dropdown-email {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ansof-border);
}

.absolute.z-50,
.absolute.right-0,
.origin-top-right,
[role="menu"] {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.14) !important;
    overflow: hidden;
}

.ansof-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 0;
    min-width: 540px;
}

.ansof-dropdown-panel {
    padding: 8px;
    border-right: 1px solid var(--ansof-border);
}

.ansof-dropdown-panel:last-child {
    border-right: 0;
}

.ansof-dropdown-section-title {
    padding: 7px 10px 5px;
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ansof-mobile-toggle-wrap,
.ansof-mobile-menu {
    display: none;
}

.ansof-mobile-menu {
    border-top: 1px solid var(--ansof-border);
    background: #ffffff;
}

.ansof-mobile-menu.block {
    display: block;
}

.ansof-mobile-menu-inner {
    width: min(100% - 28px, 1500px);
    margin: 0 auto;
    padding: 8px 0 12px;
}

/* Cards, toolbars, panels */
.ansof-toolbar,
.dashboard-title-box,
.card,
.ansof-card,
.settings-card,
.filter-card,
.audit-filter-card,
.review-filter-card,
.logs-filter-card,
.leave-form-card,
.leave-filter-card,
.holidays-form-card,
.employee-form-section,
.daily-sales-report-summary-card,
.bg-white.shadow,
.bg-white.overflow-hidden,
.rounded-lg,
.rounded-xl,
.shadow-sm {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: var(--ansof-surface) !important;
    box-shadow: var(--ansof-shadow) !important;
}

.ansof-toolbar,
.dashboard-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ansof-toolbar h1,
.ansof-toolbar h2,
.ansof-toolbar h3,
.dashboard-title-box h1,
.dashboard-title-box h2,
.dashboard-title-box h3 {
    margin: 0;
}

.card-header {
    border-bottom: 1px solid var(--ansof-border) !important;
    background: var(--ansof-surface-soft) !important;
    color: var(--ansof-heading) !important;
    font-weight: 650 !important;
}

.card-body {
    color: var(--ansof-text);
}

/* Forms */
.form-control,
.form-select,
input,
select,
textarea {
    border: 1px solid var(--ansof-border-strong) !important;
    border-radius: var(--ansof-radius) !important;
    background: #ffffff !important;
    color: var(--ansof-text) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

.form-control,
.form-select,
input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 34px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ansof-primary) !important;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12) !important;
    outline: none !important;
}

.form-check-input {
    min-height: auto !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
a.button {
    border-radius: var(--ansof-radius) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover,
button:hover,
a.button:hover {
    transform: none !important;
}

}

.container-fluid.ansof-page-narrow {
    max-width: 980px !important;
}

/* Navigation */
.ansof-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ansof-surface) !important;
    border-bottom: 1px solid var(--ansof-border);
    box-shadow: var(--ansof-shadow);
}

.ansof-navbar-inner {
    width: min(100% - 20px, 1540px);
    min-height: 54px;
    margin: 0 auto;
}

.ansof-navbar-row,
.ansof-navbar-left,
.ansof-navbar-right,
.ansof-desktop-menu {
    display: flex;
    align-items: center;
}

.ansof-navbar-row {
    min-height: 54px;
    justify-content: space-between;
    gap: 16px;
}

.ansof-navbar-left {
    gap: 22px;
    min-width: 0;
}

.ansof-navbar-right {
    gap: 10px;
}

.ansof-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ansof-heading) !important;
    text-decoration: none;
    white-space: nowrap;
}

.ansof-brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-weight: 700;
}

.ansof-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ansof-brand-text {
    color: var(--ansof-heading);
    font-size: 15px;
    font-weight: 700;
}

.ansof-brand-subtitle,
.ansof-brand-version {
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 500;
}

.ansof-brand-version {
    display: none;
}

.ansof-desktop-menu {
    gap: 4px;
}

.ansof-nav-dropdown-trigger,
.ansof-user-button,
.ansof-mobile-toggle,
.ansof-dark-mode-toggle,
.ansof-classic-theme-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--ansof-radius);
    background: transparent;
    color: var(--ansof-text) !important;
    padding: 7px 10px;
    font-family: var(--ansof-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.ansof-nav-dropdown-trigger:hover,
.ansof-nav-dropdown-active,
.ansof-user-button:hover,
.ansof-mobile-toggle:hover,
.ansof-dark-mode-toggle:hover,
.ansof-classic-theme-toggle:hover {
    border-color: #c8d7e6;
    background: var(--ansof-primary-soft);
    color: var(--ansof-primary-dark) !important;
}

.ansof-nav-chevron {
    width: 15px;
    height: 15px;
}

.ansof-user-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ansof-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.ansof-user-name {
    font-weight: 650;
}

.ansof-user-role,
.ansof-user-dropdown-email {
    color: var(--ansof-muted);
    font-size: 11px;
}

.ansof-user-dropdown-email {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ansof-border);
}

.absolute.z-50,
.absolute.right-0,
.origin-top-right,
[role="menu"] {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.14) !important;
    overflow: hidden;
}

.ansof-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 0;
    min-width: 540px;
}

.ansof-dropdown-panel {
    padding: 8px;
    border-right: 1px solid var(--ansof-border);
}

.ansof-dropdown-panel:last-child {
    border-right: 0;
}

.ansof-dropdown-section-title {
    padding: 7px 10px 5px;
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ansof-mobile-toggle-wrap,
.ansof-mobile-menu {
    display: none;
}

.ansof-mobile-menu {
    border-top: 1px solid var(--ansof-border);
    background: #ffffff;
}

.ansof-mobile-menu.block {
    display: block;
}

.ansof-mobile-menu-inner {
    width: min(100% - 28px, 1500px);
    margin: 0 auto;
    padding: 8px 0 12px;
}

/* Cards, toolbars, panels */
.ansof-toolbar,
.dashboard-title-box,
.card,
.ansof-card,
.settings-card,
.filter-card,
.audit-filter-card,
.review-filter-card,
.logs-filter-card,
.leave-form-card,
.leave-filter-card,
.holidays-form-card,
.employee-form-section,
.daily-sales-report-summary-card,
.bg-white.shadow,
.bg-white.overflow-hidden,
.rounded-lg,
.rounded-xl,
.shadow-sm {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: var(--ansof-surface) !important;
    box-shadow: var(--ansof-shadow) !important;
}

.ansof-toolbar,
.dashboard-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ansof-toolbar h1,
.ansof-toolbar h2,
.ansof-toolbar h3,
.dashboard-title-box h1,
.dashboard-title-box h2,
.dashboard-title-box h3 {
    margin: 0;
}

.card-header {
    border-bottom: 1px solid var(--ansof-border) !important;
    background: var(--ansof-surface-soft) !important;
    color: var(--ansof-heading) !important;
    font-weight: 650 !important;
}

.card-body {
    color: var(--ansof-text);
}

/* Forms */
.form-control,
.form-select,
input,
select,
textarea {
    border: 1px solid var(--ansof-border-strong) !important;
    border-radius: var(--ansof-radius) !important;
    background: #ffffff !important;
    color: var(--ansof-text) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

.form-control,
.form-select,
input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 34px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ansof-primary) !important;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12) !important;
    outline: none !important;
}

.form-check-input {
    min-height: auto !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
a.button {
    border-radius: var(--ansof-radius) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover,
button:hover,
a.button:hover {
    transform: none !important;
}

.btn-primary,
.btn-success,
button[type="submit"],
.bg-blue-500,
.bg-blue-600,
.bg-indigo-500,
.bg-indigo-600 {
    border-color: var(--ansof-primary) !important;
    background: var(--ansof-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
button[type="submit"]:hover {
    border-color: var(--ansof-primary-dark) !important;
    background: var(--ansof-primary-dark) !important;
    color: #ffffff !important;
}

.btn-danger,
button.btn-danger {
    border-color: var(--ansof-danger) !important;
    background: var(--ansof-danger) !important;
    color: #ffffff !important;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light,
.btn-outline-dark {
    border-color: var(--ansof-border-strong) !important;
    background: #ffffff !important;
    color: var(--ansof-text) !important;
}

.btn-sm,
.btn-group-sm > .btn {
    padding: 4px 8px !important;
    font-size: 12px !important;
}

/* Alerts and badges */
.alert {
    border-radius: var(--ansof-radius) !important;
    box-shadow: none !important;
}

.alert-info {
    border-color: #b8d8f0 !important;
    background: #eef7ff !important;
    color: #17415f !important;
}

.alert-success {
    border-color: #b9e2c5 !important;
    background: #edf8f0 !important;
    color: #155724 !important;
}

.badge,
.row-badge,
.daily-sales-status-pill,
.leave-type-pill,
.leave-type-admin-pill,
.holiday-count {
    border-radius: 999px !important;
    font-weight: 650 !important;
}

.badge.bg-success,
.badge-success,
.daily-sales-status-pill.final,
.leave-type-admin-pill.active,
.holiday-count.created {
    background: var(--ansof-success) !important;
    color: #ffffff !important;
}

.daily-sales-status-pill.draft {
    background: #fff7e6 !important;
    color: #8a5a00 !important;
}

.daily-sales-status-pill.cancelled,
.holiday-count.skipped {
    background: #fdecec !important;
    color: var(--ansof-danger) !important;
}

/* Tables */
.table-responsive,
.audit-table-wrap,
.review-table-wrap,
.logs-table-wrap,
.leave-table-wrap,
.holidays-table-wrap,
.monthly-report-table-wrap,
.shift-table-wrap,
.worked-summary-card {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    box-shadow: var(--ansof-shadow);
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar,
.worked-summary-card::-webkit-scrollbar {
    height: 11px;
}

.table-responsive::-webkit-scrollbar-track,
.worked-summary-card::-webkit-scrollbar-track {
    background: #e7ecf2;
}

.table-responsive::-webkit-scrollbar-thumb,
.worked-summary-card::-webkit-scrollbar-thumb {
    border: 2px solid #e7ecf2;
    border-radius: 999px;
    background: #8c98a8;
}

table,
.table,
.ansof-table,
.verify-table,
.worked-summary-table,
.employee-table,
.roster-table,
.leave-table,
.holidays-table,
.review-table,
.logs-table,
.audit-table,
.shift-table,
.correction-table,
.summary-table,
.detail-table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #ffffff;
    color: var(--ansof-text);
}

.verify-table,
.roster-table,
.worked-summary-table,
.employee-table,
.daily-sales-reports-table,
.monthly-report-table-wrap table {
    width: max-content;
    min-width: 100%;
}

table thead th,
.table thead th,
.ansof-table thead th,
.verify-table th,
.worked-summary-table th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    border: 1px solid var(--ansof-border) !important;
    background: #e9eef4 !important;
    color: var(--ansof-heading) !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    vertical-align: middle;
}

table tbody td,
.table tbody td,
.ansof-table tbody td,
.verify-table td,
.worked-summary-table td {
    border: 1px solid var(--ansof-border) !important;
    padding: 7px 10px !important;
    color: var(--ansof-text) !important;
    font-size: 13px;
    vertical-align: middle !important;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even),
.ansof-table tbody tr:nth-child(even) {
    background: #f9fbfd !important;
}

table tbody tr:hover,
.table tbody tr:hover,
.ansof-table tbody tr:hover {
    background: #eef4fa !important;
}

/* Dashboard */
.dashboard-title-box {
    align-items: flex-start;
}

}

table tbody td,
.table tbody td,
.ansof-table tbody td,
.verify-table td,
.worked-summary-table td {
    border: 1px solid var(--ansof-border) !important;
    padding: 7px 10px !important;
    color: var(--ansof-text) !important;
    font-size: 13px;
    vertical-align: middle !important;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even),
.ansof-table tbody tr:nth-child(even) {
    background: #f9fbfd !important;
}

table tbody tr:hover,
.table tbody tr:hover,
.ansof-table tbody tr:hover {
    background: #eef4fa !important;
}

/* Dashboard */
.dashboard-title-box {
    align-items: flex-start;
}

.dashboard-date-selector {
    display: flex;
    align-items: end;
    gap: 8px;
}

.dashboard-stats-grid,
.dashboard-actions-grid,
.daily-sales-report-summary-grid {
    display: grid;
    gap: 14px;
}

.dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 16px;
}

.dashboard-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-stat-card,
.dashboard-action-card,
.daily-sales-report-summary-card {
    display: block;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    color: var(--ansof-text) !important;
    padding: 16px;
    text-decoration: none !important;
    box-shadow: var(--ansof-shadow);
}

.dashboard-stat-card:hover,
.dashboard-action-card:hover {
    border-color: var(--ansof-border-strong);
    background: #fbfcfe;
}

.stat-number {
    margin: 0 0 4px;
    color: var(--ansof-primary) !important;
    font-size: 24px;
    font-weight: 700 !important;
}

.stat-label,
.dashboard-action-card p {
    margin: 0;
    color: var(--ansof-muted);
}

/* Employees */
.employee-table th,
.employee-table td {
    white-space: nowrap;
}

}

.dashboard-stat-card:hover,
.dashboard-action-card:hover {
    border-color: var(--ansof-border-strong);
    background: #fbfcfe;
}

.stat-number {
    margin: 0 0 4px;
    color: var(--ansof-primary) !important;
    font-size: 24px;
    font-weight: 700 !important;
}

.stat-label,
.dashboard-action-card p {
    margin: 0;
    color: var(--ansof-muted);
}

/* Employees */
.employee-table th,
.employee-table td {
    white-space: nowrap;
}

}

.container-fluid.ansof-page-narrow {
    max-width: 980px !important;
}

/* Navigation */
.ansof-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ansof-surface) !important;
    border-bottom: 1px solid var(--ansof-border);
    box-shadow: var(--ansof-shadow);
}

.ansof-navbar-inner {
    width: min(100% - 20px, 1540px);
    min-height: 54px;
    margin: 0 auto;
}

.ansof-navbar-row,
.ansof-navbar-left,
.ansof-navbar-right,
.ansof-desktop-menu {
    display: flex;
    align-items: center;
}

.ansof-navbar-row {
    min-height: 54px;
    justify-content: space-between;
    gap: 16px;
}

.ansof-navbar-left {
    gap: 22px;
    min-width: 0;
}

.ansof-navbar-right {
    gap: 10px;
}

.ansof-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ansof-heading) !important;
    text-decoration: none;
    white-space: nowrap;
}

.ansof-brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-weight: 700;
}

.ansof-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ansof-brand-text {
    color: var(--ansof-heading);
    font-size: 15px;
    font-weight: 700;
}

.ansof-brand-subtitle,
.ansof-brand-version {
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 500;
}

.ansof-brand-version {
    display: none;
}

.ansof-desktop-menu {
    gap: 4px;
}

.ansof-nav-dropdown-trigger,
.ansof-user-button,
.ansof-mobile-toggle,
.ansof-dark-mode-toggle,
.ansof-classic-theme-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--ansof-radius);
    background: transparent;
    color: var(--ansof-text) !important;
    padding: 7px 10px;
    font-family: var(--ansof-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.ansof-nav-dropdown-trigger:hover,
.ansof-nav-dropdown-active,
.ansof-user-button:hover,
.ansof-mobile-toggle:hover,
.ansof-dark-mode-toggle:hover,
.ansof-classic-theme-toggle:hover {
    border-color: #c8d7e6;
    background: var(--ansof-primary-soft);
    color: var(--ansof-primary-dark) !important;
}

.ansof-nav-chevron {
    width: 15px;
    height: 15px;
}

.ansof-user-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ansof-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.ansof-user-name {
    font-weight: 650;
}

.ansof-user-role,
.ansof-user-dropdown-email {
    color: var(--ansof-muted);
    font-size: 11px;
}

.ansof-user-dropdown-email {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ansof-border);
}

.absolute.z-50,
.absolute.right-0,
.origin-top-right,
[role="menu"] {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.14) !important;
    overflow: hidden;
}

.ansof-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 0;
    min-width: 540px;
}

.ansof-dropdown-panel {
    padding: 8px;
    border-right: 1px solid var(--ansof-border);
}

.ansof-dropdown-panel:last-child {
    border-right: 0;
}

.ansof-dropdown-section-title {
    padding: 7px 10px 5px;
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ansof-mobile-toggle-wrap,
.ansof-mobile-menu {
    display: none;
}

.ansof-mobile-menu {
    border-top: 1px solid var(--ansof-border);
    background: #ffffff;
}

.ansof-mobile-menu.block {
    display: block;
}

.ansof-mobile-menu-inner {
    width: min(100% - 28px, 1500px);
    margin: 0 auto;
    padding: 8px 0 12px;
}

/* Cards, toolbars, panels */
.ansof-toolbar,
.dashboard-title-box,
.card,
.ansof-card,
.settings-card,
.filter-card,
.audit-filter-card,
.review-filter-card,
.logs-filter-card,
.leave-form-card,
.leave-filter-card,
.holidays-form-card,
.employee-form-section,
.daily-sales-report-summary-card,
.bg-white.shadow,
.bg-white.overflow-hidden,
.rounded-lg,
.rounded-xl,
.shadow-sm {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: var(--ansof-surface) !important;
    box-shadow: var(--ansof-shadow) !important;
}

.ansof-toolbar,
.dashboard-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ansof-toolbar h1,
.ansof-toolbar h2,
.ansof-toolbar h3,
.dashboard-title-box h1,
.dashboard-title-box h2,
.dashboard-title-box h3 {
    margin: 0;
}

.card-header {
    border-bottom: 1px solid var(--ansof-border) !important;
    background: var(--ansof-surface-soft) !important;
    color: var(--ansof-heading) !important;
    font-weight: 650 !important;
}

}

.container-fluid.ansof-page-narrow {
    max-width: 980px !important;
}

/* Navigation */
.ansof-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ansof-surface) !important;
    border-bottom: 1px solid var(--ansof-border);
    box-shadow: var(--ansof-shadow);
}

.ansof-navbar-inner {
    width: min(100% - 28px, 1500px);
    min-height: 58px;
    margin: 0 auto;
}

.ansof-navbar-row,
.ansof-navbar-left,
.ansof-navbar-right,
.ansof-desktop-menu {
    display: flex;
    align-items: center;
}

.ansof-navbar-row {
    min-height: 58px;
    justify-content: space-between;
    gap: 16px;
}

.ansof-navbar-left {
    gap: 22px;
    min-width: 0;
}

.ansof-navbar-right {
    gap: 10px;
}

.ansof-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ansof-heading) !important;
    text-decoration: none;
    white-space: nowrap;
}

.ansof-brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ansof-radius);
    background: var(--ansof-primary);
    color: #ffffff;
    font-weight: 700;
}

.ansof-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ansof-brand-text {
    color: var(--ansof-heading);
    font-size: 15px;
    font-weight: 700;
}

.ansof-brand-subtitle,
.ansof-brand-version {
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 500;
}

.ansof-brand-version {
    display: none;
}

.ansof-desktop-menu {
    gap: 4px;
}

.ansof-nav-dropdown-trigger,
.ansof-user-button,
.ansof-mobile-toggle,
.ansof-dark-mode-toggle,
.ansof-classic-theme-toggle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--ansof-radius);
    background: transparent;
    color: var(--ansof-text) !important;
    padding: 7px 10px;
    font-family: var(--ansof-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.ansof-nav-dropdown-trigger:hover,
.ansof-nav-dropdown-active,
.ansof-user-button:hover,
.ansof-mobile-toggle:hover,
.ansof-dark-mode-toggle:hover,
.ansof-classic-theme-toggle:hover {
    border-color: #c8d7e6;
    background: var(--ansof-primary-soft);
    color: var(--ansof-primary-dark) !important;
}

.ansof-nav-chevron {
    width: 15px;
    height: 15px;
}

.ansof-user-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ansof-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ansof-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.ansof-user-name {
    font-weight: 650;
}

.ansof-user-role,
.ansof-user-dropdown-email {
    color: var(--ansof-muted);
    font-size: 11px;
}

.ansof-user-dropdown-email {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ansof-border);
}

.absolute.z-50,
.absolute.right-0,
.origin-top-right,
[role="menu"] {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.14) !important;
    overflow: hidden;
}

.ansof-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 0;
    min-width: 540px;
}

.ansof-dropdown-panel {
    padding: 8px;
    border-right: 1px solid var(--ansof-border);
}

.ansof-dropdown-panel:last-child {
    border-right: 0;
}

.ansof-dropdown-section-title {
    padding: 7px 10px 5px;
    color: var(--ansof-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ansof-mobile-toggle-wrap,
.ansof-mobile-menu {
    display: none;
}

.ansof-mobile-menu {
    border-top: 1px solid var(--ansof-border);
    background: #ffffff;
}

.ansof-mobile-menu.block {
    display: block;
}

.ansof-mobile-menu-inner {
    width: min(100% - 28px, 1500px);
    margin: 0 auto;
    padding: 8px 0 12px;
}

/* Cards, toolbars, panels */
.ansof-toolbar,
.dashboard-title-box,
.card,
.ansof-card,
.settings-card,
.filter-card,
.audit-filter-card,
.review-filter-card,
.logs-filter-card,
.leave-form-card,
.leave-filter-card,
.holidays-form-card,
.employee-form-section,
.daily-sales-report-summary-card,
.bg-white.shadow,
.bg-white.overflow-hidden,
.rounded-lg,
.rounded-xl,
.shadow-sm {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: var(--ansof-surface) !important;
    box-shadow: var(--ansof-shadow) !important;
}

.ansof-toolbar,
.dashboard-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.ansof-toolbar h1,
.ansof-toolbar h2,
.ansof-toolbar h3,
.dashboard-title-box h1,
.dashboard-title-box h2,
.dashboard-title-box h3 {
    margin: 0;
}

.card-header {
    border-bottom: 1px solid var(--ansof-border) !important;
    background: var(--ansof-surface-soft) !important;
    color: var(--ansof-heading) !important;
    font-weight: 650 !important;
}

.card-body {
    color: var(--ansof-text);
}

/* Forms */
.form-control,
.form-select,
input,
select,
textarea {
    border: 1px solid var(--ansof-border-strong) !important;
    border-radius: var(--ansof-radius) !important;
    background: #ffffff !important;
    color: var(--ansof-text) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

.form-control,
.form-select,
input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 34px;
    min-height: 36px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ansof-primary) !important;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12) !important;
    outline: none !important;
}

.form-check-input {
    min-height: auto !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
a.button {
    border-radius: var(--ansof-radius) !important;
    font-family: var(--ansof-font) !important;
    font-size: 13px;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover,
button:hover,
a.button:hover {
    transform: none !important;
}

.btn-primary,
.btn-success,
button[type="submit"],
.bg-blue-500,
.bg-blue-600,
.bg-indigo-500,
.bg-indigo-600 {
    border-color: var(--ansof-primary) !important;
    background: var(--ansof-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
button[type="submit"]:hover {
    border-color: var(--ansof-primary-dark) !important;
    background: var(--ansof-primary-dark) !important;
    color: #ffffff !important;
}

.btn-danger,
button.btn-danger {
    border-color: var(--ansof-danger) !important;
    background: var(--ansof-danger) !important;
    color: #ffffff !important;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light,
.btn-outline-dark {
    border-color: var(--ansof-border-strong) !important;
    background: #ffffff !important;
    color: var(--ansof-text) !important;
}

.btn-sm,
.btn-group-sm > .btn {
    padding: 4px 8px !important;
    font-size: 12px !important;
}

/* Alerts and badges */
.alert {
    border-radius: var(--ansof-radius) !important;
    box-shadow: none !important;
}

.alert-info {
    border-color: #b8d8f0 !important;
    background: #eef7ff !important;
    color: #17415f !important;
}

.alert-success {
    border-color: #b9e2c5 !important;
    background: #edf8f0 !important;
    color: #155724 !important;
}

.badge,
.row-badge,
.daily-sales-status-pill,
.leave-type-pill,
.leave-type-admin-pill,
.holiday-count {
    border-radius: 999px !important;
    font-weight: 650 !important;
}

.badge.bg-success,
.badge-success,
.daily-sales-status-pill.final,
.leave-type-admin-pill.active,
.holiday-count.created {
    background: var(--ansof-success) !important;
    color: #ffffff !important;
}

.daily-sales-status-pill.draft {
    background: #fff7e6 !important;
    color: #8a5a00 !important;
}

.daily-sales-status-pill.cancelled,
.holiday-count.skipped {
    background: #fdecec !important;
    color: var(--ansof-danger) !important;
}

/* Tables */
.table-responsive,
.audit-table-wrap,
.review-table-wrap,
.logs-table-wrap,
.leave-table-wrap,
.holidays-table-wrap,
.monthly-report-table-wrap,
.shift-table-wrap,
.worked-summary-card {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    box-shadow: var(--ansof-shadow);
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar,
.worked-summary-card::-webkit-scrollbar {
    height: 11px;
}

.table-responsive::-webkit-scrollbar-track,
.worked-summary-card::-webkit-scrollbar-track {
    background: #e7ecf2;
}

.table-responsive::-webkit-scrollbar-thumb,
.worked-summary-card::-webkit-scrollbar-thumb {
    border: 2px solid #e7ecf2;
    border-radius: 999px;
    background: #8c98a8;
}

table,
.table,
.ansof-table,
.verify-table,
.worked-summary-table,
.employee-table,
.roster-table,
.leave-table,
.holidays-table,
.review-table,
.logs-table,
.audit-table,
.shift-table,
.correction-table,
.summary-table,
.detail-table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #ffffff;
    color: var(--ansof-text);
}

.verify-table,
.roster-table,
.worked-summary-table,
.employee-table,
.daily-sales-reports-table,
.monthly-report-table-wrap table {
    width: max-content;
    min-width: 100%;
}

table thead th,
.table thead th,
.ansof-table thead th,
.verify-table th,
.worked-summary-table th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    border: 1px solid var(--ansof-border) !important;
    background: #e9eef4 !important;
    color: var(--ansof-heading) !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    vertical-align: middle;
}

table tbody td,
.table tbody td,
.ansof-table tbody td,
.verify-table td,
.worked-summary-table td {
    border: 1px solid var(--ansof-border) !important;
    padding: 7px 10px !important;
    color: var(--ansof-text) !important;
    font-size: 13px;
    vertical-align: middle !important;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even),
.ansof-table tbody tr:nth-child(even) {
    background: #f9fbfd !important;
}

table tbody tr:hover,
.table tbody tr:hover,
.ansof-table tbody tr:hover {
    background: #eef4fa !important;
}

/* Dashboard */
.dashboard-title-box {
    align-items: flex-start;
}

.dashboard-date-selector {
    display: flex;
    align-items: end;
    gap: 8px;
}

.dashboard-stats-grid,
.dashboard-actions-grid,
.daily-sales-report-summary-grid {
    display: grid;
    gap: 14px;
}

.dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 16px;
}

.dashboard-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-stat-card,
.dashboard-action-card,
.daily-sales-report-summary-card {
    display: block;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    color: var(--ansof-text) !important;
    padding: 16px;
    text-decoration: none !important;
    box-shadow: var(--ansof-shadow);
}

.dashboard-stat-card:hover,
.dashboard-action-card:hover {
    border-color: var(--ansof-border-strong);
    background: #fbfcfe;
}

.stat-number {
    margin: 0 0 4px;
    color: var(--ansof-primary) !important;
    font-size: 24px;
    font-weight: 700 !important;
}

.stat-label,
.dashboard-action-card p {
    margin: 0;
    color: var(--ansof-muted);
}

/* Employees */
.employee-table th,
.employee-table td {
    white-space: nowrap;
}

.employee-name-main,
.employee-emergency-main {
    color: var(--ansof-heading);
    font-weight: 650;
}

.employee-subline {
    color: var(--ansof-muted);
    font-size: 12px;
}

.employee-actions,
.leave-actions,
.holiday-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.employee-profile-form {
    display: grid;
    gap: 16px;
}

.employee-form-section {
    padding: 16px;
}

.employee-section-title {
    margin-bottom: 12px;
    color: var(--ansof-heading);
    font-weight: 700;
}

/* Roster */
.roster-title,
.review-title-box,
.holidays-title-box,
.leaves-title-box,
.monthly-report-toolbar {
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.roster-table th,
.roster-table td {
    white-space: nowrap;
}

.roster-table .employee-cell {
    min-width: 180px;
    font-weight: 650;
}

.assigned-shift-line,
.shift-cell {
    font-size: 12px;
    line-height: 1.35;
}

/* Corrections / attendance issues */
.attendance-corrections-page .corrections-filter-form,
.attendance-corrections-page form.row.no-print,
.review-filter-card,
.logs-filter-card,
.audit-filter-card,
.filter-card {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px !important;
    align-items: end;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.attendance-corrections-page .corrections-filter-form > [class*="col-"],
.attendance-corrections-page form.row.no-print > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.attendance-corrections-page .verify-table {
    font-size: 12px;
}

.attendance-corrections-page .verify-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    text-align: center;
}

.attendance-corrections-page .verify-table td {
    min-width: 96px;
    text-align: center;
}

.attendance-corrections-page .verify-table .employee-cell {
    min-width: 150px;
    text-align: left !important;
}

.attendance-corrections-page .shift-cell {
    min-width: 150px;
    white-space: normal;
}

.time-clear-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.time-clear-wrap input {
    width: 82px;
    min-width: 82px !important;
    text-align: center;
}

.clear-time-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #f3b7b7 !important;
    border-radius: 50% !important;
    background: #fff7f7 !important;
    color: var(--ansof-danger) !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.leave-select,
.shift-select,
.remarks-input {
    min-width: 130px;
}

.worked-summary-card {
    padding: 12px;
    margin: 14px 0;
}

.worked-summary-card h6 {
    margin-bottom: 10px;
}

.worked-summary-table th,
.worked-summary-table td {
    text-align: center;
    white-space: nowrap;
}

.summary-absent-cell,
.status-bad,
.incomplete-row {
    background: #fdecec !important;
    color: var(--ansof-danger) !important;
}

.summary-sick-cell,
.status-warn,
.corrected-row {
    background: #fff7e6 !important;
    color: #8a5a00 !important;
}

.summary-leave-cell,
.status-info,
.leave-row,
.extra-row {
    background: #eef7ff !important;
    color: #17415f !important;
}

.status-good {
    background: #edf8f0 !important;
    color: #155724 !important;
}

.save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 12px;
    text-align: right;
    box-shadow: 0 -2px 10px rgba(16, 24, 40, .08);
}

/* Daily Sales standalone + reports */
.daily-sales-body,
.daily-sales-login-body {
    background: var(--ansof-bg) !important;
}

.daily-sales-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ansof-border);
    background: #ffffff;
    padding: 12px 18px;
    box-shadow: var(--ansof-shadow);
}

.daily-sales-topbar .brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.daily-sales-topbar .brand-wrap strong {
    color: var(--ansof-heading);
    font-size: 16px;
}

.daily-sales-topbar .brand-wrap span {
    color: var(--ansof-muted);
    font-size: 12px;
}

.daily-sales-page {
    width: min(100% - 20px, 1450px);
    margin: 12px auto 28px;
}

.daily-sales-header-card,
.daily-sales-card,
.daily-sales-report-summary-card,
.daily-sales-login-card {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

.daily-sales-header-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.daily-sales-header-left h3 {
    margin: 0 0 6px;
}

.daily-sales-refresh-title {
    color: var(--ansof-heading);
    text-decoration: none;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-sales-card {
    padding: 12px;
    margin-bottom: 12px;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 12px;
}

.daily-sales-card table {
    width: 100%;
}

.daily-sales-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.daily-sales-login-card {
    width: min(100%, 420px);
    padding: 24px;
}

.daily-sales-login-card h3 {
    margin-bottom: 4px;
}

/* Guest/login */
.ansof-guest-theme > .min-h-screen {
    background: var(--ansof-bg) !important;
}

.ansof-guest-theme .sm\:max-w-md,
.ansof-guest-theme .bg-white.shadow-md {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

/* Page-specific compact refinements */
.ansof-navbar {
    background: #ffffff !important;
}

.ansof-navbar a,
.ansof-navbar button,
.ansof-dropdown-grid a,
.ansof-dropdown-grid button,
.ansof-mobile-menu a {
    color: var(--ansof-text) !important;
    opacity: 1 !important;
}

.ansof-dropdown-grid a,
.ansof-dropdown-grid button,
.ansof-user-dropdown-email {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.ansof-dropdown-grid a:hover,
.ansof-dropdown-grid button:hover {
    background: var(--ansof-primary-soft) !important;
    color: var(--ansof-primary-dark) !important;
}

@media (min-width: 992px) {
    .attendance-corrections-page .corrections-filter-form,
    .attendance-corrections-page form.row.no-print {
        grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.45fr) minmax(220px, .95fr) minmax(150px, .8fr) !important;
        align-items: end !important;
    }
}

.attendance-corrections-page .corrections-filter-check,
.attendance-corrections-page .corrections-filter-action {
    align-self: end !important;
}

.attendance-corrections-page .corrections-filter-check .form-check {
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 7px 10px 7px 32px !important;
    border: 1px solid var(--ansof-border-strong) !important;
    border-radius: var(--ansof-radius) !important;
    background: #ffffff !important;
}

.attendance-corrections-page .form-control,
.attendance-corrections-page .form-select,
.attendance-corrections-page input,
.attendance-corrections-page select {
    min-height: 34px !important;
}

.attendance-corrections-page .verify-table th,
.attendance-corrections-page .verify-table td {
    padding: 5px 6px !important;
    font-size: 12px !important;
}

.attendance-corrections-page .verify-table td {
    min-width: 78px !important;
}

.attendance-corrections-page .verify-table .employee-cell {
    min-width: 110px !important;
}

.attendance-corrections-page .shift-cell {
    min-width: 120px !important;
}

.attendance-corrections-page .leave-select,
.attendance-corrections-page .shift-select,
.attendance-corrections-page .remarks-input {
    min-width: 104px !important;
}

.attendance-corrections-page .time-clear-wrap input {
    width: 66px !important;
    min-width: 66px !important;
    padding: 3px 4px !important;
}

.roster-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 980px !important;
}

.roster-table th:first-child,
.roster-table td:first-child {
    width: 12% !important;
}

.roster-table th:not(:first-child),
.roster-table td:not(:first-child) {
    width: 12.57% !important;
}

.roster-table th,
.roster-table td {
    padding: 6px 8px !important;
    white-space: normal !important;
}

.roster-table .cell-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.roster-table .assigned-shifts {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    min-width: 0;
}

.roster-table .assigned-shift-line {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px;
    align-items: center;
    width: 100%;
    padding: 1px 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .65);
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.roster-table .assigned-shift-line small {
    color: var(--ansof-muted) !important;
    font-weight: 700 !important;
}

.roster-table .shift-time-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-table .add-shift-btn {
    flex: 0 0 auto;
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
}

.settings-page .settings-card {
    padding: 14px 16px !important;
}

.settings-page .settings-section-title {
    margin: 10px 0 8px;
    color: var(--ansof-heading);
    font-size: 13px;
    font-weight: 700;
}

.settings-page .row.g-3 {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 10px;
    margin-bottom: 10px !important;
}

.settings-page label,
.settings-page .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.settings-page small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.daily-sales-topbar {
    padding: 8px 14px;
}

.daily-sales-page {
    font-size: 13px;
}

.daily-sales-header-card {
    align-items: flex-start;
}

.daily-sales-header-card h3 {
    font-size: 18px;
}

.daily-sales-print-meta,
.daily-sales-header-card small {
    font-size: 12px;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    gap: 6px;
}

.daily-sales-header-right label,
.daily-sales-card label {
    margin-bottom: 3px;
    font-size: 11px;
}

.daily-sales-body input,
.daily-sales-body select,
.daily-sales-body .form-control,
.daily-sales-body .form-select {
    min-height: 30px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.daily-sales-body .btn,
.daily-sales-body button,
.daily-sales-print-btn,
.daily-sales-safe-slip-btn,
.top-new-cancelled-report-btn {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}

.daily-sales-card {
    padding: 10px !important;
    margin-bottom: 10px !important;
}

.daily-sales-card table th,
.daily-sales-card table td {
    padding: 5px 7px !important;
    font-size: 12px !important;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

/* Print safety */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .no-print,
    .ansof-navbar,
    .save-bar,
    .btn,
    button {
        display: none !important;
    }

    .container,
    .container-fluid.ansof-page,
    .dashboard-page-wrap {
        width: 100% !important;
        max-width: none !important;
    }

    .card,
    .ansof-card,
    .table-responsive,
    .worked-summary-card {
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991.98px) {
    .ansof-desktop-menu,
    .ansof-navbar-right {
        display: none;
    }

    .ansof-mobile-toggle-wrap {
        display: block;
    }

    .ansof-dropdown-grid {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .ansof-toolbar,
    .dashboard-title-box,
    .daily-sales-header-card {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-date-selector,
    .daily-sales-header-right,
    .date-view-form,
    .clear-drafts-form,
    .daily-sales-staff-selectors {
        align-items: stretch;
    }
}
}

.employee-subline {
    color: var(--ansof-muted);
    font-size: 12px;
}

.employee-actions,
.leave-actions,
.holiday-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.employee-profile-form {
    display: grid;
    gap: 16px;
}

.employee-form-section {
    padding: 16px;
}

.employee-section-title {
    margin-bottom: 12px;
    color: var(--ansof-heading);
    font-weight: 700;
}

/* Roster */
.roster-title,
.review-title-box,
.holidays-title-box,
.leaves-title-box,
.monthly-report-toolbar {
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.roster-table th,
.roster-table td {
    white-space: nowrap;
}

.roster-table .employee-cell {
    min-width: 180px;
    font-weight: 650;
}

.assigned-shift-line,
.shift-cell {
    font-size: 12px;
    line-height: 1.35;
}

/* Corrections / attendance issues */
.attendance-corrections-page .corrections-filter-form,
.attendance-corrections-page form.row.no-print,
.review-filter-card,
.logs-filter-card,
.audit-filter-card,
.filter-card {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px !important;
    align-items: end;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.attendance-corrections-page .corrections-filter-form > [class*="col-"],
.attendance-corrections-page form.row.no-print > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.attendance-corrections-page .verify-table {
    font-size: 12px;
}

.attendance-corrections-page .verify-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    text-align: center;
}

.attendance-corrections-page .verify-table td {
    min-width: 96px;
    text-align: center;
}

.attendance-corrections-page .verify-table .employee-cell {
    min-width: 150px;
    text-align: left !important;
}

.attendance-corrections-page .shift-cell {
    min-width: 150px;
    white-space: normal;
}

.time-clear-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.time-clear-wrap input {
    width: 82px;
    min-width: 82px !important;
    text-align: center;
}

.clear-time-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #f3b7b7 !important;
    border-radius: 50% !important;
    background: #fff7f7 !important;
    color: var(--ansof-danger) !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.leave-select,
.shift-select,
.remarks-input {
    min-width: 130px;
}

.worked-summary-card {
    padding: 12px;
    margin: 14px 0;
}

.worked-summary-card h6 {
    margin-bottom: 10px;
}

.worked-summary-table th,
.worked-summary-table td {
    text-align: center;
    white-space: nowrap;
}

.summary-absent-cell,
.status-bad,
.incomplete-row {
    background: #fdecec !important;
    color: var(--ansof-danger) !important;
}

.summary-sick-cell,
.status-warn,
.corrected-row {
    background: #fff7e6 !important;
    color: #8a5a00 !important;
}

.summary-leave-cell,
.status-info,
.leave-row,
.extra-row {
    background: #eef7ff !important;
    color: #17415f !important;
}

.status-good {
    background: #edf8f0 !important;
    color: #155724 !important;
}

.save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 12px;
    text-align: right;
    box-shadow: 0 -2px 10px rgba(16, 24, 40, .08);
}

/* Daily Sales standalone + reports */
.daily-sales-body,
.daily-sales-login-body {
    background: var(--ansof-bg) !important;
}

.daily-sales-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ansof-border);
    background: #ffffff;
    padding: 12px 18px;
    box-shadow: var(--ansof-shadow);
}

.daily-sales-topbar .brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.daily-sales-topbar .brand-wrap strong {
    color: var(--ansof-heading);
    font-size: 16px;
}

.daily-sales-topbar .brand-wrap span {
    color: var(--ansof-muted);
    font-size: 12px;
}

.daily-sales-page {
    width: min(100% - 20px, 1450px);
    margin: 12px auto 28px;
}

.daily-sales-header-card,
.daily-sales-card,
.daily-sales-report-summary-card,
.daily-sales-login-card {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

.daily-sales-header-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.daily-sales-header-left h3 {
    margin: 0 0 6px;
}

.daily-sales-refresh-title {
    color: var(--ansof-heading);
    text-decoration: none;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-sales-card {
    padding: 12px;
    margin-bottom: 12px;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 12px;
}

.daily-sales-card table {
    width: 100%;
}

.daily-sales-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.daily-sales-login-card {
    width: min(100%, 420px);
    padding: 24px;
}

.daily-sales-login-card h3 {
    margin-bottom: 4px;
}

/* Guest/login */
.ansof-guest-theme > .min-h-screen {
    background: var(--ansof-bg) !important;
}

.ansof-guest-theme .sm\:max-w-md,
.ansof-guest-theme .bg-white.shadow-md {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

/* Page-specific compact refinements */
.ansof-navbar {
    background: #ffffff !important;
}

.ansof-navbar a,
.ansof-navbar button,
.ansof-dropdown-grid a,
.ansof-dropdown-grid button,
.ansof-mobile-menu a {
    color: var(--ansof-text) !important;
    opacity: 1 !important;
}

.ansof-dropdown-grid a,
.ansof-dropdown-grid button,
.ansof-user-dropdown-email {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.ansof-dropdown-grid a:hover,
.ansof-dropdown-grid button:hover {
    background: var(--ansof-primary-soft) !important;
    color: var(--ansof-primary-dark) !important;
}

@media (min-width: 992px) {
    .attendance-corrections-page .corrections-filter-form,
    .attendance-corrections-page form.row.no-print {
        grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.45fr) minmax(220px, .95fr) minmax(150px, .8fr) !important;
        align-items: end !important;
    }
}

.attendance-corrections-page .corrections-filter-check,
.attendance-corrections-page .corrections-filter-action {
    align-self: end !important;
}

.attendance-corrections-page .corrections-filter-check .form-check {
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 7px 10px 7px 32px !important;
    border: 1px solid var(--ansof-border-strong) !important;
    border-radius: var(--ansof-radius) !important;
    background: #ffffff !important;
}

.attendance-corrections-page .form-control,
.attendance-corrections-page .form-select,
.attendance-corrections-page input,
.attendance-corrections-page select {
    min-height: 34px !important;
}

.attendance-corrections-page .verify-table th,
.attendance-corrections-page .verify-table td {
    padding: 5px 6px !important;
    font-size: 12px !important;
}

.attendance-corrections-page .verify-table td {
    min-width: 78px !important;
}

.attendance-corrections-page .verify-table .employee-cell {
    min-width: 110px !important;
}

.attendance-corrections-page .shift-cell {
    min-width: 120px !important;
}

.attendance-corrections-page .leave-select,
.attendance-corrections-page .shift-select,
.attendance-corrections-page .remarks-input {
    min-width: 104px !important;
}

.attendance-corrections-page .time-clear-wrap input {
    width: 66px !important;
    min-width: 66px !important;
    padding: 3px 4px !important;
}

.roster-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 980px !important;
}

.roster-table th:first-child,
.roster-table td:first-child {
    width: 12% !important;
}

.roster-table th:not(:first-child),
.roster-table td:not(:first-child) {
    width: 12.57% !important;
}

.roster-table th,
.roster-table td {
    padding: 6px 8px !important;
    white-space: normal !important;
}

.roster-table .cell-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.roster-table .assigned-shifts {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    min-width: 0;
}

.roster-table .assigned-shift-line {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px;
    align-items: center;
    width: 100%;
    padding: 1px 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .65);
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.roster-table .assigned-shift-line small {
    color: var(--ansof-muted) !important;
    font-weight: 700 !important;
}

.roster-table .shift-time-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-table .add-shift-btn {
    flex: 0 0 auto;
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
}

.settings-page .settings-card {
    padding: 14px 16px !important;
}

.settings-page .settings-section-title {
    margin: 10px 0 8px;
    color: var(--ansof-heading);
    font-size: 13px;
    font-weight: 700;
}

.settings-page .row.g-3 {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 10px;
    margin-bottom: 10px !important;
}

.settings-page label,
.settings-page .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.settings-page small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.daily-sales-topbar {
    padding: 8px 14px;
}

.daily-sales-page {
    font-size: 13px;
}

.daily-sales-header-card {
    align-items: flex-start;
}

.daily-sales-header-card h3 {
    font-size: 18px;
}

.daily-sales-print-meta,
.daily-sales-header-card small {
    font-size: 12px;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    gap: 6px;
}

.daily-sales-header-right label,
.daily-sales-card label {
    margin-bottom: 3px;
    font-size: 11px;
}

.daily-sales-body input,
.daily-sales-body select,
.daily-sales-body .form-control,
.daily-sales-body .form-select {
    min-height: 30px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.daily-sales-body .btn,
.daily-sales-body button,
.daily-sales-print-btn,
.daily-sales-safe-slip-btn,
.top-new-cancelled-report-btn {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}

.daily-sales-card {
    padding: 10px !important;
    margin-bottom: 10px !important;
}

.daily-sales-card table th,
.daily-sales-card table td {
    padding: 5px 7px !important;
    font-size: 12px !important;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

/* Print safety */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .no-print,
    .ansof-navbar,
    .save-bar,
}

.employee-subline {
    color: var(--ansof-muted);
    font-size: 12px;
}

.employee-actions,
.leave-actions,
.holiday-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.employee-profile-form {
    display: grid;
    gap: 16px;
}

.employee-form-section {
    padding: 16px;
}

.employee-section-title {
    margin-bottom: 12px;
    color: var(--ansof-heading);
    font-weight: 700;
}

/* Roster */
.roster-title,
.review-title-box,
.holidays-title-box,
.leaves-title-box,
.monthly-report-toolbar {
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.roster-table th,
.roster-table td {
    white-space: nowrap;
}

.roster-table .employee-cell {
    min-width: 180px;
    font-weight: 650;
}

.assigned-shift-line,
.shift-cell {
    font-size: 12px;
    line-height: 1.35;
}

/* Corrections / attendance issues */
.attendance-corrections-page .corrections-filter-form,
.attendance-corrections-page form.row.no-print,
.review-filter-card,
.logs-filter-card,
.audit-filter-card,
.filter-card {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px !important;
    align-items: end;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--ansof-shadow);
}

.attendance-corrections-page .corrections-filter-form > [class*="col-"],
.attendance-corrections-page form.row.no-print > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.attendance-corrections-page .verify-table {
    font-size: 12px;
}

.attendance-corrections-page .verify-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    text-align: center;
}

.attendance-corrections-page .verify-table td {
    min-width: 96px;
    text-align: center;
}

.attendance-corrections-page .verify-table .employee-cell {
    min-width: 150px;
    text-align: left !important;
}

.attendance-corrections-page .shift-cell {
    min-width: 150px;
    white-space: normal;
}

.time-clear-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.time-clear-wrap input {
    width: 82px;
    min-width: 82px !important;
    text-align: center;
}

.clear-time-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #f3b7b7 !important;
    border-radius: 50% !important;
    background: #fff7f7 !important;
    color: var(--ansof-danger) !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.leave-select,
.shift-select,
.remarks-input {
    min-width: 130px;
}

.worked-summary-card {
    padding: 12px;
    margin: 14px 0;
}

.worked-summary-card h6 {
    margin-bottom: 10px;
}

.worked-summary-table th,
.worked-summary-table td {
    text-align: center;
    white-space: nowrap;
}

.summary-absent-cell,
.status-bad,
.incomplete-row {
    background: #fdecec !important;
    color: var(--ansof-danger) !important;
}

.summary-sick-cell,
.status-warn,
.corrected-row {
    background: #fff7e6 !important;
    color: #8a5a00 !important;
}

.summary-leave-cell,
.status-info,
.leave-row,
.extra-row {
    background: #eef7ff !important;
    color: #17415f !important;
}

.status-good {
    background: #edf8f0 !important;
    color: #155724 !important;
}

.save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    border: 1px solid var(--ansof-border);
    border-radius: var(--ansof-radius-lg);
    background: #ffffff;
    padding: 12px;
    text-align: right;
    box-shadow: 0 -2px 10px rgba(16, 24, 40, .08);
}

/* Daily Sales standalone + reports */
.daily-sales-body,
.daily-sales-login-body {
    background: var(--ansof-bg) !important;
}

.daily-sales-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ansof-border);
    background: #ffffff;
    padding: 12px 18px;
    box-shadow: var(--ansof-shadow);
}

.daily-sales-topbar .brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.daily-sales-topbar .brand-wrap strong {
    color: var(--ansof-heading);
    font-size: 16px;
}

.daily-sales-topbar .brand-wrap span {
    color: var(--ansof-muted);
    font-size: 12px;
}

.daily-sales-page {
    width: min(100% - 28px, 1500px);
    margin: 18px auto 42px;
}

.daily-sales-header-card,
.daily-sales-card,
.daily-sales-report-summary-card,
.daily-sales-login-card {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

.daily-sales-header-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.daily-sales-header-left h3 {
    margin: 0 0 6px;
}

.daily-sales-refresh-title {
    color: var(--ansof-heading);
    text-decoration: none;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-sales-card {
    padding: 16px;
    margin-bottom: 16px;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 12px;
}

.daily-sales-card table {
    width: 100%;
}

.daily-sales-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.daily-sales-login-card {
    width: min(100%, 420px);
    padding: 24px;
}

.daily-sales-login-card h3 {
    margin-bottom: 4px;
}

/* Guest/login */
.ansof-guest-theme > .min-h-screen {
    background: var(--ansof-bg) !important;
}

.ansof-guest-theme .sm\:max-w-md,
.ansof-guest-theme .bg-white.shadow-md {
    border: 1px solid var(--ansof-border) !important;
    border-radius: var(--ansof-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: var(--ansof-shadow) !important;
}

/* Print safety */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .no-print,
    .ansof-navbar,
    .save-bar,
    .btn,
    button {
        display: none !important;
    }

    .container,
    .container-fluid.ansof-page,
    .dashboard-page-wrap {
        width: 100% !important;
        max-width: none !important;
    }

    .card,
    .ansof-card,
    .table-responsive,
    .worked-summary-card {
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991.98px) {
    .ansof-desktop-menu,
    .ansof-navbar-right {
        display: none;
    }

    .ansof-mobile-toggle-wrap {
        display: block;
    }

    .ansof-dropdown-grid {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .ansof-toolbar,
    .dashboard-title-box,
    .daily-sales-header-card {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-date-selector,
    .daily-sales-header-right,
    .date-view-form,
    .clear-drafts-form,
    .daily-sales-staff-selectors {
        align-items: stretch;
    }
}

/* END DAILY SALES HEADER - HARD RESET CLEAN LAYOUT */


/* =========================================================
   DAILY SALES STAFF DROPDOWN SMALL TWEAK
   ========================================================= */

/* Add a small gap between Sales Reported By and Transfers By */
.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-selectors {
    column-gap: 10px !important;
}

/* Make both dropdown fields balanced */
.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-field,
.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-field:nth-child(1),
.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-field:nth-child(2) {
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
}

.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-field label {
    width: 245px !important;
}

.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-field select {
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
}

/* END DAILY SALES STAFF DROPDOWN SMALL TWEAK */


/* Tiny gap between Sales Reported By and Transfers By */
.daily-sales-header-card .daily-sales-header-right-clean .daily-sales-staff-selectors {
    grid-template-columns: 245px 245px !important;
    column-gap: 14px !important;
    width: 504px !important;
    min-width: 504px !important;
    max-width: 504px !important;
}


/* =========================================================
   Ansof UI Refresh - polished admin shell
   ========================================================= */
:root {
    --ansof-bg: #eef3f8;
    --ansof-bg-2: #f8fafc;
    --ansof-card: rgba(255, 255, 255, 0.94);
    --ansof-card-solid: #ffffff;
    --ansof-primary: #0d9488;
    --ansof-primary-dark: #0f766e;
    --ansof-primary-soft: #e0f7f4;
    --ansof-accent: #2563eb;
    --ansof-accent-soft: #e8f0ff;
    --ansof-ink: #0f172a;
    --ansof-text: #172033;
    --ansof-muted: #64748b;
    --ansof-border: #d8e2ee;
    --ansof-border-strong: #b9c7d8;
    --ansof-ring: rgba(13, 148, 136, 0.22);
    --ansof-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --ansof-shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.14);
    --ansof-radius: 16px;
    --ansof-radius-lg: 24px;
}

body.ansof-theme,
body {
    background:
        radial-gradient(circle at 8% 6%, rgba(13, 148, 136, 0.14), transparent 27%),
        radial-gradient(circle at 92% 2%, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #edf3f9 48%, #f7fafc 100%) !important;
    color: var(--ansof-text) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    padding: 28px 0 56px !important;
}

.ansof-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1040 !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border-bottom: 1px solid rgba(216, 226, 238, 0.86) !important;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: saturate(180%) blur(18px) !important;
}

.ansof-navbar-inner {
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 22px !important;
}

.ansof-navbar-row {
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.ansof-navbar-left,
.ansof-navbar-right,
.ansof-desktop-menu {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.ansof-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--ansof-ink) !important;
    text-decoration: none !important;
    min-width: 230px !important;
}

.ansof-brand-mark {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, var(--ansof-primary), var(--ansof-accent)) !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.28) !important;
}

.ansof-brand-copy {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.08 !important;
}

.ansof-brand-text {
    font-size: 16px !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
}

.ansof-brand-subtitle {
    color: var(--ansof-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.ansof-nav-dropdown-trigger,
.ansof-user-button,
.ansof-mobile-toggle {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 14px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    transition: all 0.18s ease !important;
}

.ansof-nav-dropdown-trigger:hover,
.ansof-nav-dropdown-active,
.ansof-user-button:hover,
.ansof-mobile-toggle:hover {
    background: #ffffff !important;
    border-color: var(--ansof-border) !important;
    color: var(--ansof-primary-dark) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.ansof-nav-chevron {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.72 !important;
}

.ansof-user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0f172a, #334155) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.ansof-user-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.1 !important;
}

.ansof-user-name {
    font-weight: 900 !important;
}

.ansof-user-role,
.ansof-user-dropdown-email {
    color: var(--ansof-muted) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
}

.ansof-user-dropdown-email {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--ansof-border) !important;
    background: #f8fafc !important;
}

.absolute.z-50,
.absolute.right-0,
.origin-top-right,
[role="menu"] {
    border-radius: 20px !important;
    border: 1px solid rgba(216, 226, 238, 0.9) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
    backdrop-filter: blur(18px) !important;
}

.ansof-dropdown-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    min-width: 650px !important;
}

.ansof-dropdown-panel {
    padding: 8px !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

.ansof-dropdown-section-title {
    padding: 8px 12px 6px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.ansof-dark-mode-toggle {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    text-align: left !important;
    font-weight: 850 !important;
}

.container-fluid.ansof-page,
.dashboard-page-wrap,
.container,
.max-w-7xl {
    max-width: 1500px !important;
}

.ansof-toolbar {
    padding: 20px 22px !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(216, 226, 238, 0.82) !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,253,250,.88)) !important;
    box-shadow: var(--ansof-shadow) !important;
}

.ansof-toolbar h1,
.ansof-toolbar h2,
.ansof-toolbar h3 {
    margin: 0 !important;
    font-size: clamp(24px, 2vw, 34px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
}

.card,
.ansof-card,
.bg-white.shadow,
.bg-white.overflow-hidden,
.rounded-lg,
.rounded-xl,
.shadow-sm {
    border: 1px solid rgba(216, 226, 238, 0.86) !important;
    border-radius: 24px !important;
    background: var(--ansof-card) !important;
    box-shadow: var(--ansof-shadow) !important;
    overflow: hidden !important;
}

.card-header {
    padding: 15px 18px !important;
    border-bottom: 1px solid var(--ansof-border) !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: 0.01em !important;
}

.btn,
button,
input[type="submit"],
a.button {
    border-radius: 14px !important;
    font-weight: 850 !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.btn:hover,
button:hover,
a.button:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success,
button[type="submit"],
.bg-blue-500,
.bg-blue-600,
.bg-indigo-500,
.bg-indigo-600 {
    background: linear-gradient(135deg, #0d9488, #2563eb) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.20) !important;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light {
    border-color: var(--ansof-border-strong) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #334155 !important;
}

.form-control,
.form-select,
input,
select,
textarea {
    min-height: 42px !important;
    border-radius: 14px !important;
    border-color: var(--ansof-border-strong) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--ansof-primary) !important;
    box-shadow: 0 0 0 4px var(--ansof-ring) !important;
}

.table,
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th,
table thead th {
    position: sticky;
    top: 76px;
    z-index: 2;
    background: linear-gradient(180deg, #f1f8f7, #e8f4f3) !important;
    color: #0f3f3a !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
    background: #fbfdff !important;
}

.table tbody tr:hover,
table tbody tr:hover {
    background: #eefdfa !important;
}

.alert {
    border-radius: 18px !important;
    border: 1px solid var(--ansof-border) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
}

.badge {
    border-radius: 999px !important;
    padding: 7px 11px !important;
    font-weight: 900 !important;
}

.ansof-mobile-toggle-wrap {
    display: none !important;
}

.ansof-mobile-menu {
    border-top: 1px solid var(--ansof-border) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.ansof-mobile-menu-inner {
    display: grid !important;
    gap: 4px !important;
    padding: 12px 18px 18px !important;
}

@media (max-width: 1024px) {
    .ansof-desktop-menu,
    .ansof-navbar-right {
        display: none !important;
    }

    .ansof-mobile-toggle-wrap {
        display: block !important;
    }

    .ansof-navbar-row {
        min-height: 66px !important;
    }

    .ansof-brand-link {
        min-width: 0 !important;
    }

    .ansof-dropdown-grid {
        min-width: auto !important;
        grid-template-columns: 1fr !important;
    }

    main {
        padding-top: 18px !important;
    }
}

@media (max-width: 640px) {
    .ansof-navbar-inner {
        padding: 0 14px !important;
    }

    .ansof-brand-subtitle {
        display: none !important;
    }

    .ansof-toolbar {
        padding: 16px !important;
        border-radius: 20px !important;
    }
}

/* =========================================================
   Ansof UI Redesign v2 - high-contrast visible refresh
   Scoped to body.ansof-ui-redesign so the live change is obvious.
   ========================================================= */
body.ansof-ui-redesign {
    --ui-navy: #07111f;
    --ui-navy-2: #0f1f33;
    --ui-teal: #12b3a8;
    --ui-blue: #3b82f6;
    --ui-amber: #f59e0b;
    --ui-page: #eef4f8;
    --ui-panel: #ffffff;
    --ui-line: #d7e1ec;
    --ui-text: #102033;
    --ui-muted: #66768a;
    background:
        linear-gradient(135deg, rgba(18, 179, 168, 0.16), transparent 30%),
        linear-gradient(225deg, rgba(59, 130, 246, 0.14), transparent 32%),
        var(--ui-page) !important;
}

body.ansof-ui-redesign::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 5px;
    z-index: 99999;
    background: linear-gradient(90deg, var(--ui-teal), var(--ui-blue), var(--ui-amber));
}

body.ansof-ui-redesign .ansof-navbar {
    top: 5px !important;
    background: linear-gradient(135deg, var(--ui-navy), var(--ui-navy-2)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 45px rgba(7, 17, 31, 0.30) !important;
}

body.ansof-ui-redesign .ansof-navbar-inner {
    max-width: none !important;
    padding: 0 28px !important;
}

body.ansof-ui-redesign .ansof-brand-link,
body.ansof-ui-redesign .ansof-navbar a,
body.ansof-ui-redesign .ansof-navbar button {
    color: #eaf2ff !important;
}

body.ansof-ui-redesign .ansof-brand-mark {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--ui-teal), var(--ui-blue)) !important;
    box-shadow: 0 14px 30px rgba(18, 179, 168, 0.34) !important;
}

body.ansof-ui-redesign .ansof-brand-text {
    color: #ffffff !important;
    font-size: 17px !important;
}

body.ansof-ui-redesign .ansof-brand-subtitle {
    color: #9fb3ca !important;
}

body.ansof-ui-redesign .ansof-brand-version {
    display: inline-flex !important;
    width: fit-content !important;
    margin-top: 4px !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: rgba(18, 179, 168, 0.16) !important;
    color: #67e8f9 !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}

body.ansof-ui-redesign .ansof-nav-dropdown-trigger,
body.ansof-ui-redesign .ansof-user-button,
body.ansof-ui-redesign .ansof-mobile-toggle {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #eaf2ff !important;
}

body.ansof-ui-redesign .ansof-nav-dropdown-trigger:hover,
body.ansof-ui-redesign .ansof-nav-dropdown-active,
body.ansof-ui-redesign .ansof-user-button:hover,
body.ansof-ui-redesign .ansof-mobile-toggle:hover {
    background: rgba(18, 179, 168, 0.18) !important;
    border-color: rgba(103, 232, 249, 0.30) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

body.ansof-ui-redesign .ansof-user-avatar {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #ffffff !important;
}

body.ansof-ui-redesign .ansof-user-role {
    color: #9fb3ca !important;
}

body.ansof-ui-redesign .absolute.z-50,
body.ansof-ui-redesign .absolute.right-0,
body.ansof-ui-redesign .origin-top-right,
body.ansof-ui-redesign [role="menu"] {
    border: 1px solid #c9d6e5 !important;
    background: #ffffff !important;
    box-shadow: 0 30px 80px rgba(7, 17, 31, 0.26) !important;
}

body.ansof-ui-redesign main {
    padding-top: 34px !important;
}

body.ansof-ui-redesign .ansof-toolbar,
body.ansof-ui-redesign .dashboard-title-box {
    border: 0 !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.94)),
        linear-gradient(90deg, var(--ui-teal), var(--ui-blue)) !important;
    box-shadow: 0 24px 60px rgba(15, 31, 51, 0.13) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.ansof-ui-redesign .ansof-toolbar::before,
body.ansof-ui-redesign .dashboard-title-box::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, var(--ui-teal), var(--ui-blue), var(--ui-amber)) !important;
}

body.ansof-ui-redesign .card,
body.ansof-ui-redesign .ansof-card,
body.ansof-ui-redesign .bg-white.shadow,
body.ansof-ui-redesign .rounded-lg,
body.ansof-ui-redesign .rounded-xl,
body.ansof-ui-redesign .shadow-sm {
    border: 1px solid var(--ui-line) !important;
    border-radius: 22px !important;
    background: var(--ui-panel) !important;
    box-shadow: 0 18px 45px rgba(15, 31, 51, 0.10) !important;
}

body.ansof-ui-redesign .card-header {
    background: linear-gradient(135deg, #f8fbff, #eef7f6) !important;
    color: var(--ui-text) !important;
}

body.ansof-ui-redesign .btn-primary,
body.ansof-ui-redesign .btn-success,
body.ansof-ui-redesign button[type="submit"] {
    background: linear-gradient(135deg, var(--ui-teal), var(--ui-blue)) !important;
    box-shadow: 0 16px 34px rgba(18, 179, 168, 0.26) !important;
}

body.ansof-ui-redesign .btn-outline-secondary,
body.ansof-ui-redesign .btn-secondary,
body.ansof-ui-redesign .btn-light {
    background: #ffffff !important;
    border-color: #bfccda !important;
    color: var(--ui-text) !important;
}

body.ansof-ui-redesign .form-control,
body.ansof-ui-redesign .form-select,
body.ansof-ui-redesign input,
body.ansof-ui-redesign select,
body.ansof-ui-redesign textarea {
    border: 1px solid #bfccda !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

body.ansof-ui-redesign .table thead th,
body.ansof-ui-redesign table thead th {
    top: 81px !important;
    background: linear-gradient(135deg, #0f766e, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.14) !important;
}

body.ansof-ui-redesign .table tbody tr:hover,
body.ansof-ui-redesign table tbody tr:hover {
    background: #e6fffb !important;
}

body.ansof-ui-redesign .alert-info {
    background: #e8f7ff !important;
    border-color: #b9e4ff !important;
}

body.ansof-ui-redesign .alert-success {
    background: #e8fff7 !important;
    border-color: #a7f3d0 !important;
}

body.ansof-ui-redesign .ansof-mobile-menu {
    background: var(--ui-navy) !important;
}

body.ansof-ui-redesign .ansof-mobile-menu a {
    color: #eaf2ff !important;
}

/* =========================================================
   FINAL FIX - STOP GLOBAL STICKY TABLE HEADERS
   ========================================================= */

/* Remove sticky behavior from normal/global tables */
body.ansof-ui-redesign .table thead th,
body.ansof-ui-redesign table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

/* Keep redesigned header colors only */
body.ansof-ui-redesign .table thead th,
body.ansof-ui-redesign table thead th {
    background: linear-gradient(135deg, #0f766e, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.14) !important;
}

/* Corrections page can have sticky header only inside its table wrapper */
body.ansof-ui-redesign .corrections-table-wrap table thead th,
body.ansof-ui-redesign .attendance-issues-table-wrap table thead th,
body.ansof-ui-redesign .punch-table-wrap table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
}

/* Wide table wrappers */
body.ansof-ui-redesign .table-responsive,
body.ansof-ui-redesign .corrections-table-wrap,
body.ansof-ui-redesign .attendance-issues-table-wrap,
body.ansof-ui-redesign .employee-table-wrap,
body.ansof-ui-redesign .wide-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Let wide tables use their real width */
body.ansof-ui-redesign .table-responsive table,
body.ansof-ui-redesign .corrections-table-wrap table,
body.ansof-ui-redesign .attendance-issues-table-wrap table,
body.ansof-ui-redesign .employee-table-wrap table,
body.ansof-ui-redesign .wide-table-wrap table {
    width: max-content !important;
    min-width: 100% !important;
}

/* Visible scrollbar for wide tables */
body.ansof-ui-redesign .table-responsive::-webkit-scrollbar,
body.ansof-ui-redesign .corrections-table-wrap::-webkit-scrollbar,
body.ansof-ui-redesign .attendance-issues-table-wrap::-webkit-scrollbar,
body.ansof-ui-redesign .employee-table-wrap::-webkit-scrollbar,
body.ansof-ui-redesign .wide-table-wrap::-webkit-scrollbar {
    height: 12px !important;
}

body.ansof-ui-redesign .table-responsive::-webkit-scrollbar-track,
body.ansof-ui-redesign .corrections-table-wrap::-webkit-scrollbar-track,
body.ansof-ui-redesign .attendance-issues-table-wrap::-webkit-scrollbar-track,
body.ansof-ui-redesign .employee-table-wrap::-webkit-scrollbar-track,
body.ansof-ui-redesign .wide-table-wrap::-webkit-scrollbar-track {
    background: #e5e7eb !important;
    border-radius: 999px !important;
}

body.ansof-ui-redesign .table-responsive::-webkit-scrollbar-thumb,
body.ansof-ui-redesign .corrections-table-wrap::-webkit-scrollbar-thumb,
body.ansof-ui-redesign .attendance-issues-table-wrap::-webkit-scrollbar-thumb,
body.ansof-ui-redesign .employee-table-wrap::-webkit-scrollbar-thumb,
body.ansof-ui-redesign .wide-table-wrap::-webkit-scrollbar-thumb {
    background: #64748b !important;
    border-radius: 999px !important;
}

/* END FINAL FIX */

.settings-page .settings-section-title {
    margin: 10px 0 8px;
    color: var(--ansof-heading);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   CORRECTIONS - SHOW FULL COLUMNS WITHOUT HORIZONTAL SCROLL
   ========================================================= */

/* Let corrections page use almost full browser width */
body.ansof-ui-redesign .attendance-issues-page,
body.ansof-ui-redesign .corrections-page,
body.ansof-ui-redesign main {
    max-width: 100vw !important;
}

/* Reduce side padding only for wide corrections pages */
body.ansof-ui-redesign .attendance-issues-page .container,
body.ansof-ui-redesign .attendance-issues-page .container-fluid,
body.ansof-ui-redesign .corrections-page .container,
body.ansof-ui-redesign .corrections-page .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Force corrections table to fit visible width */
body.ansof-ui-redesign .attendance-issues-table-wrap,
body.ansof-ui-redesign .corrections-table-wrap,
body.ansof-ui-redesign .punch-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
}

/* Use fixed layout so all columns compress into screen */
body.ansof-ui-redesign .attendance-issues-table-wrap table,
body.ansof-ui-redesign .corrections-table-wrap table,
body.ansof-ui-redesign .punch-table-wrap table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Compact all corrections cells */
body.ansof-ui-redesign .attendance-issues-table-wrap th,
body.ansof-ui-redesign .attendance-issues-table-wrap td,
body.ansof-ui-redesign .corrections-table-wrap th,
body.ansof-ui-redesign .corrections-table-wrap td,
body.ansof-ui-redesign .punch-table-wrap th,
body.ansof-ui-redesign .punch-table-wrap td {
    padding: 4px 5px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: normal !important;
    vertical-align: middle !important;
}

/* Make punch time inputs smaller */
body.ansof-ui-redesign .attendance-issues-table-wrap input,
body.ansof-ui-redesign .corrections-table-wrap input,
body.ansof-ui-redesign .punch-table-wrap input {
    height: 28px !important;
    min-height: 28px !important;
    padding: 3px 5px !important;
    font-size: 11px !important;
    border-radius: 5px !important;
}

/* Make select boxes smaller */
body.ansof-ui-redesign .attendance-issues-table-wrap select,
body.ansof-ui-redesign .corrections-table-wrap select,
body.ansof-ui-redesign .punch-table-wrap select {
    height: 28px !important;
    min-height: 28px !important;
    padding: 3px 5px !important;
    font-size: 11px !important;
}

/* Punch columns should not be too wide */
body.ansof-ui-redesign .attendance-issues-table-wrap input[type="time"],
body.ansof-ui-redesign .corrections-table-wrap input[type="time"],
body.ansof-ui-redesign .punch-table-wrap input[type="time"],
body.ansof-ui-redesign .attendance-issues-table-wrap input[placeholder="HH:MM"],
body.ansof-ui-redesign .corrections-table-wrap input[placeholder="HH:MM"],
body.ansof-ui-redesign .punch-table-wrap input[placeholder="HH:MM"] {
    width: 64px !important;
    max-width: 64px !important;
    text-align: center !important;
}

/* Shift/status columns compact */
body.ansof-ui-redesign .attendance-issues-table-wrap .form-control,
body.ansof-ui-redesign .attendance-issues-table-wrap .form-select,
body.ansof-ui-redesign .corrections-table-wrap .form-control,
body.ansof-ui-redesign .corrections-table-wrap .form-select,
body.ansof-ui-redesign .punch-table-wrap .form-control,
body.ansof-ui-redesign .punch-table-wrap .form-select {
    width: 100% !important;
    max-width: 100% !important;
}

/* Small remove punch button */
body.ansof-ui-redesign .attendance-issues-table-wrap button,
body.ansof-ui-redesign .corrections-table-wrap button,
body.ansof-ui-redesign .punch-table-wrap button {
    min-width: 22px !important;
    height: 24px !important;
    padding: 2px 5px !important;
    font-size: 10px !important;
}

/* Remove bottom horizontal scrollbar for corrections */
body.ansof-ui-redesign .attendance-issues-table-wrap::-webkit-scrollbar,
body.ansof-ui-redesign .corrections-table-wrap::-webkit-scrollbar,
body.ansof-ui-redesign .punch-table-wrap::-webkit-scrollbar {
    display: none !important;
}

/* END CORRECTIONS FULL COLUMN FIX */

.settings-page .settings-section-title {
    margin: 10px 0 8px;
    color: var(--ansof-heading);
    font-size: 13px;
    font-weight: 700;
}

.settings-page .row.g-3 {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 10px;
    margin-bottom: 10px !important;
}

.settings-page label,
.settings-page .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.settings-page small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.daily-sales-topbar {
    padding: 8px 14px;
}

.daily-sales-page {
    font-size: 13px;
}

.daily-sales-header-card {
    align-items: flex-start;
}

.daily-sales-header-card h3 {
    font-size: 18px;
}

.daily-sales-print-meta,
.daily-sales-header-card small {
    font-size: 12px;
}

.daily-sales-header-right,
.date-view-form,
.clear-drafts-form,
.daily-sales-staff-selectors {
    gap: 6px;
}

.daily-sales-header-right label,
.daily-sales-card label {
    margin-bottom: 3px;
    font-size: 11px;
}

.daily-sales-body input,
.daily-sales-body select,
.daily-sales-body .form-control,
.daily-sales-body .form-select {
    min-height: 30px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.daily-sales-body .btn,
.daily-sales-body button,
.daily-sales-print-btn,
.daily-sales-safe-slip-btn,
.top-new-cancelled-report-btn {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}

.daily-sales-card {
    padding: 10px !important;
    margin-bottom: 10px !important;
}

.daily-sales-card table th,
.daily-sales-card table td {
    padding: 5px 7px !important;
    font-size: 12px !important;
}

.daily-sales-card h4,
.daily-sales-card h5 {
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

/* Print safety */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11px;
    }

    .no-print,
    .ansof-navbar,
    .save-bar,
    .btn,
    button {
        display: none !important;
    }

    .container,
    .container-fluid.ansof-page,
    .dashboard-page-wrap {
        width: 100% !important;
        max-width: none !important;
    }

    .card,
    .ansof-card,
    .table-responsive,
    .worked-summary-card {
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991.98px) {
    .ansof-desktop-menu,
    .ansof-navbar-right {
        display: none;
    }

    .ansof-mobile-toggle-wrap {
        display: block;
    }

    .ansof-dropdown-grid {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .ansof-toolbar,
    .dashboard-title-box,
    .daily-sales-header-card {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-date-selector,
    .daily-sales-header-right,
    .date-view-form,
    .clear-drafts-form,
    .daily-sales-staff-selectors {
        align-items: stretch;
    }
}
/* =========================================================
   CLEAN FONT SYSTEM - SOFTER PROFESSIONAL UI
   ========================================================= */

:root {
    --ansof-font-clean: Aptos, "Segoe UI", Arial, sans-serif !important;
}

/* Global font */
html,
body,
body *,
input,
select,
textarea,
button {
    font-family: var(--ansof-font-clean) !important;
    letter-spacing: 0 !important;
}

/* Main body text */
body,
body.ansof-ui-redesign {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
}

/* Main page titles */
body.ansof-ui-redesign h1,
body.ansof-ui-redesign .page-title,
body.ansof-ui-redesign .dashboard-title-box h1,
body.ansof-ui-redesign .ansof-toolbar h1,
body.ansof-ui-redesign .card-title {
    font-family: var(--ansof-font-clean) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
}

/* Subtitles / descriptions */
body.ansof-ui-redesign .text-muted,
body.ansof-ui-redesign .page-subtitle,
body.ansof-ui-redesign .dashboard-title-box p,
body.ansof-ui-redesign .ansof-toolbar p {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #475569 !important;
    letter-spacing: 0 !important;
}

/* Top navigation */
body.ansof-ui-redesign .ansof-nav-link,
body.ansof-ui-redesign .nav-link,
body.ansof-ui-redesign .dropdown-toggle,
body.ansof-ui-redesign .ansof-menu-link,
body.ansof-ui-redesign .ansof-dropdown-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Brand */
body.ansof-ui-redesign .ansof-brand-title,
body.ansof-ui-redesign .navbar-brand,
body.ansof-ui-redesign .brand-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

body.ansof-ui-redesign .ansof-brand-subtitle,
body.ansof-ui-redesign .ansof-user-role {
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}

/* Table headers - cleaner */
body.ansof-ui-redesign table th,
body.ansof-ui-redesign .table th {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* Table cells - softer */
body.ansof-ui-redesign table td,
body.ansof-ui-redesign .table td {
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
}

/* First column employee names can stay slightly stronger */
body.ansof-ui-redesign table td:first-child,
body.ansof-ui-redesign .table td:first-child {
    font-weight: 600 !important;
}

/* Buttons - less bulky */
body.ansof-ui-redesign .btn,
body.ansof-ui-redesign button,
body.ansof-ui-redesign input[type="submit"],
body.ansof-ui-redesign input[type="button"] {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Status badges */
body.ansof-ui-redesign .badge,
body.ansof-ui-redesign .status-badge,
body.ansof-ui-redesign [class*="badge"],
body.ansof-ui-redesign [class*="status"] {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Forms */
body.ansof-ui-redesign input,
body.ansof-ui-redesign select,
body.ansof-ui-redesign textarea,
body.ansof-ui-redesign .form-control,
body.ansof-ui-redesign .form-select {
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* Labels */
body.ansof-ui-redesign label,
body.ansof-ui-redesign .form-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Employee management specific */
body.ansof-ui-redesign .employee-table-wrap table th,
body.ansof-ui-redesign .employee-table-wrap .table th {
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.ansof-ui-redesign .employee-table-wrap table td,
body.ansof-ui-redesign .employee-table-wrap .table td {
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Small meta text inside employee cell: DOB / gender */
body.ansof-ui-redesign .employee-table-wrap small,
body.ansof-ui-redesign .employee-table-wrap .text-muted {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}

/* Override any old ultra-bold rules */
body.ansof-ui-redesign .fw-bold,
body.ansof-ui-redesign .font-bold,
body.ansof-ui-redesign strong {
    font-weight: 600 !important;
}

/* Keep page title strong */
body.ansof-ui-redesign h1 strong,
body.ansof-ui-redesign h2 strong {
    font-weight: 700 !important;
}

/* END CLEAN FONT SYSTEM */

