.alert-info {
    padding: 1rem;
}

.alert-success {
    padding: 1rem;
}

.alert-danger {
    padding: 1rem;
}

.table-hover > tbody > tr:hover > th,
.table-hover > tbody > tr:hover > td {
    background-color: #3f81ea2d !important;  
}

/* PDF report styling */
.pdf-report {
    font-family: Arial, "DejaVu Sans", sans-serif;
    font-size: 10pt;
    color: #000;
}

@page {
    margin: 18mm 16mm 24mm 16mm;
}

.pdf-header {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 10pt;
}

.pdf-header-left,
.pdf-header-right {
    width: 50%;
    vertical-align: top;
}

.pdf-header-right {
    text-align: left;
    padding-left: 64px;
}

.pdf-title {
    font-size: 18pt;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    text-align: center;
}

.pdf-subtitle {
    font-size: 10pt;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    text-align: center;
}

.pdf-subtitle-spacer {
    height: 6px;
}

.pdf-section-title {
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #000;
    margin: 8px 0 6px;
}

.pdf-meta {
    width: 100%;
    border-collapse: collapse;
}

.pdf-meta td {
    padding: 2px 0;
    vertical-align: top;
    font-size: 10pt;
}

.pdf-meta .pdf-spacer td {
    height: 8px;
}

.pdf-meta .pdf-section-spacer td {
    height: 12px;
}

.pdf-label {
    width: 140px;
    font-weight: 600;
    color: #000;
}

.pdf-issuer-name {
    font-size: 10pt;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
}

.pdf-issuer-line {
    color: #000;
    margin-bottom: 2px;
}

.pdf-table table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-table th,
.pdf-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 8px;
    vertical-align: top;
}

.pdf-table {
    font-size: 8pt;
}

.pdf-table table,
.pdf-table th,
.pdf-table td {
    font-size: 8pt;
}

.pdf-table th {
    background: #f1f5f9;
    color: #000;
    font-weight: 700 !important;
    text-align: left;
}

.pdf-table .table-light {
    background: #f8fafc;
}

.pdf-table .text-end {
    text-align: right;
}

.pdf-table .text-center {
    text-align: center;
}

.pdf-table tfoot th {
    border-top: 2px solid #0f172a;
}

.pdf-table tfoot th,
.pdf-table tfoot td,
.pdf-table .table-light td {
    font-weight: 700;
}

.pdf-table .fw-semibold {
    font-weight: 700;
}

.pdf-table .col-item-code {
    display: none;
}

.pdf-table .col-item {
    width: 40%;
}

.pdf-nowrap {
    white-space: nowrap;
}

.pdf-report .col-status {
    display: none;
}

.pdf-signatures {
    margin-top: 26px;
}

.pdf-signature-box {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 12px 16px;
    background: #f8fafc;
    --sig-line-width: 150px;
}

.pdf-signature-lines {
    width: 100%;
    border-collapse: collapse;
}

.pdf-signature-line-table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-signature-line-label {
    width: 42%;
    font-size: 10pt;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.pdf-signature-line-cell {
    text-align: left;
    width: 58%;
    border-bottom: 1px solid #000;
    height: 16px;
}

.pdf-signature-name-cell {
    text-align: center;
    font-size: 10pt;
    font-weight: 600;
    color: #000;
}

.pdf-signature-table {
    width: 100%;
}

.pdf-signature-block {
    width: 50%;
    vertical-align: top;
    padding-right: 12px;
}

.pdf-signature-block-right {
    padding-left: 44px;
}

.pdf-signature-title {
    font-size: 10pt;
    font-weight: 600;
    color: #000;
    margin-top: 12px;
}

.pdf-signature-name {
    font-size: 10pt;
    font-weight: 600;
    margin-top: 2px;
}

.pdf-signature-line {
    border-bottom: 1px solid #000;
    height: 32px;
}

.pdf-signature-meta {
    font-size: 10pt;
    color: #000;
    padding: 0;
}

.pdf-signature-meta + .pdf-signature-meta {
    padding-top: 0;
}

.pdf-signature-spacer {
    height: 20px;
}

.pdf-signature-gap {
    height: 8px;
    line-height: 8px;
    font-size: 1px;
}

.pdf-signature-spacer-double {
    height: 24px;
    line-height: 24px;
    font-size: 1px;
}

.pdf-terms {
    margin-top: 10px;
    text-align: center;
    color: #64748b;
    font-size: 10pt;
}

.pdf-footer {
    text-align: center;
    color: #000;
    font-style: italic;
}

.pdf-footer-bottom {
    position: fixed;
    bottom: 16mm;
    left: 0;
    right: 0;
}

.pdf-page-footer {
    text-align: right;
    font-size: 9pt;
    color: #000;
}

.pricing-item-lov-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1080;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.pricing-item-lov-menu .list-group-item {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.25;
}

.pricing-item-lov-menu .list-group-item:last-child {
    border-bottom: 0;
}

/* Mobile upload screen */
body.mobile-upload {
    background: #f6f7f9;
    font-family: var(--bs-font-sans-serif);
}

body.mobile-upload .mobile-shell {
    max-width: 100%;
    margin: 0;
    padding: 0 16px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.mobile-upload .mobile-section {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

body.mobile-upload .mobile-section:last-of-type {
    border-bottom: 0;
}

body.mobile-upload .mobile-section-body {
    padding: 0;
}

body.mobile-upload .mobile-title {
    font-size: 1.25rem;
    font-weight: 600;
}

body.mobile-upload .mobile-muted {
    color: #6c757d;
}

body.mobile-upload .logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.mobile-upload .logo-badge img {
    width: 34px;
}

body.mobile-upload .mobile-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    align-items: center;
    row-gap: 4px;
    background: #293042;
    padding: 12px 16px;
    margin: 0 -16px 12px;
    border-radius: 0;
}

body.mobile-upload .mobile-topbar img {
    height: 28px;
}

body.mobile-upload .mobile-topbar .btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

body.mobile-upload .mobile-topbar .btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.mobile-upload .mobile-topbar-customer {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

body.mobile-upload .pin-input {
    letter-spacing: 0.45rem;
    text-align: center;
    font-size: 1.4rem;
}

body.mobile-upload .mobile-date-row {
    display: grid;
    grid-template-columns: 0.7fr 1.6fr 0.7fr;
    gap: 8px;
    align-items: center;
}

body.mobile-upload .mobile-date-row .btn {
    width: 100%;
    font-size: 1rem;
}

body.mobile-upload #mobileDateInput {
    text-align: center;
    height: 44px;
    font-size: 1.15rem;
}

body.mobile-upload .mobile-date-nav {
    background: #293042;
    border-color: #293042;
    color: #fff;
    height: 44px;
    padding: 0.35rem 0.5rem;
}

body.mobile-upload .mobile-date-nav:hover {
    background: #3d4761;
    border-color: #3d4761;
    color: #fff;
}

body.mobile-upload .mobile-date-nav svg {
    vertical-align: -3px;
}

body.mobile-upload .mobile-select-required {
    border-color: #dc3545;
    background-color: #fff5f5;
}

body.mobile-upload .btn {
    border-radius: 0;
}

body.mobile-upload .btn svg {
    vertical-align: -2px;
}

body.mobile-upload .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

body.mobile-upload .btn-outline-secondary:hover {
    background: #e2e8f0;
}

body.mobile-upload .btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
}

body.mobile-upload .btn-outline-primary:hover {
    background: #dbeafe;
}

body.mobile-upload .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

body.mobile-upload .mobile-context-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px !important;
}

body.mobile-upload .mobile-context-row > div {
    flex: 1;
}

body.mobile-upload .mobile-context-client {
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
}

body.mobile-upload .mobile-context-project {
    text-align: right;
    font-size: 1rem;
    font-weight: 600;
}

body.mobile-upload .mobile-upload-button {
    width: 85%;
    max-width: 360px;
    border-radius: 999px;
    display: block;
    margin: 0 auto 8px;
}

body.mobile-upload .mobile-context-toggle {
    color: inherit;
    font-weight: 600;
    font-size: inherit;
}

body.mobile-upload .mobile-context-toggle:hover {
    color: #2563eb;
}

body.mobile-upload .mobile-upload-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

body.mobile-upload .mobile-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1050;
}

body.mobile-upload .mobile-modal.is-open {
    display: flex;
}

body.mobile-upload .mobile-modal-dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

body.mobile-upload .mobile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.mobile-upload .mobile-modal-title {
    font-weight: 600;
    font-size: 1rem;
}

body.mobile-upload .mobile-modal-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

body.mobile-upload .mobile-modal-actions .btn {
    max-width: 40%;
    width: 100%;
}

body.mobile-upload .mobile-modal-body {
    margin-top: 12px;
}

body.mobile-upload .mobile-modal-body img {
    max-height: 60vh;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
}

body.mobile-upload .mobile-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

body.mobile-upload .mobile-modal-footer .btn {
    max-width: 25%;
    width: 100%;
}

body.mobile-upload .mobile-footer {
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
}

body.mobile-upload .mobile-footer a {
    text-decoration: none;
}

body.mobile-upload .mobile-footer img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

body.mobile-upload .mobile-login-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0 24px;
}

body.mobile-upload .mobile-login-logo {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

body.mobile-upload .mobile-login-logo img {
    max-width: 160px;
    width: 58%;
    height: auto;
}

body.mobile-upload .mobile-login-label {
    font-size: 1.18rem;
    font-weight: 600;
    text-align: center;
    color: #1f2937;
}

body.mobile-upload .mobile-login-image {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

body.mobile-upload .mobile-login-image img {
    width: 90%;
    max-width: 336px;
    height: auto;
    border-radius: 16px;
}

body.mobile-upload .mobile-login-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 0 12px;
    margin-top: 4px;
}

body.mobile-upload .mobile-login-pin form {
    width: 100%;
    max-width: 360px;
}

/* Daily reports monthly overview */
.dro-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dro-month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 8px 10px;
}

.dro-month-nav .btn {
    min-width: 42px;
}

.dro-month-arrow {
    width: 40px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dro-month-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dro-month-label {
    white-space: nowrap;
}

.dro-month-input {
    width: 170px;
    min-width: 170px;
}

.dro-month-submit {
    white-space: nowrap;
}

.dro-calendar {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 6px;
}

.dro-calendar th {
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: #6c757d;
    border: 0;
    background: transparent;
    padding: 0 8px 8px;
}

.dro-calendar td {
    vertical-align: top;
    padding: 0;
    border-top: 0;
    height: 272px;
    background: transparent;
}

.dro-day-box {
    height: 100%;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.dro-day-box:hover {
    border-color: #cfd9e6;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
}

.dro-calendar-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dro-calendar-day-num {
    font-weight: 600;
    color: #212529;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f2f6fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.87rem;
}

.dro-calendar-day-count {
    font-size: 0.68rem;
    color: #5b6b7f;
    background: #edf2f7;
    border-radius: 999px;
    padding: 1px 8px;
}

.dro-day-outside .dro-day-box {
    background: #f8fbff;
    border-color: #edf2f7;
}

.dro-day-outside .dro-calendar-day-num {
    color: #adb5bd;
    background: #f6f8fb;
}

.dro-day-outside {
    background: transparent !important;
}

.dro-day-today .dro-day-box {
    border-color: #3b7ddd;
    box-shadow: 0 0 0 1px rgba(59, 125, 221, 0.2);
}

.dro-day-today .dro-calendar-day-num {
    background: #3b7ddd;
    color: #fff;
}

.dro-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.dro-event {
    border: 1px solid #e6ebf2;
    border-radius: 6px;
    padding: 8px 9px;
    background: #fafcff;
    width: calc(100% - 8px);
    margin: 0 auto;
    min-height: 102px;
    padding-bottom: 10px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.dro-event:hover {
    border-color: #9fc2f3;
    background: #f3f8ff;
    box-shadow: 0 6px 14px rgba(59, 125, 221, 0.12);
    transform: translateY(-1px);
}

.dro-event-status-pending {
    border-left: 4px solid #d97706;
    background: #fff8ec;
}

.dro-event-status-approved {
    border-left: 4px solid #2f9e44;
    background: #f2fff5;
}

.dro-event-status-invoiced {
    border-left: 4px solid #0b7285;
    background: #f1fbff;
}

.dro-event-status-unknown {
    border-left: 4px solid #6c757d;
}

.dro-event-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.dro-event-project {
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.2;
}

.dro-event-meta {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.25;
}

.dro-event-user {
    margin-top: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-top: 1px dashed rgba(108, 117, 125, 0.22);
    color: #495057;
    font-weight: 500;
}

.dro-status-badge {
    font-size: 0.66rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dro-day-more {
    margin-top: 6px;
    padding: 0;
    font-size: 0.72rem;
    text-decoration: none;
}

.dro-events-expanded {
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 991.98px) {
    .dro-month-nav {
        width: 100%;
        justify-content: space-between;
    }

    .dro-month-form {
        flex: 1;
    }

    .dro-month-input {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .dro-calendar td {
        height: auto;
        min-height: 236px;
    }
}

@media (max-width: 767.98px) {
    .dro-calendar th {
        font-size: 0.68rem;
    }

    .dro-calendar td {
        min-height: 204px;
    }

    .dro-event {
        width: 100%;
        min-height: 0;
    }

    .dro-day-box {
        padding: 6px;
        border-radius: 8px;
    }

    .dro-event-project {
        font-size: 0.72rem;
    }

    .dro-event-meta {
        font-size: 0.68rem;
    }
}
