:root {
    --navy: #12263f;
    --navy-2: #1d3f5f;
    --green: #0f9f6e;
    --teal: #0e7490;
    --amber: #d97706;
    --blue: #2563eb;
    --red: #dc3545;
    --gray-50: #f7f9fc;
    --gray-100: #eef3f8;
    --gray-200: #d9e3ee;
    --gray-500: #667085;
    --ink: #172033;
    --white: #ffffff;
    --border: #dbe5ef;
    --shadow: 0 18px 45px rgba(18, 38, 63, 0.12);
    --shadow-sm: 0 10px 26px rgba(18, 38, 63, 0.08);
    --ring: 0 0 0 4px rgba(15, 159, 110, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(247, 249, 252, 0.95) 34%),
        var(--gray-50);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.btn-primary {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy-2);
    --bs-btn-hover-border-color: var(--navy-2);
}

.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(7, 26, 44, 0.95), rgba(12, 51, 67, 0.9)),
        url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=82") center/cover fixed;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-panel {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(3, 15, 28, 0.42);
}

.login-panel-enterprise {
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.login-panel-centered {
    width: min(460px, 100%);
    min-height: auto;
    display: block;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.login-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 54px;
    background:
        linear-gradient(120deg, rgba(7, 26, 44, 0.92) 0%, rgba(15, 42, 68, 0.78) 52%, rgba(15, 159, 110, 0.42) 100%),
        url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1500&q=82") center/cover;
    color: var(--white);
}

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

.login-brand strong,
.sidebar-brand strong {
    display: block;
    line-height: 1;
    font-size: 18px;
}

.login-brand span,
.sidebar-brand span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.login-brand-dark strong {
    color: var(--navy);
}

.login-brand-dark span {
    color: var(--gray-500);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--green);
    color: var(--white);
}

.login-visual-copy {
    max-width: 620px;
}

.login-visual h1 {
    max-width: 620px;
    margin: 10px 0 18px;
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.04;
    font-weight: 820;
}

.login-visual p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.login-visual .eyebrow {
    color: #7ee2bd;
}

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

.login-trust-grid div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-trust-grid i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #7ee2bd;
}

.login-trust-grid span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 760;
}

.login-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.login-metrics div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.login-metrics strong {
    display: block;
    font-size: 22px;
}

.login-metrics span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

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

.login-form-centered {
    padding: 38px;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.login-form-enterprise {
    position: relative;
    padding: 60px 54px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.login-form-brand {
    display: none;
}

.login-form-heading {
    margin-bottom: 34px;
}

.login-form h2 {
    margin: 8px 0 8px;
    color: var(--navy);
    font-size: 32px;
    font-weight: 820;
    line-height: 1.12;
}

.login-form > span,
.login-form .mb-4 > span,
.login-form-heading > span {
    color: var(--gray-500);
}

.login-field {
    margin-bottom: 16px;
}

.login-field .form-control {
    min-height: 58px;
    border-color: #cfdbe8;
    background: #ffffff;
    font-size: 15px;
}

.login-field .form-control:focus {
    border-color: rgba(15, 159, 110, 0.62);
    box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.12);
}

.login-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    border-radius: 8px;
    font-weight: 780;
}

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 159, 110, 0.16);
    border-radius: 8px;
    background: rgba(15, 159, 110, 0.08);
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.login-security-note i {
    margin-top: 2px;
    color: var(--green);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    padding: 24px 18px;
    background: linear-gradient(180deg, #081a2d 0%, #0f2a44 62%, #102f4d 100%);
    color: var(--white);
    overflow-y: auto;
    box-shadow: 16px 0 45px rgba(15, 42, 68, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    transition: width 180ms ease, padding 180ms ease, transform 180ms ease;
}

.sidebar-overlay {
    display: none;
}

.sidebar-nav {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.sidebar-section {
    display: grid;
    gap: 6px;
}

.sidebar-section-title {
    display: block;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar .nav-link::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 160ms ease;
}

.sidebar .nav-link i {
    width: 20px;
    color: rgba(255, 255, 255, 0.62);
    transition: color 160ms ease;
}

.sidebar .nav-link span {
    min-width: 0;
    flex: 1;
}

.nav-badge {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: var(--white);
}

.sidebar .nav-link.active {
    color: var(--white);
    background: linear-gradient(90deg, rgba(23, 166, 115, 0.95), rgba(23, 166, 115, 0.22));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.sidebar .nav-link.active::before {
    background: #ffffff;
}

.sidebar .nav-link.disabled {
    opacity: 0.58;
}

.sidebar-support {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-support i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.22);
    color: var(--green);
}

.sidebar-support strong,
.sidebar-support span {
    display: block;
    line-height: 1.2;
}

.sidebar-support span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.main-shell {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
}

.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-heading {
    min-width: 0;
}

.app-breadcrumb {
    align-items: center;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.app-breadcrumb a {
    color: var(--gray-500);
}

.app-breadcrumb a:hover {
    color: var(--navy);
}

.app-breadcrumb .active {
    color: var(--navy);
}

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

.page-title {
    font-size: 26px;
    font-weight: 760;
}

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

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
    border-color: rgba(15, 42, 68, 0.28);
    box-shadow: 0 10px 22px rgba(15, 42, 68, 0.1);
    transform: translateY(-1px);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.user-pill:hover,
.user-pill:focus {
    border-color: rgba(15, 42, 68, 0.28);
    box-shadow: 0 10px 24px rgba(15, 42, 68, 0.1);
}

.user-pill::after {
    margin-left: 4px;
    color: var(--gray-500);
}

.user-meta strong,
.user-meta small {
    display: block;
    line-height: 1.1;
    text-align: left;
}

.user-meta small {
    color: var(--gray-500);
    font-size: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white) !important;
    font-weight: 800;
}

.user-dropdown {
    min-width: 260px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 42, 68, 0.16);
}

.user-dropdown .dropdown-header {
    padding: 10px 12px 12px;
}

.user-dropdown .dropdown-header strong,
.user-dropdown .dropdown-header span {
    display: block;
}

.user-dropdown .dropdown-header span {
    color: var(--gray-500);
    font-size: 12px;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 8px;
    font-weight: 650;
}

.user-dropdown .dropdown-item i {
    width: 18px;
}

.notification-menu {
    position: relative;
}

.notification-button {
    position: relative;
}

.notification-button span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid var(--white);
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 850;
}

.notification-dropdown {
    min-width: 300px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 42, 68, 0.16);
}

.notification-dropdown .dropdown-header strong,
.notification-dropdown .dropdown-header span {
    display: block;
}

.notification-dropdown .dropdown-header span {
    color: var(--gray-500);
    font-size: 12px;
}

.notification-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-radius: 8px;
    font-weight: 700;
}

.page-content {
    flex: 1;
    padding: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-grid-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card,
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.stat-card:hover,
.panel:hover {
    border-color: rgba(15, 42, 68, 0.16);
    box-shadow: 0 18px 42px rgba(15, 42, 68, 0.1);
    transform: translateY(-2px);
}

.stat-card {
    padding: 20px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    margin-bottom: 18px;
}

.stat-icon.primary {
    background: rgba(15, 42, 68, 0.1);
    color: var(--navy);
}

.stat-icon.success {
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.stat-icon.danger {
    background: rgba(220, 53, 69, 0.12);
    color: var(--red);
}

.stat-icon.neutral {
    background: var(--gray-100);
    color: var(--gray-500);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--gray-500);
}

.stat-card strong {
    display: block;
    margin: 6px 0 2px;
    font-size: 30px;
    color: var(--navy);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 18px;
}

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

.executive-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), #12395c);
    color: var(--white);
    box-shadow: 0 18px 42px rgba(15, 42, 68, 0.16);
}

.executive-dashboard-hero h2 {
    margin: 2px 0 6px;
    font-size: 25px;
}

.executive-dashboard-hero .eyebrow,
.executive-dashboard-hero span {
    color: rgba(255, 255, 255, 0.72);
}

.executive-dashboard-score {
    min-width: 160px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.executive-dashboard-score span,
.executive-dashboard-score strong {
    display: block;
}

.executive-dashboard-score strong {
    margin-top: 2px;
    font-size: 32px;
}

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

.dashboard-work-kpis {
    margin-top: 18px;
}

.stat-card-button {
    width: 100%;
    border: 1px solid var(--border);
    text-align: left;
    cursor: pointer;
}

.stat-card-button:hover {
    border-color: rgba(23, 166, 115, 0.42);
    transform: translateY(-2px);
}

.dashboard-focus-panel {
    min-height: 420px;
}

.dashboard-work-list,
.dashboard-project-watch,
.dashboard-alert-list {
    display: grid;
    gap: 12px;
}

.dashboard-work-item,
.dashboard-project-watch article,
.dashboard-alert-list article {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.dashboard-work-item strong,
.dashboard-work-item small,
.dashboard-project-watch strong,
.dashboard-project-watch small {
    display: block;
}

.dashboard-work-item strong,
.dashboard-project-watch strong,
.dashboard-alert-list strong {
    color: var(--navy);
}

.dashboard-work-item small,
.dashboard-project-watch small,
.dashboard-alert-list small {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-work-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.dashboard-work-progress span {
    color: var(--navy);
    font-weight: 850;
}

.dashboard-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-work-meta > span:not(.status-badge) {
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 750;
}

.dashboard-project-watch article {
    grid-template-columns: minmax(0, 1.1fr) auto;
    align-items: center;
}

.dashboard-project-watch .progress {
    grid-column: 1 / -1;
}

.dashboard-project-watch article > span {
    color: var(--navy);
    font-weight: 850;
}

.dashboard-alert-list article {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.dashboard-alert-list article > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
}

.dashboard-alert-list article > span {
    color: var(--red);
    font-weight: 850;
}

.panel {
    padding: 20px;
}

.chart-panel canvas {
    max-height: 320px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 760;
}

.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.module-toolbar h2 {
    margin: 2px 0 4px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 780;
}

.module-toolbar span {
    color: var(--gray-500);
}

.validation-toolbar {
    align-items: stretch;
}

.validation-counter {
    min-width: 170px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.08);
}

.validation-counter span,
.validation-counter strong {
    display: block;
}

.validation-counter span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.validation-counter strong {
    color: var(--red);
    font-size: 34px;
    font-weight: 850;
}

.validation-alert-panel {
    border-color: rgba(220, 53, 69, 0.2);
}

.validation-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.validation-alert-head h2 {
    margin: 2px 0 4px;
    font-size: 22px;
    font-weight: 780;
}

.validation-alert-head span {
    color: var(--gray-500);
}

.validation-alert-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.validation-alert-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.validation-alert-list strong,
.validation-alert-list small {
    display: block;
}

.validation-alert-list small {
    color: var(--gray-500);
}

.validation-alert-list article > span {
    color: var(--navy);
    font-weight: 850;
    white-space: nowrap;
}

.validation-assets {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.validation-assets .status-badge {
    border: 0;
}

.clients-panel-header {
    align-items: flex-end;
}

.quick-search {
    position: relative;
    width: min(320px, 100%);
}

.quick-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: var(--gray-500);
    transform: translateY(-50%);
}

.quick-search .form-control {
    min-height: 42px;
    padding-left: 38px;
}

.clients-table td {
    vertical-align: middle;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.icon-button.danger {
    color: var(--red);
}

.icon-button.success {
    color: var(--green);
}

.icon-button.success:hover {
    border-color: rgba(23, 166, 115, 0.34);
    box-shadow: 0 10px 22px rgba(23, 166, 115, 0.12);
}

.icon-button.danger:hover {
    border-color: rgba(220, 53, 69, 0.34);
    box-shadow: 0 10px 22px rgba(220, 53, 69, 0.12);
}

.buildtrack-modal {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 42, 68, 0.22);
}

.buildtrack-modal .modal-header,
.buildtrack-modal .modal-footer {
    border-color: var(--border);
}

.buildtrack-modal .modal-title {
    margin: 2px 0 0;
    color: var(--navy);
    font-weight: 760;
}

.client-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.client-profile h2 {
    margin: 2px 0 10px;
    color: var(--navy);
    font-weight: 780;
}

.client-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
}

.client-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.client-info-list div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.client-info-list i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.client-info-list span,
.client-info-list strong {
    display: block;
}

.client-info-list span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-info-list strong {
    margin-top: 3px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.project-toolbar,
.projects-panel-header {
    align-items: flex-end;
}

.stats-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.projects-table,
.tracking-works-table,
.progress-history-table,
.works-management-table {
    --bs-table-bg: var(--white);
    --bs-table-striped-bg: #f8fbfd;
    --bs-table-hover-bg: #eef8f4;
    margin-bottom: 0;
    border: 1px solid #cfd8e3;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 42, 68, 0.07);
}

.projects-table,
.tracking-works-table,
.progress-history-table,
.works-management-table {
    min-width: max-content;
}

.table-responsive:has(.projects-table),
.table-responsive:has(.tracking-works-table),
.table-responsive:has(.progress-history-table),
.table-responsive:has(.works-management-table),
.progress-table-shell {
    width: 100%;
    max-width: 100%;
    padding: 1px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #dbe3ec;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(15, 42, 68, 0.34) transparent;
}

.progress-table-shell {
    overscroll-behavior-x: contain;
    min-width: 0;
    overflow-x: hidden;
}

.progress-table-shell .dt-container,
.progress-table-shell .dt-layout-row,
.progress-table-shell .dt-scroll,
.progress-table-shell .dt-scroll-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.progress-table-shell .dt-scroll-body {
    border-bottom: 0;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.progress-table-shell .dt-layout-row {
    margin-inline: 0;
}

.progress-table-shell .dt-layout-cell {
    padding-inline: 0;
}

.progress-table-shell .dt-info,
.progress-table-shell .dt-search,
.progress-table-shell .dt-paging {
    padding: 8px 10px;
}

.projects-table thead th,
.tracking-works-table thead th,
.progress-history-table thead th,
.works-management-table thead th {
    padding: 12px 14px;
    border-right: 1px solid #cfd8e3;
    border-bottom: 2px solid #b9c7d5;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
    color: #344054;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.projects-table thead th:last-child,
.tracking-works-table thead th:last-child,
.progress-history-table thead th:last-child,
.works-management-table thead th:last-child,
.projects-table tbody td:last-child,
.tracking-works-table tbody td:last-child,
.progress-history-table tbody td:last-child,
.works-management-table tbody td:last-child {
    border-right: 0;
}

.projects-table tbody td,
.tracking-works-table tbody td,
.progress-history-table tbody td,
.works-management-table tbody td {
    padding: 13px 14px;
    border-right: 1px solid #dbe3ec;
    border-bottom: 1px solid #dbe3ec;
    color: #344054;
    font-size: 13px;
    vertical-align: middle;
    background-clip: padding-box;
}

.projects-table tbody tr:nth-child(even) td,
.tracking-works-table tbody tr:nth-child(even) td,
.progress-history-table tbody tr:nth-child(even) td,
.works-management-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.projects-table tbody tr:hover td,
.tracking-works-table tbody tr:hover td,
.progress-history-table tbody tr:hover td,
.works-management-table tbody tr:hover td {
    background: #eef8f4;
}

.projects-table tbody tr:last-child td,
.tracking-works-table tbody tr:last-child td,
.progress-history-table tbody tr:last-child td,
.works-management-table tbody tr:last-child td {
    border-bottom: 0;
}

.projects-table.table > :not(caption) > * > *,
.tracking-works-table.table > :not(caption) > * > *,
.progress-history-table.table > :not(caption) > * > *,
.works-management-table.table > :not(caption) > * > * {
    box-shadow: none;
}

.project-title-cell {
    display: grid;
    gap: 4px;
    min-width: 240px;
}

.project-title-cell span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-title-cell strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.project-title-cell small,
.project-title-cell em {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.project-title-cell em {
    color: var(--red);
    font-weight: 850;
}

.project-period {
    color: var(--gray-500);
    font-weight: 750;
    white-space: nowrap;
}

.project-work-count {
    display: inline-grid;
    min-width: 34px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--navy);
    font-weight: 850;
}

.project-create-page {
    display: grid;
    gap: 24px;
}

.project-create-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border: 1px solid rgba(15, 159, 110, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 15%, rgba(51, 194, 143, 0.2), transparent 28%),
        linear-gradient(135deg, #0e2b45 0%, #123d55 65%, #126145 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 42, 68, 0.16);
}

.project-create-hero h2 {
    margin: 7px 0 8px;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 900;
}

.project-create-hero .eyebrow,
.project-create-hero > div > span {
    color: rgba(255, 255, 255, 0.72);
}

.project-create-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #b9f3dc;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.project-create-back:hover {
    color: #fff;
}

.project-create-hero-mark {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 38px;
    backdrop-filter: blur(10px);
}

.project-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.project-create-main {
    display: grid;
    gap: 20px;
}

.project-create-section {
    padding: 28px;
}

.project-create-section-head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.project-create-section-head > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #e9f8f2;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.project-create-section-head h3,
.project-create-summary h3 {
    margin: 2px 0 4px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.project-create-section-head small {
    color: var(--gray-500);
    font-weight: 650;
}

.project-create-consumable-head .btn {
    margin-left: auto;
    white-space: nowrap;
}

.project-create-consumables {
    display: grid;
    gap: 12px;
}

.project-create-consumable-empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 25px;
    border: 1px dashed #b8c7d6;
    border-radius: 12px;
    background: #f8fbfd;
    color: var(--gray-500);
    text-align: center;
}

.project-create-consumable-empty[hidden] {
    display: none;
}

.project-create-consumable-empty > i {
    margin-bottom: 5px;
    color: var(--green);
    font-size: 31px;
}

.project-create-consumable-empty strong {
    color: var(--navy);
}

.project-create-consumable-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) minmax(180px, 1fr) 38px;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.project-create-consumable-row .icon-button {
    margin-bottom: 2px;
}

.project-consumables-error {
    margin-top: 10px;
}

.project-create-aside {
    position: sticky;
    top: 92px;
}

.project-create-summary {
    padding: 25px;
    border-top: 4px solid var(--green);
}

.project-create-summary > span {
    display: block;
    margin-bottom: 22px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-create-summary dl {
    display: grid;
    gap: 0;
    margin: 0 0 20px;
}

.project-create-summary dl div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.project-create-summary dt {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.project-create-summary dd {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.project-create-assurance {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 10px;
    background: #edf9f4;
    color: #226c52;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.project-create-assurance i {
    margin-top: 2px;
}

.project-create-summary .btn + .btn {
    margin-top: 9px;
}

.delivery-note-page {
    display: grid;
    gap: 22px;
}

.delivery-note-hero,
.delivery-note-document-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 10%, rgba(49, 205, 149, 0.22), transparent 30%),
        linear-gradient(135deg, #102f49 0%, #16455d 65%, #126148 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 42, 68, 0.16);
}

.delivery-note-hero a,
.delivery-note-document-head a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #bdf4df;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.delivery-note-hero h2,
.delivery-note-document-head h2 {
    margin: 6px 0;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.delivery-note-hero .eyebrow,
.delivery-note-hero > div > span,
.delivery-note-document-head .eyebrow,
.delivery-note-document-head > div > span {
    color: rgba(255, 255, 255, 0.72);
}

.delivery-note-hero-icon {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 38px;
}

.delivery-project-picker {
    padding: 20px 24px;
}

.delivery-project-picker form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .6fr);
    gap: 24px;
    align-items: end;
}

.delivery-project-destination {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    background: #edf9f4;
}

.delivery-project-destination i {
    grid-row: 1 / 3;
    color: var(--green);
    font-size: 20px;
}

.delivery-project-destination span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-project-destination strong {
    color: var(--navy);
    font-size: 13px;
}

.delivery-note-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.delivery-note-create-main {
    display: grid;
    gap: 20px;
}

.delivery-note-section,
.delivery-note-action-panel {
    padding: 28px;
}

.delivery-note-section-head {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.delivery-note-section-head > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #e8f8f1;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.delivery-note-section-head h3 {
    margin: 2px 0 4px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.delivery-note-section-head small {
    color: var(--gray-500);
    font-weight: 650;
}

.delivery-note-items-table,
.delivery-note-document-table,
.delivery-note-action-table {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.delivery-note-items-table thead th,
.delivery-note-document-table thead th,
.delivery-note-action-table thead th {
    padding: 12px;
    background: #f1f6f9;
    color: #344054;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.delivery-note-items-table tbody td,
.delivery-note-document-table tbody td,
.delivery-note-action-table tbody td {
    padding: 13px 12px;
    border-color: var(--border);
    color: #344054;
    font-size: 13px;
}

.delivery-note-items-table tbody tr.is-selected td {
    background: #edf9f4;
}

.delivery-note-items-table strong,
.delivery-note-items-table small,
.delivery-note-document-table strong,
.delivery-note-document-table small,
.delivery-note-action-table strong,
.delivery-note-action-table small {
    display: block;
}

.delivery-note-items-table small,
.delivery-note-document-table small,
.delivery-note-action-table small {
    margin-top: 3px;
    color: var(--gray-500);
}

.delivery-note-items-table .input-group {
    min-width: 170px;
}

.delivery-note-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--gray-500);
    text-align: center;
}

.delivery-note-empty i {
    color: var(--green);
    font-size: 32px;
}

.delivery-note-empty strong {
    color: var(--navy);
}

.delivery-note-items-error {
    margin-top: 10px;
}

.delivery-note-create-aside {
    position: sticky;
    top: 92px;
}

.delivery-note-summary {
    padding: 25px;
    border-top: 4px solid var(--green);
}

.delivery-note-summary h3 {
    margin: 4px 0;
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
}

.delivery-note-summary > span {
    display: block;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.delivery-note-summary-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.delivery-note-summary-kpi small {
    color: var(--gray-500);
    font-weight: 750;
}

.delivery-note-summary-kpi strong {
    color: var(--navy);
    font-size: 18px;
}

.delivery-note-process {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.delivery-note-process div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}

.delivery-note-process div.active {
    color: var(--green);
}

.delivery-note-process i {
    width: 26px;
}

.delivery-note-summary .btn + .btn {
    margin-top: 9px;
}

.delivery-note-document-head {
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #0f2f49, #16455d);
}

.delivery-note-document-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-note-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 9px 17px;
    border: 2px solid #ffffff;
    background: #ffffff;
    color: #b42318;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.delivery-note-pdf-button:hover,
.delivery-note-pdf-button:focus {
    border-color: #ffe0dc;
    background: #fff5f3;
    color: #912018;
    transform: translateY(-1px);
}

.delivery-note-pdf-button > i {
    font-size: 25px;
}

.delivery-note-pdf-button > span,
.delivery-note-pdf-button strong,
.delivery-note-pdf-button small {
    display: block;
    text-align: left;
}

.delivery-note-pdf-button strong {
    font-size: 13px;
    line-height: 1.2;
}

.delivery-note-pdf-button small {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
    font-weight: 750;
}

.permission-button {
    color: #0f8f65;
}

.permissions-page {
    display: grid;
    gap: 22px;
}

.permissions-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 29px 34px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 87% 10%, rgba(52, 211, 153, .22), transparent 30%),
        linear-gradient(135deg, #102f49 0%, #16475e 65%, #126148 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 42, 68, .16);
}

.permissions-hero a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #bdf4df;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.permissions-hero h2 {
    margin: 6px 0;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.permissions-hero .eyebrow,
.permissions-hero > div > span {
    color: rgba(255, 255, 255, .72);
}

.permissions-hero-icon {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    background: rgba(255, 255, 255, .1);
    font-size: 38px;
}

.permissions-admin-notice {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 25px;
}

.permissions-admin-notice > i {
    color: var(--green);
    font-size: 32px;
}

.permissions-admin-notice strong,
.permissions-admin-notice span {
    display: block;
}

.permissions-admin-notice strong {
    color: var(--navy);
    font-size: 17px;
}

.permissions-admin-notice span {
    margin-top: 4px;
    color: var(--gray-500);
}

.access-mode-panel {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 25px;
    align-items: center;
    padding: 25px;
    margin-bottom: 20px;
}

.access-mode-panel h3 {
    margin: 3px 0 5px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 900;
}

.access-mode-panel > div > span {
    color: var(--gray-500);
    font-size: 13px;
}

.access-mode-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.access-mode-options label {
    cursor: pointer;
}

.access-mode-options input {
    position: absolute;
    opacity: 0;
}

.access-mode-options label > span {
    display: grid;
    min-height: 105px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.access-mode-options input:checked + span {
    border-color: var(--green);
    background: #edf9f4;
    box-shadow: 0 0 0 3px rgba(15, 159, 110, .09);
}

.access-mode-options i {
    color: var(--green);
    font-size: 20px;
}

.access-mode-options strong {
    margin-top: 8px;
    color: var(--navy);
}

.access-mode-options small {
    margin-top: 4px;
    color: var(--gray-500);
    line-height: 1.4;
}

.permissions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.permissions-modules {
    display: grid;
    gap: 15px;
}

.permission-module-card {
    padding: 0;
    overflow: hidden;
}

.permission-module-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    background: #f8fbfd;
}

.permission-module-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    background: #e6f7f0;
    color: var(--green);
}

.permission-module-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.permission-module-head > div:nth-child(2) > span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
}

.module-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.module-toggle input,
.permission-item input {
    accent-color: var(--green);
}

.permission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 17px 20px 20px;
}

.permission-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr 22px;
    gap: 9px;
    align-items: center;
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.permission-item:has(input:checked) {
    border-color: #8fd7bd;
    background: #f0faf6;
}

.permission-item strong,
.permission-item small {
    display: block;
}

.permission-item strong {
    color: var(--navy);
    font-size: 12px;
    line-height: 1.35;
}

.permission-item small {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 9px;
}

.permission-item > i {
    color: transparent;
}

.permission-item:has(input:checked) > i {
    color: var(--green);
}

.permissions-summary {
    position: sticky;
    top: 92px;
}

.permissions-summary .panel {
    padding: 24px;
    border-top: 4px solid var(--green);
}

.permissions-score {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 8px 0 20px;
}

.permissions-score strong {
    color: var(--navy);
    font-size: 40px;
    font-weight: 950;
}

.permissions-score span {
    color: var(--gray-500);
    font-size: 12px;
}

.permissions-summary-user {
    display: grid;
    gap: 3px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.permissions-summary-user span,
.permissions-summary-user small {
    color: var(--gray-500);
    font-size: 11px;
}

.permissions-summary-user strong {
    color: var(--navy);
}

.permissions-security-note {
    display: flex;
    gap: 9px;
    margin: 17px 0;
    padding: 12px;
    border-radius: 9px;
    background: #edf9f4;
    color: #226c52;
    font-size: 11px;
    font-weight: 700;
}

.permissions-summary .btn + .btn {
    margin-top: 9px;
}

@media (max-width: 1199.98px) {
    .permissions-layout {
        grid-template-columns: 1fr;
    }

    .permissions-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .permissions-hero {
        padding: 23px 20px;
    }

    .permissions-hero-icon {
        display: none;
    }

    .access-mode-panel,
    .access-mode-options,
    .permission-list {
        grid-template-columns: 1fr;
    }
}

.delivery-note-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eef2f6;
    color: #475467;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.delivery-note-status.status-emis {
    background: #fff4d6;
    color: #946200;
}

.delivery-note-status.status-en_livraison {
    background: #e8f2ff;
    color: #175cd3;
}

.delivery-note-status.status-livre {
    background: #e8f8f1;
    color: #067647;
}

.delivery-note-status.status-partiel {
    background: #fff1e8;
    color: #b54708;
}

.delivery-note-status.status-refuse,
.delivery-note-status.status-annule {
    background: #feeceb;
    color: #b42318;
}

.delivery-note-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
}

.delivery-note-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 11px;
    padding: 18px 22px;
    border-right: 1px solid var(--border);
}

.delivery-note-timeline div:last-child {
    border-right: 0;
}

.delivery-note-timeline i {
    grid-row: 1 / 3;
    color: #98a2b3;
    font-size: 22px;
}

.delivery-note-timeline span {
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
}

.delivery-note-timeline small {
    color: var(--gray-500);
    font-size: 11px;
}

.delivery-note-timeline .done {
    background: #f0faf6;
}

.delivery-note-timeline .done i {
    color: var(--green);
}

.delivery-note-timeline .current {
    box-shadow: inset 0 -3px 0 var(--green);
}

.delivery-note-document {
    padding: 30px;
}

.delivery-note-parties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.delivery-note-parties > div {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fbfdff;
}

.delivery-note-parties h3 {
    margin: 4px 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.delivery-note-parties span,
.delivery-note-parties small {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 650;
}

.delivery-note-signatures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.delivery-note-signatures article {
    display: grid;
    min-height: 190px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
}

.delivery-note-signatures strong {
    color: var(--navy);
}

.delivery-note-signatures img {
    width: 100%;
    max-width: 310px;
    height: 105px;
    margin-top: 10px;
    object-fit: contain;
    object-position: left center;
}

.delivery-note-signatures span,
.delivery-note-signatures small {
    margin-top: 10px;
    color: var(--gray-500);
    font-size: 12px;
}

.signature-box {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbfd;
}

.signature-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 170px;
    border: 1px dashed #9eb1c3;
    border-radius: 9px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.signature-box > small {
    display: block;
    margin-top: 7px;
    color: var(--gray-500);
}

.delivery-note-events article {
    display: flex;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.delivery-note-events article:last-child {
    border-bottom: 0;
}

.delivery-note-events article > i {
    color: var(--green);
}

.delivery-note-events strong,
.delivery-note-events small {
    display: block;
}

.delivery-note-events strong {
    color: var(--navy);
    font-size: 13px;
}

.delivery-note-events small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 11px;
}

@media (max-width: 1199.98px) {
    .delivery-note-create-layout {
        grid-template-columns: 1fr;
    }

    .delivery-note-create-aside {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .delivery-note-hero,
    .delivery-note-document-head {
        align-items: flex-start;
        padding: 24px 20px;
    }

    .delivery-note-hero-icon {
        display: none;
    }

    .delivery-project-picker form,
    .delivery-note-parties,
    .delivery-note-signatures,
    .delivery-note-timeline {
        grid-template-columns: 1fr;
    }

    .delivery-note-timeline div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .delivery-note-document-actions {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media print {
    .sidebar,
    .topbar,
    .app-footer,
    .delivery-note-document-head a,
    .delivery-note-document-actions .btn,
    .delivery-note-action-panel,
    .delivery-note-events {
        display: none !important;
    }

    .main-shell,
    .page-content {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .delivery-note-document-head {
        padding: 18px 0;
        background: #fff !important;
        color: #102f49 !important;
        box-shadow: none;
    }

    .delivery-note-document-head .eyebrow,
    .delivery-note-document-head > div > span {
        color: #475467 !important;
    }

    .delivery-note-timeline,
    .delivery-note-document {
        box-shadow: none !important;
    }
}

@media (max-width: 1199.98px) {
    .project-create-layout {
        grid-template-columns: 1fr;
    }

    .project-create-aside {
        position: static;
    }

    .project-create-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

@media (max-width: 991.98px) {
    .project-create-consumable-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-create-consumable-row .project-consumable-field {
        grid-column: 1 / -1;
    }

    .project-create-consumable-row .icon-button {
        justify-self: end;
    }
}

@media (max-width: 575.98px) {
    .project-create-hero {
        padding: 24px 20px;
    }

    .project-create-hero-mark {
        display: none;
    }

    .project-create-section {
        padding: 20px 16px;
    }

    .project-create-section-head {
        flex-wrap: wrap;
    }

    .project-create-consumable-head .btn {
        width: 100%;
        margin-left: 0;
    }

    .project-create-consumable-row,
    .project-create-summary dl {
        grid-template-columns: 1fr;
    }

    .project-create-consumable-row .project-consumable-field {
        grid-column: auto;
    }
}

.work-title-cell,
.quantity-cell,
.last-progress-cell {
    display: grid;
    gap: 4px;
}

.work-title-cell {
    min-width: 220px;
}

.work-title-cell strong,
.quantity-cell strong,
.last-progress-cell strong {
    color: var(--navy);
    font-weight: 850;
    line-height: 1.25;
}

.work-title-cell small,
.quantity-cell small,
.last-progress-cell small,
.last-progress-cell span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.work-table-progress {
    min-width: 150px;
}

.history-date-cell,
.history-tags-cell,
.history-observation-cell {
    display: grid;
    gap: 4px;
}

.history-date-cell strong {
    color: var(--navy);
    font-weight: 850;
    white-space: nowrap;
}

.history-date-cell small,
.history-tags-cell small,
.history-observation-cell span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.history-tags-cell {
    min-width: 170px;
}

.history-tags-cell span {
    width: fit-content;
    max-width: 260px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.history-observation-cell {
    min-width: 210px;
    max-width: 360px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.history-table-progress {
    min-width: 150px;
}

.table-action-muted {
    color: var(--gray-500);
    font-weight: 850;
}

.table-progress {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.project-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 42, 68, 0.94), rgba(15, 42, 68, 0.8)),
        url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80") center/cover;
    color: var(--white);
    box-shadow: 0 18px 44px rgba(15, 42, 68, 0.16);
}

.project-hero h2 {
    margin: 2px 0 5px;
    font-size: 30px;
    font-weight: 790;
}

.project-hero span {
    color: rgba(255, 255, 255, 0.78);
}

.project-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-hero .btn-outline-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.42);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.72);
}

.project-detail-layout,
.project-content-grid {
    display: grid;
    gap: 18px;
}

.project-detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.project-content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.project-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.project-summary-top h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-weight: 780;
}

.project-show-page .panel {
    position: relative;
    overflow: hidden;
}

.project-show-page .panel > .panel-header,
.project-show-page .project-summary-top {
    position: relative;
    margin: -20px -20px 18px;
    padding: 16px 20px 16px 24px;
    border-bottom: 1px solid #c8d7e5;
    background: linear-gradient(135deg, #edf8f3 0%, #d9f0e7 100%);
    box-shadow: inset 4px 0 0 var(--green);
}

.project-show-page .project-summary-top {
    align-items: center;
}

.project-show-page .panel > .panel-header .eyebrow,
.project-show-page .project-summary-top .eyebrow {
    color: #0b6f4f;
}

.project-show-page .panel > .panel-header h2,
.project-show-page .project-summary-top h2 {
    color: var(--navy);
}

.project-show-page .panel > .panel-header {
    min-height: 72px;
}

.project-show-page .panel > .panel-header .btn-outline-secondary,
.project-show-page .panel > .panel-header .btn-outline-success {
    background: rgba(255, 255, 255, 0.58);
}

.project-show-page section.panel:nth-of-type(3) > .panel-header,
.project-show-page .project-content-grid .panel:nth-child(2) > .panel-header {
    background: linear-gradient(135deg, #edf5ff 0%, #dbeafe 100%);
    box-shadow: inset 4px 0 0 var(--navy);
}

.project-show-page section.panel:nth-of-type(4) > .panel-header {
    background: linear-gradient(135deg, #edf8f3 0%, #d9f0e7 100%);
    box-shadow: inset 4px 0 0 var(--green);
}

.project-show-page section.panel:nth-of-type(6) > .panel-header {
    background: linear-gradient(135deg, #eaf2ff 0%, #d8e8ff 100%);
    box-shadow: inset 4px 0 0 var(--blue);
}

.project-show-page section.panel:nth-of-type(7) > .panel-header {
    background: linear-gradient(135deg, #fff7e6 0%, #ffedc2 100%);
    box-shadow: inset 4px 0 0 var(--amber);
}

.project-show-page .progress-panel {
    padding-top: 72px;
}

.project-show-page .progress-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    border-bottom: 1px solid #c8d7e5;
    background: linear-gradient(135deg, #edf5ff 0%, #dbeafe 100%);
    box-shadow: inset 4px 0 0 var(--navy);
}

.project-show-page .progress-panel > .eyebrow {
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 1;
    color: var(--navy);
}

.project-description {
    margin: 0 0 18px;
    color: var(--gray-500);
    line-height: 1.65;
}

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

.project-info-grid div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.project-info-grid span,
.project-info-grid strong,
.project-info-grid small {
    display: block;
}

.project-info-grid span {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-info-grid strong {
    margin-top: 4px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.project-info-grid small {
    margin-top: 3px;
    color: var(--gray-500);
}

.progress-panel {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    text-align: center;
}

.progress-ring {
    width: 178px;
    height: 178px;
    display: grid;
    place-items: center;
    margin: 18px auto;
    border-radius: 50%;
    background: conic-gradient(var(--progress-color, var(--green)) calc(var(--progress) * 1%), var(--gray-100) 0);
}

.progress-ring > div {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--border);
}

.progress-ring strong {
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
}

.progress-ring span {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.progress-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.progress-meta span {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.consumable-list {
    display: grid;
    gap: 10px;
}

.consumable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.consumable-row strong,
.consumable-row small {
    display: block;
}

.consumable-row small {
    margin-top: 3px;
    color: var(--gray-500);
}

.consumable-row span {
    flex-shrink: 0;
    color: var(--navy);
    font-weight: 800;
}

.project-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-photo-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.enhanced-photo-card {
    position: relative;
}

.photo-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.file-preview-button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--border);
    background: var(--gray-100);
    color: var(--navy);
    cursor: pointer;
    text-decoration: none;
}

.file-preview-button i {
    color: var(--danger);
    font-size: 34px;
}

.file-preview-button span {
    font-weight: 900;
    letter-spacing: 0;
}

.project-photo-card img,
.photo-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.project-photo-card img {
    display: block;
    object-fit: cover;
}

.photo-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 42, 68, 0.1), rgba(23, 166, 115, 0.1));
    color: var(--gray-500);
    text-align: center;
}

.photo-placeholder i {
    color: var(--navy);
    font-size: 28px;
}

.photo-placeholder span {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.project-photo-card > div:last-child {
    padding: 12px;
}

.project-photo-card strong,
.project-photo-card small {
    display: block;
}

.project-photo-card small {
    margin-top: 4px;
    color: var(--gray-500);
}

.photo-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.photo-filter-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.photo-filter-strip .status-badge {
    border: 0;
}

.photo-filter-strip .active {
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.photo-upload-preview {
    display: grid;
    place-items: center;
    min-height: 190px;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-500);
    font-weight: 800;
}

.photo-upload-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.photo-preview-modal .modal-body {
    text-align: center;
}

.photo-preview-modal img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gray-100);
}

.photo-preview-modal p {
    margin: 12px 0 0;
    color: var(--gray-500);
    font-weight: 700;
}

.empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--gray-500);
    background: var(--gray-50);
}

.work-project-selector {
    display: grid;
    grid-template-columns: minmax(180px, 0.18fr) minmax(260px, 0.82fr);
    align-items: end;
    gap: 12px;
}

.progress-step-selector {
    grid-template-columns: minmax(240px, 0.35fr) minmax(280px, 0.65fr);
    align-items: center;
}

.progress-step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-step-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 850;
}

.progress-step-heading strong,
.progress-step-heading small {
    display: block;
}

.progress-step-heading strong {
    color: var(--navy);
    font-weight: 850;
}

.progress-step-heading small {
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.work-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-block-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 42, 68, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-block-card:hover {
    border-color: rgba(23, 166, 115, 0.36);
    box-shadow: 0 18px 38px rgba(15, 42, 68, 0.1);
    transform: translateY(-2px);
}

.project-block-top,
.project-block-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.project-block-top span,
.project-block-top strong,
.project-block-top small,
.project-block-footer span,
.project-block-footer strong {
    display: block;
}

.project-block-top > div > span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-block-top strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

.project-block-top small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.project-card-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
    font-size: 12px;
    font-weight: 850;
}

.project-block-progress {
    display: grid;
    gap: 8px;
}

.project-block-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.project-block-progress span,
.project-block-meta span,
.project-block-footer span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.project-block-progress strong,
.project-block-meta strong,
.project-block-footer strong {
    color: var(--navy);
    font-weight: 850;
}

.project-block-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.project-block-meta div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.project-block-meta strong,
.project-block-footer strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.project-block-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-search-empty,
.project-empty-state {
    grid-column: 1 / -1;
}

.work-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.06);
}

.work-card-header,
.work-card-footer,
.work-progress-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.work-card-header {
    margin-bottom: 16px;
}

.work-card-header strong,
.work-card-header small {
    display: block;
}

.work-card-header strong {
    color: var(--navy);
    font-size: 17px;
}

.work-card-header small,
.work-card-footer span {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.work-progress-block {
    margin-bottom: 16px;
}

.work-progress-block .progress {
    flex: 1;
}

.work-progress-block strong {
    color: var(--navy);
    font-size: 18px;
}

.work-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.work-metrics div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--border);
}

.work-metrics span,
.work-metrics strong {
    display: block;
}

.work-metrics span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.work-metrics strong {
    margin-top: 3px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.project-work-card-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mini-work-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.mini-work-card strong,
.mini-work-card small {
    display: block;
}

.mini-work-card strong {
    color: var(--navy);
}

.mini-work-card small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.auto-status-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 166, 115, 0.24);
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.08);
    color: var(--navy);
    font-weight: 700;
}

.auto-status-note i {
    color: var(--green);
}

.progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.progress-layout-single {
    grid-template-columns: 1fr;
}

.progress-main,
.progress-main .panel {
    min-width: 0;
}

.tracking-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tracking-work-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.tracking-work-card.is-selected {
    border-color: rgba(23, 166, 115, 0.72);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(23, 166, 115, 0.16);
    transform: translateY(-2px);
}

.tracking-work-card.is-selected .btn {
    background: var(--green);
    border-color: var(--green);
}

.tracking-work-top,
.tracking-work-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-work-top strong,
.tracking-work-top small {
    display: block;
}

.tracking-work-top strong {
    color: var(--navy);
    font-size: 16px;
}

.tracking-work-top small,
.tracking-work-meta span {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.tracking-work-last {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 42, 68, 0.08);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.tracking-work-last i {
    margin-top: 2px;
    color: var(--green);
}

.tracking-work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tracking-work-actions .btn {
    flex: 1 1 180px;
}

.progress-form-panel {
    position: sticky;
    top: 120px;
}

.progress-entry-modal .modal-body {
    padding-bottom: 18px;
}

.progress-entry-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--white);
}

.work-history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.work-history-summary div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.work-history-summary span,
.work-history-summary strong {
    display: block;
}

.work-history-summary span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.work-history-summary strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.work-history-table td {
    vertical-align: top;
}

.tracking-works-responsive-list {
    display: none;
}

.tracking-works-responsive-tools {
    display: none;
}

.tracking-works-responsive-search {
    position: relative;
}

.tracking-works-responsive-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    color: var(--gray-500);
    transform: translateY(-50%);
}

.tracking-works-responsive-search .form-control {
    padding-left: 38px;
}

.tracking-works-responsive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tracking-works-responsive-filters button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
    font-weight: 850;
}

.tracking-works-responsive-filters button.active {
    border-color: rgba(23, 166, 115, 0.34);
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.tracking-works-responsive-count {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.tracking-works-responsive-empty {
    display: none;
}

.tracking-work-responsive-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.tracking-work-responsive-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-work-responsive-head strong,
.tracking-work-responsive-head small {
    display: block;
}

.tracking-work-responsive-head strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tracking-work-responsive-head small {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.tracking-work-responsive-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.tracking-work-responsive-progress strong {
    color: var(--navy);
    font-weight: 850;
}

.tracking-work-responsive-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.tracking-work-responsive-meta div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--gray-50);
}

.tracking-work-responsive-meta dt {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.tracking-work-responsive-meta dd {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tracking-work-responsive-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tracking-work-responsive-actions .btn {
    min-height: 42px;
}

@media (max-width: 1199.98px) {
    .tracking-works-table,
    .progress-history-table {
        min-width: 980px;
    }

    .work-history-table {
        min-width: 860px;
    }

    .tracking-works-table thead th,
    .progress-history-table thead th,
    .tracking-works-table tbody td,
    .progress-history-table tbody td {
        padding-right: 10px;
        padding-left: 10px;
    }

    .work-title-cell {
        min-width: 190px;
        max-width: 240px;
    }

    .work-title-cell strong,
    .history-observation-cell {
        overflow-wrap: anywhere;
    }

    .table-progress,
    .work-table-progress,
    .history-table-progress {
        min-width: 128px;
    }

    .table-progress {
        grid-template-columns: minmax(78px, 1fr) auto;
        gap: 8px;
    }

    .history-tags-cell {
        min-width: 140px;
    }

    .history-tags-cell span {
        max-width: 190px;
    }

    .history-observation-cell {
        min-width: 170px;
        max-width: 240px;
    }

    .project-period {
        white-space: normal;
    }
}

@media (max-width: 991.98px) {
    .module-toolbar h2 {
        font-size: 24px;
        line-height: 1.18;
    }

    .progress-step-selector {
        gap: 14px;
    }

    .progress-table-shell {
        margin-inline: -2px;
        border-radius: 8px;
    }

    .progress-table-shell .dt-layout-row {
        display: grid;
        gap: 8px;
    }

    .progress-table-shell .row {
        --bs-gutter-x: 0;
        row-gap: 8px;
    }

    .progress-table-shell .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
    }

    .progress-table-shell .dt-layout-cell,
    .progress-table-shell .dt-search,
    .progress-table-shell .dt-paging {
        width: 100%;
    }

    .progress-table-shell .dt-search {
        text-align: left;
    }

    .progress-table-shell .dt-search input {
        width: 100%;
        margin-left: 0;
    }

    .progress-table-shell .dt-paging nav,
    .progress-table-shell .pagination {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .tracking-works-table,
    .progress-history-table {
        min-width: 900px;
    }

    .tracking-works-table thead th,
    .progress-history-table thead th {
        font-size: 10px;
    }

    .tracking-works-table tbody td,
    .progress-history-table tbody td {
        font-size: 12px;
    }

    .tracking-works-table .icon-button,
    .progress-history-table .icon-button {
        width: 36px;
        height: 36px;
    }

    .tracking-works-table .table-actions,
    .progress-history-table .table-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }

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

    .progress-entry-modal .modal-dialog,
    .work-history-modal .modal-dialog,
    .progress-photos-modal .modal-dialog {
        width: calc(100% - 24px);
        max-width: none;
        margin-right: auto;
        margin-left: auto;
    }

    .progress-consumable-row {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
    }
}

@media (max-width: 767.98px) {
    .tracking-works-table,
    .progress-history-table {
        min-width: 820px;
    }

    .work-history-table {
        min-width: 760px;
    }

    .progress-consumable-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tracking-works-table-shell {
        display: none;
    }

    .tracking-works-responsive-list {
        display: grid;
        gap: 12px;
    }

    .tracking-works-responsive-tools {
        display: grid;
        gap: 10px;
        margin-bottom: 12px;
    }

    .tracking-works-responsive-empty:not([hidden]) {
        display: grid;
    }

    .tracking-work-responsive-head,
    .tracking-work-responsive-actions {
        grid-template-columns: 1fr;
    }

    .tracking-work-responsive-head {
        display: grid;
    }

    .tracking-work-responsive-meta {
        grid-template-columns: 1fr;
    }
}

.progress-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.progress-photo-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.progress-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: var(--gray-100);
}

.progress-photo-card div {
    padding: 10px 12px;
}

.progress-photo-card strong,
.progress-photo-card small {
    display: block;
}

.progress-photo-card strong {
    color: var(--navy);
    font-size: 13px;
}

.progress-photo-card small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.selected-work-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(15, 42, 68, 0.14);
    border-radius: 8px;
    background: var(--gray-50);
}

.selected-work-box.is-ready {
    border-color: rgba(23, 166, 115, 0.34);
    background: rgba(23, 166, 115, 0.08);
}

.selected-work-box i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.quantity-input-wrap {
    position: relative;
}

.quantity-input-wrap .form-control {
    padding-right: 78px;
}

.quantity-input-wrap span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    max-width: 58px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.selected-work-box strong,
.selected-work-box small {
    display: block;
}

.selected-work-box strong {
    color: var(--navy);
}

.selected-work-box small {
    margin-top: 3px;
    color: var(--gray-500);
}

.progress-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
}

.timeline-marker {
    width: 14px;
    height: 14px;
    margin-top: 18px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--gray-500);
    box-shadow: 0 0 0 1px var(--border);
}

.timeline-marker.status-soumis {
    background: #f59e0b;
}

.timeline-marker.status-valide {
    background: var(--green);
}

.timeline-marker.status-rejete {
    background: var(--red);
}

.timeline-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-50);
}

.timeline-card-header,
.timeline-metrics,
.timeline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-card-header strong,
.timeline-card-header small {
    display: block;
}

.timeline-card-header strong {
    color: var(--navy);
}

.timeline-card-header small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.timeline-metrics {
    justify-content: flex-start;
    margin-top: 12px;
}

.timeline-metrics span {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.daily-target-result {
    padding: 12px 14px;
    border: 1px solid rgba(15, 159, 110, 0.22);
    border-radius: 8px;
    background: rgba(15, 159, 110, 0.08);
}

.daily-target-result.is-good {
    border-color: rgba(15, 159, 110, 0.34);
    background: rgba(15, 159, 110, 0.1);
}

.daily-target-result.is-warning {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.1);
}

.daily-target-result.is-danger {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.08);
}

.daily-target-result span,
.daily-target-result strong,
.daily-target-result small {
    display: block;
}

.daily-target-result span {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.daily-target-result strong {
    margin-top: 2px;
    color: var(--navy);
    font-size: 22px;
}

.daily-target-result small {
    color: var(--gray-500);
    font-weight: 700;
}

.empty-state-card {
    width: 100%;
    border-style: dashed;
}

.empty-state.empty-state-card::before {
    display: none;
}

.empty-state-card i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.1);
    color: var(--green);
    font-size: 19px;
}

.empty-state-card strong,
.empty-state-card span {
    display: block;
}

.empty-state-card strong {
    color: var(--navy);
    font-size: 15px;
}

.empty-state-card span {
    max-width: 360px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
}

.timeline-card p {
    margin: 12px 0 0;
    color: var(--gray-500);
}

.timeline-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

.module-placeholder {
    min-height: 360px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 42, 68, 0.08);
}

.module-placeholder-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
    font-size: 28px;
}

.module-placeholder h2 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-weight: 780;
}

.module-placeholder p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--gray-500);
}

.progress-thin {
    height: 8px;
    min-width: 110px;
    background: var(--gray-100);
}

.progress-bar {
    background: var(--progress-color, var(--green));
}

.progress-good {
    --progress-color: var(--green);
}

.progress-warning {
    --progress-color: #f59e0b;
}

.progress-danger {
    --progress-color: var(--red);
}

.project-delay-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.08);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.status-active,
.status-actif,
.status-en_cours {
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.status-delayed,
.status-suspendu,
.status-inactif,
.status-en_retard {
    background: rgba(220, 53, 69, 0.12);
    color: var(--red);
}

.status-planned,
.status-negociation,
.status-a_faire,
.status-signe,
.status-termine {
    background: rgba(15, 42, 68, 0.1);
    color: var(--navy);
}

.status-soumis {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.status-valide {
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.status-entree {
    background: rgba(23, 166, 115, 0.12);
    color: var(--green);
}

.status-sortie {
    background: rgba(220, 53, 69, 0.12);
    color: var(--red);
}

.status-ajustement {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.stock-helper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.progress-consumable-fields {
    display: grid;
    gap: 10px;
}

.progress-consumable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray-100);
}

.progress-consumable-row strong,
.progress-consumable-row small {
    display: block;
}

.progress-consumable-row small {
    color: var(--gray-500);
}

.stock-report-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

@media (max-width: 575.98px) {
    .toolbar-actions,
    .stock-report-inline {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .progress-consumable-row {
        grid-template-columns: 1fr;
    }
}

.status-brouillon {
    background: var(--gray-100);
    color: var(--gray-500);
}

.status-rejete {
    background: rgba(220, 53, 69, 0.12);
    color: var(--red);
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    border-bottom-color: var(--border);
}

.dashboard-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.dashboard-table strong,
.dashboard-table small {
    display: block;
}

.dashboard-table small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    color: var(--gray-500);
    border-top: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
}

.app-footer strong,
.app-footer span {
    display: block;
}

.app-footer strong {
    color: var(--navy);
}

@media (max-width: 1100px) {
    .stats-grid,
    .stats-grid-four,
    .dashboard-grid,
    .client-detail-grid,
    .stats-grid-five,
    .project-detail-layout,
    .project-content-grid,
    .project-card-grid,
    .work-card-grid,
    .project-work-card-strip,
    .progress-layout,
    .tracking-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .progress-layout-single {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 991px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: block;
        pointer-events: none;
        background: rgba(8, 26, 45, 0.48);
        opacity: 0;
        transition: opacity 180ms ease;
    }

    .sidebar-overlay.is-visible {
        pointer-events: auto;
        opacity: 1;
    }

    .login-panel {
        grid-template-columns: 1fr;
        width: min(720px, 100%);
        min-height: auto;
    }

    .login-visual {
        min-height: 420px;
    }

    .login-form-enterprise {
        padding: 46px;
    }
}

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

    .login-trust-grid div {
        min-height: 72px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
}

@media (max-width: 700px) {
    .auth-shell,
    .page-content {
        padding: 16px;
    }

    .login-form,
    .login-visual {
        padding: 28px;
    }

    .login-panel {
        border-radius: 8px;
    }

    .login-visual {
        min-height: auto;
        gap: 28px;
    }

    .login-visual h1 {
        font-size: 34px;
    }

    .login-visual p {
        font-size: 15px;
    }

    .login-form-enterprise {
        padding: 30px 24px;
    }

    .login-form-brand {
        display: flex;
    }

    .login-form h2 {
        font-size: 27px;
    }

    .login-metrics,
    .stats-grid,
    .stats-grid-four,
    .dashboard-grid,
    .client-detail-grid,
    .client-info-list,
    .stats-grid-five,
    .project-detail-layout,
    .project-content-grid,
    .project-info-grid,
    .project-photo-grid,
    .work-project-selector,
    .project-card-grid,
    .work-card-grid,
    .project-work-card-strip,
    .progress-layout,
    .tracking-work-grid {
        grid-template-columns: 1fr;
    }

    .progress-form-panel {
        position: static;
    }

    .tracking-work-top,
    .tracking-work-meta,
    .project-block-top,
    .project-block-footer {
        flex-direction: column;
    }

    .project-block-meta {
        grid-template-columns: 1fr;
    }

    .project-block-actions,
    .project-block-actions .btn {
        width: 100%;
    }

    .executive-dashboard-hero,
    .dashboard-project-watch article,
    .dashboard-alert-list article {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .executive-dashboard-score {
        width: 100%;
    }

    .progress-step-selector {
        align-items: stretch;
    }

    .progress-step-heading {
        align-items: flex-start;
    }

    .tracking-work-card .btn {
        width: 100%;
        min-height: 44px;
    }

    .tracking-work-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .progress-photo-grid {
        grid-template-columns: 1fr;
    }

    .quantity-input-wrap .form-control {
        min-height: 46px;
    }

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

    .work-card-header,
    .work-card-footer,
    .mini-work-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid-six,
    .dashboard-grid-two {
        grid-template-columns: 1fr;
    }

    .module-placeholder {
        align-items: flex-start;
        flex-direction: column;
        min-height: 280px;
        padding: 24px;
    }

    .module-toolbar,
    .clients-panel-header,
    .projects-panel-header,
    .project-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .project-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .project-hero-actions .btn {
        width: 100%;
    }

    .quick-search {
        width: 100%;
    }

    .topbar {
        padding: 14px 16px;
        align-items: flex-start;
    }

    .topbar-actions {
        gap: 8px;
    }

    .logout-button {
        display: none;
    }

    .app-footer {
        flex-direction: column;
        padding: 16px;
    }
}

.btn {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 750;
}

.btn-sm {
    min-height: 34px;
}

.btn-outline-secondary {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: var(--gray-200);
    --bs-btn-hover-bg: var(--gray-100);
    --bs-btn-hover-border-color: var(--gray-200);
    --bs-btn-hover-color: var(--navy);
}

.form-label {
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: var(--border);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 620;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 159, 110, 0.55);
    box-shadow: var(--ring);
}

.form-control::placeholder {
    color: #98a2b3;
    font-weight: 560;
}

.invalid-feedback {
    font-weight: 650;
}

.main-shell {
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.96) 0%, rgba(241, 246, 250, 1) 100%);
}

.topbar {
    box-shadow: 0 10px 28px rgba(18, 38, 63, 0.05);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(8, 26, 45, 0.96) 0%, rgba(18, 38, 63, 0.98) 58%, rgba(13, 50, 70, 1) 100%);
}

.sidebar-brand {
    padding: 6px 4px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand-text,
.sidebar-support-text,
.sidebar .nav-link span,
.sidebar-section-title,
.nav-badge {
    transition: opacity 150ms ease, transform 150ms ease, width 150ms ease;
}

.sidebar-collapse-toggle {
    width: 34px;
    height: 34px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sidebar-collapse-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

body.sidebar-collapsed .sidebar {
    width: 86px;
    padding-right: 14px;
    padding-left: 14px;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-support-text,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .sidebar .nav-link span,
body.sidebar-collapsed .nav-badge {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-6px);
}

body.sidebar-collapsed .sidebar-collapse-toggle {
    position: absolute;
    top: 72px;
    right: -16px;
    z-index: 4;
    background: #102f4d;
    box-shadow: 0 10px 24px rgba(8, 26, 45, 0.24);
}

body.sidebar-collapsed .sidebar-nav {
    gap: 10px;
    margin-top: 34px;
}

body.sidebar-collapsed .sidebar-section {
    gap: 8px;
}

body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    gap: 0;
    width: 48px;
    min-height: 48px;
    padding: 0;
    margin-inline: auto;
}

body.sidebar-collapsed .sidebar .nav-link::before {
    inset: auto auto -2px 50%;
    width: 18px;
    height: 3px;
    transform: translateX(-50%);
}

body.sidebar-collapsed .sidebar .nav-link:hover {
    transform: translateY(-1px);
}

body.sidebar-collapsed .sidebar .nav-link i {
    width: auto;
    font-size: 17px;
}

body.sidebar-collapsed .sidebar-support {
    justify-content: center;
    padding: 10px;
}

body.sidebar-collapsed .sidebar-support i {
    width: 42px;
    height: 42px;
}

@media (max-width: 991.98px) {
    .sidebar-collapse-toggle {
        display: none;
    }

    body.sidebar-collapsed .sidebar {
        width: 280px;
        padding: 24px 18px;
    }

    body.sidebar-collapsed .sidebar-brand-text,
    body.sidebar-collapsed .sidebar-support-text,
    body.sidebar-collapsed .sidebar-section-title,
    body.sidebar-collapsed .sidebar .nav-link span,
    body.sidebar-collapsed .nav-badge {
        width: auto;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
        transform: none;
    }
}

.brand-mark,
.stat-icon,
.icon-button,
.avatar,
.client-avatar,
.module-placeholder-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stat-card,
.panel,
.work-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.94));
    box-shadow: var(--shadow-sm);
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
    opacity: 0.72;
}

.stat-card span {
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.stat-card strong {
    line-height: 1;
}

.stat-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

.stat-icon.neutral {
    background: rgba(18, 38, 63, 0.08);
    color: var(--navy);
}

.stat-icon.warning {
    color: var(--amber);
}

.panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.chart-panel canvas {
    width: 100% !important;
}

.dashboard-table {
    --bs-table-hover-bg: rgba(15, 159, 110, 0.045);
}

.dashboard-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--gray-50);
    color: #475467;
    white-space: nowrap;
}

.dashboard-table tbody td {
    border-bottom-color: rgba(219, 229, 239, 0.82);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dataTables_wrapper .dt-search,
.dataTables_wrapper .dt-info,
.dataTables_wrapper .dt-paging {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
    min-height: 38px;
    border-color: var(--border);
    border-radius: 8px;
}

.dataTables_wrapper .page-link {
    border-color: var(--border);
    color: var(--navy);
    font-weight: 750;
}

.dataTables_wrapper .active > .page-link {
    background: var(--navy);
    border-color: var(--navy);
}

.status-badge {
    gap: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.status-active,
.status-actif,
.status-en_cours,
.status-valide,
.status-entree {
    border-color: rgba(15, 159, 110, 0.2);
}

.status-delayed,
.status-suspendu,
.status-inactif,
.status-en_retard,
.status-sortie,
.status-rejete {
    border-color: rgba(220, 53, 69, 0.22);
}

.status-soumis,
.status-ajustement {
    color: var(--amber);
    border-color: rgba(217, 119, 6, 0.22);
}

.progress {
    overflow: hidden;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(18, 38, 63, 0.04);
}

.progress-thin {
    height: 10px;
}

.progress-bar {
    position: relative;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--progress-color, var(--green)) 82%, white), var(--progress-color, var(--green)));
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 132px;
    padding: 28px;
    text-align: center;
    font-weight: 720;
}

.empty-state::before {
    content: "\f07c";
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15, 159, 110, 0.1);
    color: var(--green);
    font: var(--fa-font-solid);
    font-size: 18px;
}

.ajax-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: start center;
    padding-top: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease;
}

.ajax-loader.is-visible {
    opacity: 1;
}

.ajax-loader-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(18, 38, 63, 0.18);
    color: var(--navy);
}

.swal2-popup.swal2-toast {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(18, 38, 63, 0.18);
}

.error-page {
    width: min(580px, 100%);
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.error-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 8px;
    background: rgba(15, 159, 110, 0.12);
    color: var(--green);
    font-size: 26px;
}

.error-mark-warning {
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber);
}

.error-mark-danger {
    background: rgba(220, 53, 69, 0.12);
    color: var(--red);
}

.error-page h1 {
    margin: 4px 0 10px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 850;
}

.error-page p:not(.eyebrow) {
    margin: 0 auto 22px;
    max-width: 440px;
    color: var(--gray-500);
    line-height: 1.65;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.delivery-flow-head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.delivery-flow-head div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
}

.delivery-flow-head span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15, 159, 110, 0.12);
    color: var(--green);
    font-weight: 850;
}

.delivery-flow-head strong {
    color: var(--navy);
    font-size: 13px;
}

.delivery-flow-head small {
    color: var(--gray-500);
    line-height: 1.35;
}

.project-delivery-helper {
    min-height: 54px;
}

.consumption-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.consumption-detail-grid div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.consumption-detail-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.consumption-detail-grid strong {
    color: var(--navy);
    font-size: 16px;
}

.delivery-batch-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.delivery-batch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: #f8fbfd;
}

.delivery-batch-head div {
    display: grid;
    gap: 2px;
}

.delivery-batch-head strong {
    color: var(--navy);
    font-size: 14px;
}

.delivery-batch-head small {
    color: var(--gray-500);
    font-size: 12px;
}

.delivery-batch-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--border);
}

.delivery-batch-table {
    min-width: 900px;
    font-size: 13px;
}

.delivery-batch-table thead th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.delivery-batch-table tbody td {
    padding: 9px 12px;
    border-color: var(--border);
    vertical-align: middle;
}

.delivery-batch-table tbody tr {
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.delivery-batch-table tbody tr.is-active {
    background: #eefbf5;
    box-shadow: inset 3px 0 0 var(--green);
}

.delivery-batch-table tbody tr.is-focused:not(.is-active) {
    background: #fff8e6;
    box-shadow: inset 3px 0 0 #f3b33d;
}

.delivery-batch-table strong {
    color: var(--navy);
    font-size: 13px;
}

.delivery-batch-table .form-control {
    min-width: 132px;
    text-align: right;
}

.delivery-batch-error {
    padding: 10px 14px 12px;
}

.delivery-picker {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.delivery-picker-search {
    position: relative;
    margin-bottom: 10px;
}

.delivery-picker-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--gray-500);
    transform: translateY(-50%);
    pointer-events: none;
}

.delivery-picker-search .form-control {
    padding-left: 38px;
}

.delivery-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 292px;
    overflow: auto;
    padding-right: 2px;
}

.delivery-option-card {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.delivery-option-card:hover,
.delivery-option-card:focus-visible,
.delivery-option-card.is-selected {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.13);
}

.delivery-option-card.is-selected {
    background: #f3fbf7;
}

.delivery-option-card:focus-visible {
    outline: none;
}

.delivery-option-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.delivery-option-title strong,
.delivery-option-title small {
    overflow-wrap: anywhere;
}

.delivery-option-title strong {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
}

.delivery-option-title small {
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.35;
}

.delivery-option-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.delivery-option-metrics span {
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    background: var(--gray-50);
}

.delivery-option-metrics small {
    display: block;
    margin-bottom: 2px;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.delivery-option-metrics b {
    display: block;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.delivery-empty-state {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 13px;
}

.delivery-option-card[hidden],
.delivery-empty-state[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar-heading {
        flex: 1 1 calc(100% - 56px);
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .page-title {
        font-size: 22px;
    }

    .panel,
    .stat-card {
        padding: 16px;
    }

    .table-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .error-page {
        padding: 28px 18px;
    }

    .delivery-flow-head {
        grid-template-columns: 1fr;
    }

    .delivery-batch-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-show-page .panel > .panel-header,
    .project-show-page .project-summary-top {
        margin: -16px -16px 16px;
        padding: 14px 16px 14px 20px;
    }

    .project-show-page .progress-panel {
        padding-top: 68px;
    }

    .project-show-page .progress-panel > .eyebrow {
        left: 20px;
    }

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

    .delivery-option-grid,
    .delivery-option-metrics {
        grid-template-columns: 1fr;
    }
}
