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

/* Shared Paydrive identity. Keep status colours distinct from brand actions. */
:root {
    --pd-petrol: #184147;
    --pd-deep: #073c43;
    --pd-ink: #082c32;
    --pd-muted: #526b6d;
    --pd-mint: #d8eae4;
    --pd-sky: #73cceb;
    --pd-canvas: #f5faf9;
    --pd-line: #dce8e4;
    --pd-radius: 22px;
    --pd-shadow: 0 8px 32px rgba(8, 44, 50, .045);
}

html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', Arial, sans-serif; color: var(--pd-ink); background: var(--pd-canvas); font-weight: 500; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-family: 'Quicksand', Arial, sans-serif; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
a { color: #126578; }
a:hover { color: var(--pd-deep); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid #2383a0; outline-offset: 4px; }
.pd-eyebrow { margin: 0 0 10px; color: #376b73; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pd-page-heading { margin: 0 0 12px; font-size: clamp(3.2rem, 3vw, 2.7rem); }
.pd-page-heading h1 { font-size: inherit; }
.pd-page-intro { margin: 0; max-width: 64ch; color: var(--pd-muted); font-size: 1rem; }
.pd-section-title { font-size: 1.35rem; }
.pd-surface { padding: clamp(20px, 3vw, 36px); background: white; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); }
.pd-skip-link { position: fixed; top: -100px; left: 20px; z-index: 2000; padding: 12px 20px; background: white; border-radius: 10px; color: var(--pd-deep); }
.pd-skip-link:focus { top: 12px; }

/* Navigation keeps the AdminLTE sizing and mobile push-menu behaviour. */
.pd-app .main-sidebar { background: var(--pd-petrol) !important; box-shadow: none !important; }
.pd-app .brand-link { display: flex; flex-direction: column; gap: 14px; padding: 34px 25px 25px; border-bottom: 1px solid rgba(216, 234, 228, .15); }
.pd-app .brand-link .brand-image { float: none; max-height: none; width: 163px; max-width: 100%; margin: 0; opacity: 1; }
.pd-brand-caption { color: var(--pd-sky); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.pd-app .sidebar { padding: 16px 14px 28px; }
.pd-app .nav-sidebar > .nav-item { margin-bottom: 5px; }
.pd-app .nav-sidebar > .nav-item > .nav-link { width: 100%; }
.pd-app .nav-sidebar .nav-link { display: flex; align-items: center; min-height: 46px; padding: 12px; border-radius: 10px; color: #e0eeec; font-size: .86rem; font-weight: 600; white-space: normal; }
.pd-app .nav-sidebar .nav-link p { line-height: 1.5; }
.pd-app .nav-sidebar .pd-tree-toggle { position:relative; padding-right:32px; }
.pd-app .nav-sidebar .pd-tree-toggle p { flex:1; min-width:0; white-space:normal; }
.pd-app .nav-sidebar .pd-tree-toggle .right { position:absolute; right:12px; top:17px; margin:0; }
.pd-app .nav-sidebar .pd-unread-label { display:table; margin:5px 0 0; padding:4px 6px; border-radius:5px; color:#e4f7ef; background:#325e5e; max-width:100%; line-height:1.25; }
.pd-app .nav-sidebar .pd-unread-label .exclamation-mark { font-size:10px; }
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .brand-link { padding-inline: 12px; }
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .brand-image { width: 50px; }
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .sidebar { padding-inline: 6px; }
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .nav-link { padding-inline: 15px; }
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link p,
.pd-app.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused .nav-sidebar .nav-link p { width: auto; min-width: 0; flex: 1; white-space: normal; }
.pd-app .nav-sidebar .nav-icon { flex: 0 0 20px; width: 20px; margin-right: 12px; font-size: 1rem; color: #91cbd2; text-align: center; }
.pd-app .nav-sidebar .nav-link:hover { background: rgba(216, 234, 228, .09); color: white; }
.pd-app .nav-sidebar .nav-link.active { background: var(--pd-mint) !important; color: var(--pd-deep) !important; box-shadow: none !important; }
.pd-app .nav-sidebar .nav-link.active .nav-icon { color: var(--pd-deep); }
.pd-app .nav-treeview { margin: 4px 0 6px 12px !important; padding-left: 10px; border-left: 1px solid #497176; }
.pd-app .nav-treeview .nav-link { width: auto; min-height: 40px; font-size: .82rem; }
.pd-app .nav-treeview .nav-icon { display: none; }
.pd-sidebar-help { display: flex; gap: 12px; align-items: center; margin: 28px 12px 0; padding-top: 22px; border-top: 1px solid #44676b; color: #d8eae4; font-size: .8rem; }
.pd-sidebar-help a { display: block; color: white; font-weight: 700; font-size: .95rem; }
.pd-app .mobile_menu { display: none; }
.pd-app.sidebar-collapse .pd-brand-caption, .pd-app.sidebar-collapse .pd-sidebar-help { display: none; }
.pd-app.sidebar-collapse .main-sidebar:hover .pd-brand-caption { display: block; }
.pd-app .main-header { min-height: 82px; padding: 12px 32px; border-bottom: 1px solid var(--pd-line); background: white; }
.pd-app .main-header .navbar-nav { width: 100%; align-items: center; gap: 8px; }
.pd-app .main-header .nav-link { height: auto; color: var(--pd-ink); font-size: .875rem; }
.pd-app .pd-menu-toggle { display: inline-flex; justify-content: center; align-items: center; width: 42px; min-height: 42px; padding: 8px; background: var(--pd-canvas); border: 1px solid var(--pd-line); border-radius: 10px; }
.pd-header-title { font-size: 1rem; font-weight: 700; margin: 0 14px; white-space: nowrap; }
.pd-app .main-header .navbar-nav .pd-logout-item { margin-left: auto; }
.pd-app #logout { position: static; float: none; padding: 10px 18px; border: 1px solid #cbdeda; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.pd-app #logout:hover { background: var(--pd-mint); }
.pd-app .content-wrapper { background: var(--pd-canvas); }
.pd-app .content-wrapper > .content { padding: 34px 30px 48px; }
.pd-app .content > .container-fluid { max-width: 1440px; padding: 0; background: transparent; }
.pd-app .main-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 32px; border-top: 1px solid var(--pd-line); color: var(--pd-muted); background: var(--pd-canvas); font-size: .8rem; }
.pd-app .main-footer a { color: var(--pd-petrol); text-decoration: underline; text-underline-offset: 3px; }
.pd-app .showas { display: none; position: absolute; z-index: 1040; top: 70px; width: min(320px, calc(100vw - 36px)); padding: 22px; background: white; border: 1px solid var(--pd-line); border-radius: 16px; box-shadow: 0 12px 42px #082c3226; color: var(--pd-ink); font-size: .9rem; }
.pd-app .showas a { display: inline-block; padding: 6px 0; }
.pd-app .pd-account-button { border: 0; background: transparent; text-align: left; }
.pd-app .pd-account-close { float: right; border: 0; border-radius: 6px; padding: 2px 8px; color: var(--pd-deep); background: var(--pd-canvas); }

/* Shared components cover insurance, invoices, claims, payments and documents. */
.pd-app .card { margin-bottom: 24px; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); }
.pd-app .card > .card-header { padding: 24px 28px; color: var(--pd-ink); background: transparent; border-bottom: 1px solid var(--pd-line); border-radius: var(--pd-radius) var(--pd-radius) 0 0; }
.pd-app .card-title { float: none; margin: 0; color: var(--pd-ink); font-size: 1.35rem; font-weight: 700; }
.pd-app .card-body { padding: 28px; }
.pd-app .card-footer { padding: 20px 28px; background: #f5faf9; border-top: 1px solid var(--pd-line); border-radius: 0 0 var(--pd-radius) var(--pd-radius); }
.pd-app .btn { padding: 11px 20px; border-radius: 9px; font-weight: 700; font-size: .9rem; box-shadow: none; line-height: 1.5; white-space: normal; transition: background-color .15s, border-color .15s; }
.pd-app .btn-primary, .pd-app .btn-success { background: var(--pd-deep); border-color: var(--pd-deep); color: white; }
.pd-app .btn-primary:hover, .pd-app .btn-success:hover { background: #12565e; border-color: #12565e; }
.pd-app .btn-primary:disabled, .pd-app .btn-success:disabled { background: #627e80; border-color: #627e80; }
.pd-app .btn-info { background: var(--pd-sky); border-color: var(--pd-sky); color: var(--pd-deep); }
.pd-app .btn-default, .pd-app .btn-secondary { background: white; border-color: #b7d0c9; color: var(--pd-deep); }
.pd-app .btn-danger { background: #ac3f3b; border-color: #ac3f3b; color: white; }
.pd-app .btn-sm { padding: 6px 12px; font-size: .8rem; }
.pd-app .btn-link { color: #126578; }
.pd-public-layout .btn { padding: 11px 20px; border-radius: 9px; font-weight: 700; }
.pd-public-layout .btn-primary { color: white; background: var(--pd-deep); border-color: var(--pd-deep); }
.pd-public-layout .btn-primary:hover { background: #12565e; border-color: #12565e; }
.pd-app .form-control, .pd-app .custom-select { min-height: 46px; border: 1px solid #bbd1cc; border-radius: 8px; background-color: #f8fcfa; color: var(--pd-ink); font-size: .95rem; }
.pd-app textarea.form-control { min-height: 120px; }
.pd-app .form-control:focus, .pd-app .custom-select:focus { border-color: #2383a0; box-shadow: 0 0 0 3px #73cceb4d; background: white; }
.pd-app label { font-weight: 600; }
.pd-app .table { color: var(--pd-ink); font-size: .9rem; }
.pd-app .table thead th { background: var(--pd-canvas); color: var(--pd-muted); font-size: .75rem; font-weight: 700; letter-spacing: .02em; border-bottom: 1px solid #c4d9d3; }
.pd-app .table th, .pd-app .table td { padding: 16px 14px; border-top-color: var(--pd-line); vertical-align: middle; }
.pd-app .table-hover tbody tr:hover { background: #eff7f3; }
.pd-app .table-responsive { border-radius: 12px; }
.pd-app .badge { padding: 6px 10px; border-radius: 6px; font-weight: 700; line-height: 1.2; }
.pd-app .badge-success { color: #175c44; background: #def0e4; }
.pd-app .badge-info { color: var(--pd-deep); background: #d5edf6; }
.pd-app .alert { border-radius: 12px; line-height: 1.65; }
.pd-app .modal-content { border: 0; border-radius: var(--pd-radius); box-shadow: 0 20px 80px #082c3233; }
.pd-app .modal-header, .pd-app .modal-body, .pd-app .modal-footer { padding: 24px; }
.pd-app .modal-header, .pd-app .modal-footer { border-color: var(--pd-line); }
.pd-app .pagination .page-link { color: var(--pd-deep); border-color: var(--pd-line); }
.pd-app .page-item.active .page-link { color: white; background: var(--pd-deep); border-color: var(--pd-deep); }
.pd-app #ajax-response { overflow-x: auto; }
.pd-app .cropped { width: 100px; overflow: hidden; }
.pd-app .cropped img { width: 100px; margin-block: -10px; }

/* Unread-message popups stay visible in the bottom-right corner. */
.pd-app .pd-unread-popups { position: fixed; z-index: 1035; right: 22px; bottom: 24px; display: flex; flex-direction: column-reverse; gap: 58px; width: 235px; max-width: calc(100vw - 28px); pointer-events: none; }
.pd-app .bubble { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 14px 18px; background: var(--pd-mint); border: 1px solid #b9d4cb; border-radius: 14px; box-shadow: 0 8px 32px #082c321a; color: var(--pd-deep); cursor: pointer; pointer-events: auto; text-decoration: none; }
.pd-app .bubble:hover { color: var(--pd-deep); background: #c6e0d6; }
.pd-app .bubble.claim { background: #e0f2f7; border-color: #b9dce7; }
.pd-app .bubble.claim:hover { background: #d0eaf2; }
.pd-app .envelope { position: relative; flex: 0 0 30px; }
.pd-app .envelope i { font-size: 26px; }
.pd-app .envelope .number { position: absolute; top: -12px; right: -9px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; color: white; background: var(--pd-deep); font-family: inherit; font-size: 11px; font-weight: 700; text-align: center; line-height: 19px; }
.pd-app .envelope_text { font-size: .75rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 991.98px) {
    .pd-app .main-header { padding: 12px 18px; }
    .pd-app .content-wrapper > .content { padding: 26px 18px 36px; }
    .pd-app .main-footer { padding: 22px 18px; }
    .pd-app .mobile_menu { display: block; position: absolute; right: 14px; top: 9px; padding: 4px 8px; color: #e8f7f6; background: transparent; border: 0; font-size: .7rem; }
    .pd-app .brand-link { padding-top: 44px; }
}
@media (max-width: 575.98px) {
    .pd-app .main-header { min-height: 72px; padding: 10px 12px; }
    .pd-header-title { display: none; }
    .pd-app .main-header .navbar-nav { gap: 2px; }
    .pd-app .main-header .nav-link { font-size: .75rem; }
    .pd-app .showas { left: 12px; top: 65px; }
    .pd-app #logout { padding: 9px 12px; }
    .pd-app .content-wrapper > .content { padding: 24px 14px 30px; }
    .pd-app .card > .card-header, .pd-app .card-body { padding: 20px 16px; }
    .pd-app .card-title { font-size: 1.2rem; }
    .pd-app .table th, .pd-app .table td { padding: 12px 10px; }
    .pd-app .pd-unread-popups { right: 14px; bottom: 14px; width: 220px; gap: 14px; }
    .pd-app .bubble { min-height: 68px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pd-app *, .paydrive-login-page * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
