/* Custom CSS for Proposal App */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply Poppins to text elements only - NOT to icons */
body, html,
h1, h2, h3, h4, h5, h6,
p, span, div, a, label,
button:not(.btn-close),
input, textarea, select, option,
table, th, td,
.nav-item, .nav-link,
.card, .card-body, .card-header, .card-footer,
.form-control, .form-label, .form-text,
.btn, .alert, .badge,
.dropdown-item, .dropdown-menu {
    font-family: 'Poppins', sans-serif !important;
}

/* Simple Header Styles */
.wrapper-no-sidebar .main-panel {
    width: 100% !important;
    margin-left: 0 !important;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle:hover + .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 14px;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.nav-dropdown .dropdown-menu.show {
    display: block;
}

.nav-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus {
    color: #1e2125;
    background-color: #e9ecef;
}

.nav-dropdown .dropdown-item.active,
.nav-dropdown .dropdown-item:active {
    color: #fff;
    background-color: #0d6efd;
}

.simple-header {
    /* background-image: url('../template/assets/img/bg-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */
    background-color: #F7F8FD;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.table>tbody>tr>td,.table>tbody>tr>th {
    padding: 5px 14px !important;
    vertical-align: middle !important;
    font-size: 14px;
}
.custom-th-width-service{
    width: 360px;
}
.main-panel>.container{
    margin-top: 30px !important;
}
.card, .card-light
 {
    box-shadow: none !important;
}

.table thead th {
    padding: 12px 15px !important;
    font-size: 17px;
}
/* Add padding to body to account for fixed header */
.main-panel {
    padding-top: 40px;
}

/* Background image for entire website */
body {
    /* background-image: url('../template/assets/img/bg-scaled.jpg'); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */
    background-color: #F7F8FD;
}

/* Make all text black for better readability */
.card-body,
.table,
.table td,
.table th,
.text-muted {
    color: #000 !important;
}

/* Remove table cell padding */
.table td,
.table th {
    padding: 0 !important;
    vertical-align: middle !important;
}

.card-title,
h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
}

/* Footer positioning - always at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-inner {
    flex: 1;
}

.footer {
    margin-top: auto;
    background: none !important;
    border-top: none !important;
    position: relative;
    z-index: 1;
}

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

.nav-brand img {
    height: 30px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #333;
}

.nav-item.active {
    color: red;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: red;
    border-radius: 2px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.user-profile-link:hover {
    background: #f5f5f5;
    color: #E52925;
}

.logout-form {
    margin: 0;
    display: inline-flex;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.logout-btn:hover {
    background: #E52925;
    color: #fff;
}

.logout-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-item {
        font-size: 14px;
    }
}

/* Proposal Builder Header Section */
.proposal-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.proposal-header-section h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.proposal-header-section p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 5px;
}

.proposal-header-section p:last-child {
    margin-bottom: 0;
}

.proposal-logo img {
    max-height: 80px;
    max-width: 200px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.proposal-logo-placeholder {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* Service Section Styling */
.service-title {
    color: #333;
    font-weight: 600;
    padding-bottom: 0px;
}

.service-description {
    padding: 2px 0px;
}

.addon-buttons-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.addon-buttons-section h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

/* Service Footer Styling */
.service-footer {

    border-radius: 0 8px 8px 0;
}

/* Custom Pagination Component */
.custom-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.pagination-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.pagination-btn.disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.disabled:hover {
    background-color: #f8f9fa;
    color: #adb5bd;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hide default Laravel pagination */
/* .pagination {
    display: none !important;
} */

/* Responsive design */
@media (max-width: 576px) {
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .pagination-controls {
        gap: 6px;
    }
}
.note-modal-footer{
    height: 53px !important;
}
.note-modal-footer>input[type="button"].note-editor.note-frame .note-btn {
    background-color: #4E8EED !important;
}

/* Top header nav: active menu state (Polytechnic ERP) */
#layout-navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}
#layout-navbar .navbar-nav .nav-link.dropdown-toggle.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}
#layout-navbar .dropdown-menu .dropdown-item.active {
    background-color: rgba(102, 108, 255, 0.12);
    color: var(--bs-primary);
    font-weight: 500;
}

/* Breadcrumb links: clickable, hover state */
h4.fw-bold.mb-4 a.text-muted {
    transition: color 0.15s ease;
}
h4.fw-bold.mb-4 a.text-muted:hover {
    color: var(--bs-primary) !important;
}

/* -------------------------------------------------------------------------
   ERP pagination (Laravel paginator + Bootstrap 5 + glass / primary #4F8CFF)
   ------------------------------------------------------------------------- */
.card-footer.erp-pagination-wrap {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(79, 140, 255, 0.12) !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.erp-pagination {
    width: 100%;
}

.erp-pagination__nav {
    width: 100%;
}

.erp-pagination__summary-inner {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.06);
    border: 1px solid rgba(79, 140, 255, 0.1);
}

.pagination.pagination-erp {
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.pagination.pagination-erp .page-link {
    min-width: 2.35rem;
    text-align: center;
    border-radius: 12px !important;
    border: 1px solid rgba(79, 140, 255, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: #4a5d7a;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.06);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.pagination.pagination-erp .page-link:hover {
    color: #4F8CFF;
    background: rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.35);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.12);
    transform: translateY(-1px);
}

.pagination.pagination-erp .page-item.active .page-link {
    background: linear-gradient(135deg, #4F8CFF 0%, #3d7aee 100%);
    border-color: #4F8CFF;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(79, 140, 255, 0.35);
    font-weight: 600;
}

.pagination.pagination-erp .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #8b9bb0 !important;
    box-shadow: none;
    transform: none;
}

.pagination.pagination-erp .erp-pagination__arrow {
    min-width: 2.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination.pagination-erp .erp-pagination__ellipsis {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #8b9bb0 !important;
    min-width: auto;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

/* -------------------------------------------------------------------------
   Mobile responsive list views (index tables only — not print/PDF)
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .list-filter-card .d-flex.flex-wrap.gap-2 .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .card-header.d-flex.flex-wrap .btn {
        width: 100%;
    }

    .list-view-responsive {
        overflow-x: visible;
    }

    .list-view-table {
        border: 0;
    }

    .list-view-table thead {
        display: none;
    }

    .list-view-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(79, 140, 255, 0.15);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

    .list-view-table tbody tr:has(td[colspan]) {
        display: table-row;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .list-view-table tbody tr:has(td[colspan]) td {
        display: table-cell;
        text-align: center;
        padding: 1.5rem 1rem !important;
    }

    .list-view-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 1rem !important;
        border: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        text-align: right;
        white-space: normal;
        word-break: break-word;
    }

    .list-view-table tbody td:last-child {
        border-bottom: none !important;
    }

    .list-view-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #566a7f;
        text-align: left;
        margin-right: auto;
        padding-right: 0.5rem;
    }

    .list-view-table tbody td[colspan]::before {
        display: none;
    }

    .list-view-table tbody td.list-view-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .list-view-table tbody td.list-view-actions::before {
        width: 100%;
        margin-bottom: 0.35rem;
    }

    .erp-pagination__summary-inner {
        font-size: 0.8125rem;
    }

    .pagination.pagination-erp {
        justify-content: center;
    }
}

.patient-form-compact .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
}

.app-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.app-logo-auth {
    height: 72px;
    max-width: 220px;
}

.authentication-wrapper .footer {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(67, 89, 113, 0.12);
}

/* Mobile navigation and shared page layout */
@media (max-width: 1199.98px) {
    #layout-navbar {
        height: auto !important;
        min-height: 4rem;
        padding: 0.6rem 0;
    }

    #layout-navbar .container-xxl {
        flex-wrap: wrap;
        align-items: center;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    #layout-navbar .navbar-brand.d-xl-none {
        order: 1;
        max-width: calc(100% - 4rem);
        margin: 0 !important;
    }

    #layout-navbar .layout-menu-toggle {
        order: 2;
        margin: 0 0 0 auto !important;
    }

    #layout-navbar .layout-menu-toggle .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0 !important;
        border-radius: 0.6rem;
        color: #566a7f;
        background: rgba(79, 140, 255, 0.08);
    }

    #navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        margin-top: 0.65rem;
        padding: 0.75rem;
        border: 1px solid rgba(67, 89, 113, 0.12);
        border-radius: 0.75rem;
        background: #fff;
        box-shadow: 0 0.5rem 1.5rem rgba(67, 89, 113, 0.12);
    }

    #navbar-collapse.collapsing {
        overflow: hidden;
    }

    #navbar-collapse > .navbar-nav {
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #navbar-collapse > .navbar-nav + .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(67, 89, 113, 0.12);
    }

    #navbar-collapse > .navbar-nav + .navbar-nav > .nav-item:first-child,
    #navbar-collapse > .navbar-nav + .navbar-nav > .dropdown-notifications {
        display: none;
    }

    #navbar-collapse .dropdown-user,
    #navbar-collapse .dropdown-user > .nav-link {
        width: 100%;
    }

    #navbar-collapse .dropdown-user > .nav-link {
        display: flex;
        align-items: center;
        padding: 0.4rem 0.5rem;
    }

    #navbar-collapse > .navbar-nav:first-child > .nav-item {
        width: 100%;
        margin-right: 0 !important;
    }

    #navbar-collapse > .navbar-nav:first-child .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border-radius: 0.375rem;
    }

    #navbar-collapse > .navbar-nav:first-child .nav-link:hover,
    #navbar-collapse > .navbar-nav:first-child .nav-link.active {
        background: rgba(79, 140, 255, 0.08);
    }

    #navbar-collapse .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0.25rem 0 0.5rem;
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    #layout-navbar .app-logo {
        max-width: 145px;
        height: 34px;
    }

    .container-xxl.container-p-y {
        padding: 1rem 0.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .list-filter-card {
        border-radius: 0.75rem;
    }

    .list-filter-card .card-body {
        padding: 1rem;
    }

    .list-filter-card .row.g-3 {
        --bs-gutter-y: 0.85rem;
    }

    .list-filter-card .form-label {
        margin-bottom: 0.35rem;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .list-filter-card .form-control {
        min-height: 2.75rem;
        font-size: 0.9rem;
    }

    form > .row.mt-4 .btn,
    form > .d-flex .btn {
        width: 100%;
    }

    .accordion-button {
        padding: 0.85rem;
    }

    .report-test-entry-table .result-col input,
    .report-test-entry-table .result-col select {
        min-width: 105px;
    }
}