html,
body {
    scroll-behavior: smooth;
    font-size: small;
}

body.login-body {
    background: #f5f7fb;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    overflow: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-icon {
    font-size: 3rem;
    color: #0d6efd;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
}

.form-options {
    /* display: flex;
    justify-content: space-between; */
    text-align: right;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background-color: #0b5ed7;
}

body.about-body {
    background: #f3f6fc;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: flex-start; */
    align-items: center;
}

.about-container {
    max-width: 800px;
    width: 100%;
}

.about-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
}

.about-card h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-section {
    margin-top: 2rem;
}

.about-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.about-section ul {
    list-style: none;
    padding-left: 1rem;
}

.about-section ul li {
    padding: 0.4rem 0;
    position: relative;
}

.about-section ul li::before {
    content: "•";
    color: #0d6efd;
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
}

.about-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.public-nav {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #0d6efd;
}

.login-container,
.about-container {
    margin-top: 80px;
}

.public-footer {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.85rem;
    /* background: #f9f9f9; */
    margin-top: 3rem;
    border-top: 1px solid #eee;
    min-width: 90%;
}

.alert-error {
    background: #ffe0e0;
    border: 1px solid #ff4d4d;
    color: #a30000;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: auto;
}

.alert-success {
    background: #ffe0e0;
    /* background-color: #ddf5dd; */
    color: #007700;
    border: 1px solid #007700;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: auto;
}

/* ----------------- FRONT RESPONS ---------- */
/* For screens below 768px */
@media (max-width: 768px) {
    .mainDiv {
        grid-template-columns: 1fr;
    }

    .public-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 0.5rem;
        display: flex;
        /* justify-content: space-between; */
        flex-direction: row;
    }

    .about-card,
    .login-card {
        padding: 1.5rem;
    }

    .about-card h1 {
        font-size: 1.5rem;
    }

    .about-section h3 {
        font-size: 1rem;
    }
}

/* For screens below 480px (mobile phones) */
@media (max-width: 480px) {

    body.login-body,
    body.about-body {
        padding: 1rem;
    }

    .login-card,
    .about-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .login-icon {
        font-size: 2.5rem;
    }

    .btn-login {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        display: block;
        padding: 0.25rem 0;
    }

    .about-card h1 {
        font-size: 1.3rem;
    }

    .about-section h3 {
        font-size: 0.95rem;
    }

    .public-footer {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 90%;
    }


}

.mainDiv {
    display: grid;
    /* grid-template-columns: 750px 1fr 400px; */
    grid-template-columns: 300px 1fr 370px;
    grid-template-rows: auto 1fr;
    /* height: 100vh; */
    max-width: 100%;
    transition: all .25s ease;
    /* overflow: auto; */
}

.main {
    padding: 20px;
    /* display: flex;
  flex-direction: column; */
    /* gap: 20px; */
    /* max-width: 550px; */
}

.right-panel {
    /* background: #fff; */
    padding: 20px;
    border-left: 1px solid #ddd;
    background: #fff;
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    padding: 18px;
    border-radius: 12px;
    height: calc(100vh - 64px);
    position: sticky;
    top: 40px;
    overflow: auto;
    /* width: 300px; */
    flex-shrink: 0;
    margin: 5px;
}

.main-container {
    padding: 2rem;
}

#dash {
    width: 100%;
}

#eq {
    margin: 10px;
}

.page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-grid.proj {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}


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

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-header {
    background: #f3f6f9;
    padding: 0.75rem 1rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
}

.kpi .card-body {
    font-size: 0.95rem;
}

.status-ontrack {
    color: green;
    font-weight: bold;
}

.status-warning {
    color: orange;
    font-weight: bold;
}

.status-risk {
    color: red;
    font-weight: bold;
}

.chart-section {
    display: flex;
    flex-wrap: wrap;
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-section .card {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.cpms-body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fb;
}

.group-title {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: #ccc;
}

.dropdown-menu {
    display: none;
    padding-left: 0;
    list-style: none;
}

.dropdown-menu li a {
    padding-left: 2.5rem;
    display: block;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    margin: 10px;
}

.float-end {
    margin-left: auto;
}

.mobile-toggle {
    display: none;
    /* position: fixed; */
    top: 10px;
    left: 15px;
    z-index: 1100;
    /* background: #1a1a2e; */
    /* color: #fff; */
    /* padding: 10px; */
    border-radius: 6px;
    cursor: pointer;
}

.sidebar {
    /* width: 240px; */
    background: #1a1a2e;
    color: #fff;
    /* height: 100vh; */
    /* position: fixed; */
    padding: 1rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    /* z-index: 1000; */
    padding: 1rem;
    border-right: 1px solid #e1e1e1;
    padding: 18px 12px;
    border-radius: 12px;
    height: calc(100vh - 64px);
    position: sticky;
    top: 40px;
}

.sidebar-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.sidebar-nav {
    list-style: none;
    padding-left: 0;
}

.boq-nav {
    list-style: none;
    padding-left: 0;
}

.sidebar-nav li i {
    margin-right: 10px;
}

.sidebar-nav>li {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 0.75rem;
}

.boq-nav>li {
    padding-right: 2px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    align-items: center;
    justify-content: space-between;
}

.sidebar-nav>li:hover {
    background-color: #2e3a59;
    color: #fff;
}

.boq-nav>li:hover {
    background-color: #d5d5d8;
    /* color: #fff; */
    padding-left: 10px;
}

.boq-dropdown {
    display: flex;
    justify-content: space-between;
}

.sidebar-nav a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    display: block;
    border-radius: 5px;
}

.sidebar-nav a:hover {
    background: #364574;
    color: #fff;
}

.sidebar-nav a.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
}

.nav-toggle {
    cursor: pointer;
    display: none;
}

.nav-toggle:hover {
    transform: scale(1.5);
}

.dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    padding-left: 2.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.topbar {
    position: sticky;
    top: 0;
    /* left: 270px; */
    /* right: 0; */
    /* height: 60px; */
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 900;
}

.content {
    margin-left: 240px;
    /* margin-top: 60px; */
    padding: 2rem;
    /* width: calc(100% - 240px); */
}

.project-overview {
    margin-bottom: 10px;
}

/* .topbar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
} */

.topbar .mobile-toggle {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
}

.topbar .project-info,
.topbar .user-info {
    font-weight: 500;
    font-size: 1rem;
    /* color: #333; */
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes wave {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.progress-bar {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    border-radius: 5px;
    position: relative;
    background-size: 200% 100%;
    background-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            transparent 75%,
            transparent);
    animation: wave 6s linear infinite;
}

.bg-secondary {
    background-color: #5e6b61 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.progress-length {
    background-color: lightgrey;
    border-radius: 5px;
    overflow: hidden;
}


.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    color: #fff;
    display: inline-block;
}

.permBadge {
    color: #383c47;
}

.withBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

button,
a {
    max-height: max-content;
}

.badge.bg-danger {
    background-color: #dc3545;
}

.badge.bg-warning {
    background-color: #ffc107;
    color: #000;
}

.badge.bg-success {
    background-color: #28a745;
}

@media (max-width: 768px) {
    .date-time {
        display: none;
    }

    .topbar {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 1.2rem;
        padding-top: 80px;
    }

    .topbar .mobile-toggle {
        display: block;
    }

    /* .chart-section {
        display: contents;
    } */
}

body {
    transition: background-color 0.3s, color 0.3s;
}

.dark-theme {
    background-color: #1c1c1c;
    color: #f1f1f1;
}

.dark-mode .progress-bar {
    background-image: linear-gradient(135deg,
            rgba(0, 0, 0, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2) 75%,
            transparent 75%,
            transparent);
}

.dark-theme .topbar,
.dark-theme .card,
.dark-theme .sidebar,
.dark-theme .content,
.dark-theme .modal-content,
.dark-theme .search-results,
.dark-theme .right-panel,
.dark-theme .bill-block,
.dark-theme .filter-form,
.dark-theme .calendarContainer {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border-color: #444;
}

.dark-theme .topbar,
.dark-theme .card-header,
.dark-theme .card {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dark-theme .card-header {
    background-color: #202020;
    border-bottom: 1px solid #333;
}

/* .dark-theme .progress, */
.dark-theme .form-select,
.dark-theme .project-btn,
.dark-theme .form-control {
    background-color: #333;
    color: #eee;
    border-color: #444;
}

.dark-theme .progress-bar.bg-success {
    background-color: #28a745;
}

.dark-theme .progress-bar.bg-warning {
    background-color: #ffc107;
    color: #000;
}

.dark-theme .progress-bar.bg-danger {
    background-color: #dc3545;
}

.dark-theme .permBadge {
    color: #eee;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    color: #ffc107;
}

.user-info {
    position: relative;
}

.user-toggle {
    border: 1px solid grey;
    cursor: pointer;
    border-radius: 5px;
    font-size: smaller;
    padding: 3px;
}

#userInfo {
    cursor: pointer;
}

/* .user-actions.show {
    display: flex;
} */

/* .user-actions {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 1000;
} */

.user-actions a {
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.user-actions a:last-child {
    border-bottom: none;
}

.user-actions a:hover {
    background-color: #f5f5f5;
}

.dark-theme .user-actions {
    background-color: #2b2b2b;
    border-color: #444;
}

.dark-theme .user-actions a {
    color: #f1f1f1;
    border-bottom: 1px solid #444;
}

.dark-theme .user-actions a:hover {
    background-color: #333;
}

.dark-theme .project-btn:hover {
    background: #364574;
    color: #fff;
}

.user-info {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: 0.5s ease;
    border-radius: 8px;
    padding: 15px;
    display: none;
    z-index: 9999;
}

.user-dropdown.show {
    display: block;
}

.user-section {
    margin-bottom: 10px;
}

.user-section .section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.user-dropdown a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.user-dropdown a:hover,
.alert-item:hover {
    color: #007bff;
}

.alert-item {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #444;
    /* display: flex; */
    align-items: center;
}

.dark-theme .user-dropdown,
.dark-theme .alerts-panel {
    background-color: #2b2b2b;
    border-color: #444;
    color: #eee;
}

.dark-theme .user-dropdown a,
.dark-theme .alerts-panel a {
    color: #ccc;
}

.dark-theme .user-dropdown a:hover,
.dark-theme .alert-item:hover {
    color: #fff;
}

.dark-theme .alert-item {
    color: #ccc;
}

.user-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.user-role.admin {
    color: green;
}

.user-role.staff {
    color: blue;
}

.user-role.unknown {
    color: gray;
}

.mobile-toggle,
.project-info,
.project-select {
    margin: 5px;
}

.calendar-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.calendar-list li {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-list li.overdue {
    background-color: #fff0f0;
    color: #a00;
}

.dark-theme .calendar-list li {
    background-color: #333;
}

.dark-theme .calendar-list li.overdue {
    background-color: #552222;
    color: #ffbbbb;
}

/* .footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #ddd;
    background: #ececec;
}

.footer-links {
    max-width: 960px;
    margin: 0 auto;
}

.quick-links h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.links-grid a {
    display: inline-flex;
    align-items: center;
    background: #e9ecef;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: 0.2s ease-in-out;
}

.links-grid a:hover {
    background: #007bff;
    color: #fff;
}

.footer-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
}

.dark-theme .footer {
    background: #222;
    border-color: #333;
}

.dark-theme .links-grid a {
    background: #333;
    color: #ccc;
}

.dark-theme .links-grid a:hover {
    background: #0d6efd;
    color: #fff;
}

.dark-theme .footer-note {
    color: #777;
} */

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    /* padding: 2rem 1rem; */
    padding: 10px 18px;
    font-size: 0.9rem;

    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px
        /* margin-left: 280px; */
        /* padding: 1rem; */
        /* font-size: 0.85rem; */
        /* color: #888; */
        /* border-top: 1px solid #ddd; */
        /* background: #ececec; */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* .footer-column {
    flex: 1 1 250px;
} */

.footer-column h6 {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list li i {
    margin-right: 10px;
}

.footer-list a {
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.footer-list a:hover {
    color: #007bff;
}

.dark-theme .footer {
    background-color: #1e1e1e;
    color: #ccc;
    border-color: #333;
}

.dark-theme .footer-column h6 {
    color: #fff;
}

.dark-theme .footer-list a {
    color: #aaa;
}

.dark-theme .footer-list a:hover {
    color: #4da3ff;
}

.parent {
    min-height: 100vh;
    display: inline-flex;
    width: 100%;
    /* max-height: 100vh; */
}


@media (max-width: 768px) {
    .footer {
        margin-left: 0;
        /* width: 100%; */
    }
}

@media (max-width: 480px) {
    .footer {
        margin-left: 0;
        /* width: 100%; */
    }
}

.no-projects-link a.btn {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}


.chevron-icon {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
}

/* chevron rotation styling */
.chevron-icon {
    display: inline-block;
    transition: transform .25s ease;
    font-size: 14px;
    line-height: 1;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
}

/* when collapsed, we still want the chevron to show pointing the other way:
   rotate using the container state so visual is always consistent */
.mainDiv.move .chevron-icon {
    transform: rotate(180deg);
}

/* keep hidden content when collapsed */
.mainDiv.move .right-panel .right-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .18s ease, transform .18s ease;
}

/* accessibility helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alerts-icon {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
}

.alerts-icon i {
    font-size: 2rem;
    color: var(--text-color);
}

.alert-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    /* font-size: 0.7rem; */
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: inline-block;
}


.alerts-panel {
    position: absolute;
    top: 100%;
    right: 10px;
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 8px;
    display: none;
    z-index: 999;
}

.alerts-panel.show {
    display: block;
}

.mainDiv.move {
    grid-template-columns: 300px 1fr 50px;
}

.hdn {
    flex-direction: row;
    overflow: hidden;
    padding: 0px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alerts-header h6 {
    margin: 0;
    font-size: 1rem;
}

.alerts-list .alert-item {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.alerts-list .alert-item:last-child {
    border-bottom: none;
}


#calendarContainer {
    height: 260px;
    font-size: 0.85rem;
}

.fc .fc-toolbar-title {
    font-size: 1rem;
}

.fc .fc-daygrid-day-number {
    font-size: 0.8rem;
    padding: 2px;
}

.calendar-list {
    list-style: none;
    padding-left: 0;
}

.calendar-list li {
    font-size: 0.85rem;
}

.next-milestone-highlight {
    /* background-color: #f8f9fa; */
    padding-left: 10px;
    border-left: 4px solid #0d6efd;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-content: space-evenly;
    background: rgba(0, 0, 0, 0.5);

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    max-width: 400px;
    /* margin: 10% auto; */
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 8px;
    margin: 8px 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    background: #ccc;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn:hover {
    background: #218838;
}

.add-btn {
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
}

.add-btn:hover {
    background: #0056b3;
}


.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* padding: 15px; */
    overflow-x: auto;
    margin-top: 20px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    /* font-size: 15px; */
    /* min-width: 700px; */
}

.table-container th,
.table-container td {
    text-align: left;
    padding: 2px 5px;
}

.table-container thead {
    background: #f7f9fc;
    border-bottom: 2px solid #e5e7eb;
}

.table-container thead th {
    font-weight: 600;
    color: #374151;
}

.table-container tbody tr:nth-child(even) {
    background: #f9fafb;
}

.table-container tbody tr:hover {
    background: #eef2ff;
    transition: background 0.2s ease-in-out;
}

.action-btn {
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    margin: 3px;
    /* width: -webkit-fill-available; */
    text-align: center;
    transition: background 0.2s ease-in-out;
}

.action-edit {
    background: #2563eb;
    color: #fff;
}

.action-edit:hover {
    background: #1e40af;
}

.action-delete {
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.action-delete:hover {
    background: #991b1b;
}

/* .form-card {
  background: #f1f5fb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 10px #dde6f2;
}

.form-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-card input[type="text"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd6e4;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.form-card input[type="text"]:focus,
.form-card input[type="number"]:focus,
.form-card input[type="date"]:focus,
.form-card select:focus {
  border-color: #1a73e8;
  outline: none;
  background: #e9f0fe;
} */

.oneInput {
    margin: 10px;
    margin-left: 0;
    width: auto;
}


.form-card.inner {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group.inner {
    display: flex;
    flex-direction: column;
}

.form-group.inner label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group.inner input,
.form-group.inner select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group.inner input:focus,
.form-group.inner select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.save-btn.inner {
    grid-column: 1 / -1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.save-btn.inner:hover {
    background: #0b5ed7;
}

.note {
    font-family: serif;
    /* font-weight: lighter; */
}

.dark-theme .form-card,
.dark-theme .form-card.inner,
.dark-theme .table-card {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border-color: #444;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
}

.dark-theme .form-group label {
    color: #e0e0e0;
}

.dark-theme .form-group input,
.dark-theme .form-group select {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.dark-theme .save-btn {
    background: #0d6efd;
    color: #fff;
}

.dark-theme .save-btn:hover {
    background: #0b5ed7;
}

.table-container th {
    font-weight: 600;
    color: #444;
    background: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 1;
}

.action-edit:hover {
    background: #d0e4ff;
    transform: translateY(-1px);
}

.action-delete:hover {
    background: #fcd0d0;
    transform: translateY(-1px);
}

.dark-theme .table-container {
    background: #2b2b2b;
    color: #e0e0e0;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dark-theme .table-container td,
.dark-theme .fc-day {
    color: #e0e0e0;
}

.dark-theme .table-container th {
    background: #333;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

/* .dark-theme .table-container td {
    border-bottom: 1px solid #444;
} */

.dark-theme .table-container tbody tr:hover {
    background: #383c47;
}

.dark-theme .action-edit {
    background: #263e63;
    color: #4ea8ff;
    border: 1px solid #31527a;
}

.dark-theme .action-edit:hover {
    background: #31527a;
}

.dark-theme .action-delete {
    background: #5a2e2e;
    color: #ff8b8b;
    border: 1px solid #7a3e3e;
}

.dark-theme .action-delete:hover {
    background: #7a3e3e;
}

.dark-theme .table-container tbody tr:nth-child(even) {
    background: #333842;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
    width: 250px;
    margin: 10px;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
}

.header-search i {
    color: #666;
    margin-left: 8px;
    cursor: pointer;
}

.highlight {
    background-color: #ffe58f;
    padding: 0 2px;
    border-radius: 2px;
}


.search-results {
    position: absolute;
    top: 40px;
    max-width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    list-style: none;
    padding: 5px;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.search-results li {
    padding: 5px 10px;
    cursor: pointer;
    border-bottom: 0.5px solid;
}

.search-results li:hover {
    color: #0d6efd;
}


/* @media (max-width: 480px) {
    .header-search {
        display: none;
    }
} */

.filter-sele {
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status-pending { background-color: #ffa500; } /* Orange */
.status-approved { background-color: #007bff; } /* Blue */
.status-forwarded_to_finance { background-color: #17a2b8; } /* Teal */
.status-partially_paid { background-color: #ffc107; } /* Yellow */
.status-paid { background-color: #28a745; } /* Green */
.status-rejected { background-color: #dc3545; } /* Red */

/* .mainDiv {
    display: flex;
    min-height: 100vh;
} */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    margin: 5px;
}

main {
    flex: 1;
    min-width: 0;
    /* padding: 20px; */
}


.project-list {
    list-style: none;
    padding: 0;
}

.project-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    text-align: left;
}

.project-btn:hover {
    background: #ddd;
}

a {
    text-decoration-line: none;
    margin: 5px;
    display: inline-block;
}

.project-info {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .topbar {
        display: grid;
        align-items: center;
        gap: 10px;
        grid-template-columns: auto auto 0.1fr auto;
        padding-top: 15px;
    }

    .project-info {
        grid-column: 1 / -1;
        order: 99;
        text-align: center;
        /* margin: 10px 0 0 0; */
    }

    .header-search {
        grid-column: 1 / -1;
        order: 98;
        width: unset;
    }

    /* .user-dropdown {
        right: unset;
    } */
}


@media (max-width: 1080px) {
    .mainDiv {

        grid-template-columns: 300px 1fr;
    }

    #moveSidebar {
        display: none;
    }

    .right-panel {
        grid-column: 1 / -1;
        margin-top: 20px;
        order: 98;
    }

    #milestonesDiv {
        width: -webkit-fill-available;
    }
}

@media (max-width: 768px) {
    .mainDiv {

        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none
    }

    .sidebar.open {
        display: block;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        top: 0;
    }

    .right-panel {
        grid-column: 1 / -1;
        margin-top: 20px;
        align-items: center;
        order: 99;
    }

    #milestonesDiv {
        width: -webkit-fill-available;
    }

    .nav-toggle {
        display: block;
    }

    .topbar {
        left: 0;
    }

    .content {
        margin-left: 0;
        /* width: 100%; */
    }

    .mobile-toggle {
        display: block;
    }
}

form {
    max-width: 98%;
}

#double {
    max-height: 70vh;
    overflow: auto;
}

@media (min-width: 790px) {
    .mainDiv.proj {
        grid-template-columns: 300px 1fr;
    }
}



/* Responsive helpers (keeps things simple) */
.form-card {
    /* max-width: 980px; */
    margin: 0 auto;
    padding: 1rem;
    /* box-shadow: 0 4px 14px rgba(0, 0, 0, .06); */
    border-radius: 8px;
    background: #fff;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    /* display: flex;
                    flex-direction: column; */
    gap: .35rem;
    margin-bottom: .6rem;
}

.form-group>label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    padding: .5rem .6rem;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

fieldset {
    border-radius: 6px;
}

legend {
    font-size: 0.95rem;
    font-weight: 600;
}

.muted {
    color: #6b6b6b;
    font-size: .85rem;
}

/* Responsive breakpoints */
@media (min-width: 860px) {
    .col-3 {
        flex: 1 1 32%;
    }

    .col-2 {
        flex: 1 1 48%;
    }

    .col-1 {
        flex: 1 1 100%;
    }
}

@media (max-width: 859px) {
    .form-row {
        flex-direction: column;
    }

    .col-3,
    .col-2,
    .col-1 {
        flex: 1 1 100%;
    }
}

/* .btn-login {
                    display: inline-flex;
                    align-items: center;
                    gap: .5rem;
                    padding: .6rem .9rem;
                    border: none;
                    border-radius: 6px;
                    background: #0b5ed7;
                    color: #fff;
                    cursor: pointer;
                    font-weight: 600;
                } */

.btn-reset {
    background: #6c757d;
}

.hidden {
    display: none !important;
}

.mile-badge {
    background: #007bff;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 0.75em;
    margin-left: 4px;
}

.rfm-view-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
}

/* === BOQ-specific styles === */

/* Bill containers */
/* .boq-wrapper .bill-block {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    background: #fafafa;
} */

.boq-wrapper .bill-block h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dsh-click {
    cursor: pointer;
}

.dsh-click:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

/* Elements table */

/* .boq-wrapper .elements-table th,
.boq-wrapper .elements-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px;
    text-align: left;
    font-size: 14px;
} */

/* .boq-wrapper .elements-table th {
    background: #f9f9f9;
    font-weight: 600;
} */

/* Row hover */
/* .boq-wrapper .element-row:hover {
    background: #fdfdfd;
} */

/* Action buttons */
/* .boq-wrapper .action-btn {
  background: #f3f3f3;
  border: none;
  padding: 5px 10px;
  margin-right: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.boq-wrapper .action-btn:hover {
  background: #e0e0e0;
}

.boq-wrapper .action-btn.action-edit {
  color: #007bff;
}
.boq-wrapper .action-btn.action-delete {
  color: #d9534f;
} */

/* Pages toggle row */
.boq-wrapper .element-pages-row {
    background: #fcfcfc;
}

.boq-wrapper .element-pages-row .page-link {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

.boq-wrapper .element-pages-row .page-link:hover {
    text-decoration: underline;
}

/* .boq-wrapper .add-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
} */

/* .boq-wrapper .add-btn:hover {
  background: #218838;
} */

/* Small variant */
.boq-wrapper .add-btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.tabs-container {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    padding: 6px 0;
    flex-wrap: wrap;
}

.tab-switch {
    background: none;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    /* gray */
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-switch:hover {
    color: #111827;
    background: #f3f4f6;
}

.tab-switch.active {
    color: #2563eb;
    /* blue-600 */
    background: #f9fafb;
    font-weight: 600;
}

.tab-switch.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}


.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    padding: 5px 6px;
    /* background: #f9fafb; */
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.filter-form label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-form select,
.filter-form input,
.filter-form input[type="date"] {
    padding: 5px 7px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-form select:focus,
.filter-form input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.filter-form .save-btn {
    padding: 6px 14px;
    /* background: #2563eb;
  color: #fff; */
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-form .save-btn:hover {
    background: #1e40af;
}

.filter-form .cancel-btn {
    padding: 6px 14px;
    /* background: #f3f4f6;
  color: #374151; */
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.filter-form .cancel-btn:hover {
    background: #e5e7eb;
}

.lposM .card {
    border: 1px solid grey;
}

.nums {
    font-size: 24px;
    font-weight: 700;
}

.proj a {
    text-decoration: none;
}

.kpi-wrap {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: start;
    margin-bottom: 8px;
}

.kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 9px;
    /* background: #fff; */
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    min-height: 56px;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

.kpi-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-num {
    font-size: 16px;
    font-weight: 700;
}

.kpi-sub {
    font-size: 11px;
    margin-top: 4px;
}

.kpi-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    /* background:#f8fafc; */
    border: 1px dashed #dbeafe;
    cursor: pointer;
}

.kpi-group .group-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.kpi-pill {
    /* background:#eef2ff;
  color:#3730a3; */
    font-weight: 600;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
}

.kpi-group .details {
    display: none;
    margin-top: 6px;
    gap: 6px;
}

.kpi-group.expanded .details {
    display: flex;
    flex-direction: column;
}

@media (max-width:420px) {
    .kpi-wrap {
        grid-template-columns: 1fr;
    }
}



.project-overview.compact .card-body {
    padding: .6rem .8rem;
}

.proj-compact-header {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.proj-compact-scope {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.proj-title {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
}

.proj-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .35rem;
    margin-top: .45rem;
    font-size: .85rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.meta-label {
    color: #6c757d;
    font-size: .75rem;
}

.meta-value {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-row {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .85rem;
}

.small-progress {
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
    width: 120px;
}

.small-progress>.bar {
    height: 100%;
    display: block;
    text-align: center;
    font-size: 10px;
    line-height: 10px;
    color: #fff;
    padding-left: 4px;
    padding-right: 4px;
}

.scope-summary {
    font-size: .85rem;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.1rem;
    max-height: 2.2rem;
}

@media (max-width:420px) {
    .proj-meta-grid {
        grid-template-columns: 1fr;
    }

    .small-progress {
        width: 100px;
    }
}

.chevron-icon {
    border: 0.5px solid grey;
    border-radius: 100%;
    padding: 3px;
    font-size: larger;
}


.form-gridd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.form-group.fullwidth {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.rfm-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.rfm-table th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.rfm-table td {
    padding: 6px;
    vertical-align: middle;
}

.remove-row-btn {
    background: transparent;
    border: 0;
    font-size: 18px;
    color: #b00;
    cursor: pointer;
}

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

.modal-content table select,
.modal-content table input {
    padding: 3px;
    margin: 0px;
}

.boq-flow {
    font-family: Arial, Helvetica, sans-serif;
    margin: 8px 0;
}

.boq-flow h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #111;
}

.boq-tree {
    list-style: none;
    margin: 0;
    padding-left: 6px;
}

.boq-tree li {
    margin: 6px 0;
    padding-left: 0px;
    position: relative;
}

.boq-tree li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: #e6e6e6;
}

.node-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    display: inline-block;
    width: 14px;
    text-align: center;
    transform: rotate(0deg);
    transition: transform .12s ease;
}

.expanded>.toggle-icon {
    transform: rotate(90deg);
}

.node-bill {
    font-weight: 700;
    font-size: 1.03rem;
    color: #0b4f8a;
    cursor: pointer;
}

.node-element {
    font-weight: 700;
    color: #0a7b56;
    cursor: pointer;
}

.node-page {
    font-style: italic;
    color: #444;
    cursor: pointer;
}

.node-item {
    color: #000;
    padding-left: 8px;
}

.node-meta {
    font-size: 0.9rem;
    color: #666;
    margin-right: 8px;
}

.more-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
}

.action-menu {
    position: absolute;
    z-index: 80;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    border-radius: 6px;
    padding: 4px 0;
    right: 0;
    min-width: 170px;
}

.action-menu button,
.action-menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #222;
}

.action-menu button:hover,
.action-menu a:hover {
    background: #f6f6f6;
}

.children {
    list-style: none;
    margin: 6px 0 6px 18px;
    padding-left: 0;
    display: none;
}

.hint {
    color: #777;
    font-size: 0.95rem;
    margin: 6px 0 10px;
}

.small-muted {
    color: #666;
    font-size: 0.95rem;
}

.badge {
    background: #e9ecef;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.85rem;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.95rem;
}

.table-compact thead th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
    background: #fafafa;
    font-weight: 600;
}

.table-compact tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f3f3;
    vertical-align: middle;
}

.table-compact tbody tr:last-child td {
    border-bottom: none;
}

.table-compact .amount {
    text-align: right;
    white-space: nowrap;
}

.table-compact .qty,
.table-compact .rate {
    text-align: right;
    white-space: nowrap;
    width: 110px;
}

.table-compact .unit {
    width: 90px;
}

.table-compact .actions-cell {
    width: 80px;
    text-align: right;
}


#moveSidebar {
    position: absolute;
    left: -4px;
    top: 12%;
    transform: translateY(-50%);
    width: 30px;
    height: 100px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.9);
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #fff;
}

@media (min-width: 1080px) {
    #moveSidebar {
        /* left: -36px; */
        /* width: 36px;
        height: 72px; */
        display: flex;
    }
}

#moveSidebar .chevron-icon {
    font-size: 24px;
    color: #ddd;
}

.right-panel.collapsed {
    transform: translateX(100%);
}

body .right-panel {
    pointer-events: auto;
}

#moveSidebar .chevron-icon {
    transition: transform .22s ease;
}

#moveSidebar.chev-rotated .chevron-icon {
    transform: rotate(180deg);
}

.dark-theme .more-btn {
    color: #ffffff;
}

.rep-row {
    display: flex;
    gap: .6rem;
    align-items: flex-end;
}

.rep-row .form-group {
    margin-bottom: 0;
}

.rep-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.hidden {
    display: none !important;
}

.rep-template {
    display: none;
}

.btn-small {
    padding: .25rem .5rem;
    font-size: .85rem;
}

.bb {
    font-weight: bolder;
}


.alert-success,
.alert-error {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 500;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    /* large default so initial render isn't clipped */
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease;
    box-sizing: border-box;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


#modalRowsTable input,
#modalRowsTable select,
#modalRowsTable textarea {
    width: 100%;
    box-sizing: border-box;
}

.input-error {
    outline: 2px solid #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 4px;
}

.summary-box {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #333;
    margin-left: 12px;
    font-size: 0.95em;
}

.summary-warning {
    color: #b94949;
    font-weight: 600;
}

.readonly-field {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
}

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

#checkoutModal .modal-content {
    max-height: 80vh;
    overflow: auto;
    min-width: 900px;
}

#allocModal .modal-content {
    max-height: 80vh;
    overflow: auto;
    min-width: 1100px;
}

#timesheetModal .modal-content {
    max-height: 80vh;
    overflow: auto;
}

#modalRowsTable {
    width: 100%;
    min-width: 900px;
}

/* textarea {
                min-height: 48px;
            } */

.etype-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.etype-tab {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #b1b9c4;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.etype-tab:hover {
    background-color: #909fae;
    /* color: #fff; */
}

.etype-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.small-link {
    display: inline-block;
    font-size: larger;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color .12s ease, color .12s ease, transform .08s ease;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    background-color: rgb(112, 201, 111);
}

.small-link:hover {
    background-color: rgba(11, 108, 255, 0.08);
    color: #044bb0;
    text-decoration: none;
    transform: translateY(-1px);
}

.small-link:active {
    transform: translateY(0);
    color: #0b6cff;
}

.small-link:focus {
    outline: 3px solid rgba(11, 108, 255, 0.18);
    outline-offset: 2px;
    box-shadow: none;
}

.small-link[aria-current="page"],
.small-link.current {
    font-weight: 600;
    background-color: rgba(11, 108, 255, 0.10);
}

.small-link.muted,
.small-link--muted {
    color: #666;
}

.small-link.muted:hover,
.small-link--muted:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #444;
}

.small-link.disabled,
.small-link[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
    transform: none;
}

.ref-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
}

.ref-badge.salary {
    background: #fdecec;
    color: #9b1c1c;
    border-color: #f3c2c2;
}

.ref-badge.wage {
    background: #eef7ff;
    color: #0b5ed7;
    border-color: #cfe6ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
      :root {
        --bg: #f6f8fb;
        --card: #ffffff;
        --muted: #6b7280;
        --accent: #0ea5a4;
        --danger: #ef4444;
        --gap: 10px;
        --radius: 9px;
        --glass: rgba(11, 15, 30, 0.04);
        --tint-proc: rgba(255, 238, 174, 0.45);
        /* pale yellow */
        --tint-att: rgba(220, 253, 250, 0.6);
        /* pale teal */
        --tint-pay: rgba(224, 242, 255, 0.7);
        /* pale blue */
        --tint-fin: rgba(236, 233, 255, 0.65);
        /* pale purple */
        --tint-default: rgba(14, 165, 164, 0.03);
        /* previous neutral tint */
        --chip-gap: 8px;
      }

      .cpms {
        font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
        color: #0f172a;
        display: flex;
        flex-direction: column;
        gap: 14px
      }

      .cpms h2 {
        margin: 0;
        font-size: 18px
      }

      .cpms .muted {
        color: var(--muted);
        font-size: 13px
      }

      .kpi-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px
      }

      .kpi1 {
        background: var(--card);
        border-radius: 8px;
        box-shadow: 0 8px 20px var(--glass);
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
      }

      .kpi1:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(11, 15, 30, 0.07)
      }

      .kpi1 .num {
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-weight: 800;
        color: #fff;
        width: 28px;
        height: 28px;
        font-size: 14px;
      }

      .kpi1 .meta {
        min-width: 0
      }

      .kpi1 .title {
        font-weight: 700;
        font-size: 13px;
        line-height: 1.08;
        word-break: break-word;
        white-space: normal;
        max-height: 3.2em;
        overflow: hidden
      }

      .kpi1 .sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: 6px;
        white-space: normal
      }

      .kpi1.proc, .kpi.proc,
      .meta-item.proc {
        background: var(--tint-proc)
      }

      .kpi1.att, .kpi.att,
      .meta-item.att {
        background: var(--tint-att)
      }

      .kpi1.pay, .kpi.pay,
      .meta-item.pay {
        background: var(--tint-pay)
      }

      .kpi1.fin, .kpi.fin {
        background: var(--tint-fin)
      }

      .kpi1.default, .kpi.default {
        background: var(--tint-default)
      }

      .c-teal {
        background: linear-gradient(180deg, #06b6d4, #0891b2)
      }

      .c-green {
        background: linear-gradient(180deg, #10b981, #059669)
      }

      .c-yellow {
        background: linear-gradient(180deg, #f59e0b, #d97706)
      }

      .c-red {
        background: linear-gradient(180deg, #ef4444, #b91c1c)
      }

      .c-purple {
        background: linear-gradient(180deg, #8b5cf6, #6d28d9)
      }

      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--chip-gap)
      }

      .chip {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 5px 6px;
        border-radius: 999px;
        border: 1px solid rgba(11, 15, 30, 0.03);
        box-shadow: 0 6px 12px rgba(11, 15, 30, 0.03);
        font-size: 12px;
        cursor: pointer;
        min-width: 90px;
        max-width: 260px;
        line-height: 1;
        transition: transform .10s ease, box-shadow .10s ease;
      }

      .chip .lab {
        font-weight: 600;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 120px;
        word-break: break-word;
        font-size: 12px
      }

      .chip .count {
        background: rgba(11, 15, 30, 0.05);
        padding: 3px 6px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 11px
      }

      .chip:focus {
        outline: 3px solid rgba(14, 165, 164, 0.12)
      }

      .chip:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(11, 15, 30, 0.05)
      }

      .chip.proc {
        background: var(--tint-proc);
      }

      .chip.att {
        background: var(--tint-att);
      }

      .chip.pay {
        background: var(--tint-pay);
      }

      .chip.fin {
        background: var(--tint-fin);
      }

      @media (min-width:1600px) {
        .chips .chip {
          flex: 0 0 calc((100% - 56px) / 8);
          max-width: none;
          min-width: 0;
          text-align: left;
        }
      }

      @media (min-width:1200px) and (max-width:1599px) {
        .chips .chip {
          flex: 0 0 calc((100% - 5 * var(--chip-gap)) / 6);
          max-width: none;
          min-width: 0;
        }
      }

      @media (min-width:900px) and (max-width:1199px) {
        .chips .chip {
          flex: 0 0 calc((100% - 3 * var(--chip-gap)) / 4);
          max-width: none;
          min-width: 0;
        }
      }

      @media (max-width:899px) {
        .chips .chip {
          flex: 1 1 calc((100% - var(--chip-gap)) / 2);
          max-width: none;
          min-width: 0;
        }
      }

      .sections {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 10px
      }

      .card {
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 8px 20px var(--glass);
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
        /* cursor: pointer; */
      }

      .card.pay {
        background: var(--tint-pay);
      }

      .card.fin {
        background: var(--tint-fin);
      }

      .card h4 {
        margin: 0 0 8px 0;
        font-size: 14px
      }

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

      .progress-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 10px;
        border: 1px solid rgba(11, 15, 30, 0.05);
        font-size: 13px;
        cursor: pointer;
        min-height: 64px;
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
      }

      .progress-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(11, 15, 30, 0.04)
      }

      .progress-item .label {
        font-size: 13px;
        word-break: break-word;
        white-space: normal
      }

      .progress-item .val {
        font-weight: 800;
        margin-top: 8px
      }

      .progress-item.fin:hover {
        background: var(--tint-fin);
      }

      @media (max-width:1200px) {
        .progress-list {
          grid-template-columns: repeat(2, 1fr)
        }
      }

      @media (max-width:700px) {
        .progress-list {
          grid-template-columns: 1fr
        }

        .kpi .num {
          width: 48px;
          height: 48px;
          font-size: 14px
        }
      }

      .charts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
      }

      @media (max-width:1000px) {
        .charts {
          grid-template-columns: 1fr
        }
      }

      @media (max-width:900px) {
        .dashboard-grid {
          grid-template-columns: 1fr !important
        }

        .kpi1 {
          padding: 8px !important;
          min-height: auto !important
        }
      }
      .tabs-header {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    padding: 0;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #0d6efd;
}

.tab-btn.active {
    color: #0d6efd;
    background: #ffffff;
    border-bottom: 3px solid #0d6efd;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
    margin-top: 70px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-lg {
    max-width: 850px;
}

.modal-content.modal-md {
    max-width: 500px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #212529;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* Form Styling in Modals */
.modal-body fieldset {
    border: none;
    padding: 0 0 16px 0;
    margin: 0;
}

.modal-body legend {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    padding: 12px 0 8px 0;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    margin-top: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Button Variants */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0d6efd;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0b5ed7;
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #5c636a;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-info {
    background: #0dcaf0;
    color: #052b36;
}

.btn-info:hover {
    background: #0dbbdc;
}

.btn-success {
    background: #198754;
    color: #ffffff;
}

.btn-success:hover {
    background: #157347;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background: #c82333;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-warning {
    background: #fff3cd;
    color: #664d03;
}

.badge-info {
    background: #cfe2ff;
    color: #084298;
}

.badge-danger {
    background: #f8d7da;
    color: #842029;
}

/* Sections in manage_subcontractor */
.payment-dashboard {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-dashboard h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #212529;
    font-size: 1.1rem;
}

.payment-dashboard h4 {
    margin-top: 12px;
    margin-bottom: 12px;
    color: #495057;
    font-size: 1rem;
}

.transaction-section {
    margin-top: 16px;
}

.milestones-section {
    margin-top: 12px;
}

.pending-payments-section,
.wage-bills-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pending-payments-section h4,
.wage-bills-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #212529;
    font-size: 1.05rem;
}

.action-section {
    margin: 12px 0;
}

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #212529;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #6c757d;
}

.font-bold {
    font-weight: 600;
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-item strong {
    font-size: 1rem;
    color: #212529;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.info-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 15, 30, 0.04);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ignored {
    display: none !important;
}
