
/* =========================================================
   PIQUE JORR - Corporate Blue Theme V1
   Global Application Stylesheet
   Presentation Only
   ========================================================= */


/* =========================================================
   1. GLOBAL VARIABLES
   ========================================================= */

:root {

    /* Corporate color palette */

    --pique-primary: #05529B;
    --pique-deep: #153E8C;
    --pique-yellow: #FFCD29;
    --pique-light: #DDF2FC;
    --pique-section: #E8F2FC;

    /* Background & surface */

    --pique-bg: #F4F7FB;
    --pique-white: #FFFFFF;
    --pique-border: #D6DFE9;

    /* Typography */

    --pique-text: #243447;
    --pique-muted: #64748B;

    /* Semantic colors */

    --pique-success: #15803D;
    --pique-danger: #DC3545;

    /* Global shadow */

    --pique-shadow: 0 3px 12px rgba(21, 62, 140, .09);


    /* =====================================================
       Existing Application Variables
       ===================================================== */

    --bg: var(--pique-bg);
    --panel: var(--pique-white);
    --panel-border: var(--pique-border);

    --text: var(--pique-text);
    --subdued: var(--pique-primary);
    --accent: var(--pique-primary);

    --button-bg: var(--pique-section);
    --button-hover: var(--pique-light);
    --input-bg: var(--pique-white);


    /* =====================================================
       Mapping Asset Variables
       ===================================================== */

    --mapping-bg: var(--pique-bg);
    --mapping-panel: var(--pique-white);
    --mapping-panel-border: var(--pique-border);

    --mapping-topbar: var(--pique-primary);
    --mapping-text: var(--pique-text);


    /* =====================================================
       Bootstrap Variables
       ===================================================== */

    --bs-primary: #05529B;
    --bs-primary-rgb: 5, 82, 155;

    --bs-link-color: #05529B;
    --bs-body-color: #243447;
    --bs-border-color: #D6DFE9;

}


/* =========================================================
   2. NAVBAR & APPLICATION HEADER
   ========================================================= */

.brand-bar,
.header-gradient,
#footer {
    background: var(--pique-primary) !important;
    color: white !important;
}

.brand-bar .brand-name {
    color: white !important;
}

.brand-logo::before {
    background: white !important;
}


/* =========================================================
   3. APPLICATION FOOTER
   ========================================================= */

#footer small,
#footer .text-dark,
#footer .credits .text-primary {
    color: white !important;
}

#footer strong,
#footer .text-success {
    color: var(--pique-yellow) !important;
}


/* =========================================================
   4. SIDEBAR NAVIGATION
   ========================================================= */


/* Sidebar container */

.sidebar-container .sidebar-panel {
    background: var(--pique-primary) !important;
    border-color: #427DAE !important;
}


/* Sidebar menu items */

#sidebar .sidebar-item,
#sidebar .sidebar-subitem,
#sidebar .sidebar-footer-item {
    color: white !important;
}


/* Sidebar hover & active state */

#sidebar .sidebar-item:hover,
#sidebar .sidebar-subitem:hover,
#sidebar .sidebar-footer-item:hover,
#sidebar a[aria-current="page"],
#sidebar a.active {
    background: var(--pique-light) !important;
    color: var(--pique-primary) !important;
}


/* Active menu indicator */

#sidebar a[aria-current="page"],
#sidebar a.active {
    box-shadow: inset 3px 0 var(--pique-yellow);
}


/* Sidebar submenu */

#sidebar .submenu {
    border-color: #6DA2CA !important;
}


/* Sidebar footer divider */

#sidebar .sidebar-footer-divider {
    background: #6DA2CA !important;
}


/* =========================================================
   5. MAIN CONTENT PANEL
   ========================================================= */

.main-panel {
    background: var(--pique-white) !important;
    border-color: var(--pique-border) !important;
}


/* Page title */

.main-panel .main-content > main > .d-flex.align-items-center.text-dark {
    background: var(--pique-section) !important;
    color: var(--pique-primary) !important;
}


/* =========================================================
   6. BREADCRUMB NAVIGATION
   ========================================================= */

.main-panel .breadcrumb {
    background: var(--pique-bg) !important;
}

.main-panel .breadcrumb a {
    color: var(--pique-primary) !important;
}


/* =========================================================
   7. CARD & CONTENT CONTAINER
   ========================================================= */


/* Card background & border */

.main-panel .card,
.modal-content {
    background-color: var(--pique-white);
    border-color: var(--pique-border);
}


/* Global card shadow */

.main-panel .shadow-lg,
.modal .shadow-lg,
.main-panel .card {
    box-shadow: var(--pique-shadow) !important;
}


/* Card & modal header */

.main-panel .card-header,
.modal .card-header,
.modal .modal-header,
.mapping-card-header,
.qe-mapping-modal-header,
.qe-hero {
    background: var(--pique-primary) !important;
    color: white !important;
}


/* Header title */

.mapping-card-header .mapping-page-title,
.modal .modal-header .modal-title {
    color: white !important;
}


/* =========================================================
   8. MODAL & POPUP
   ========================================================= */


/* Modal close button */

.modal .modal-header .btn-close:not(.btn-close-white) {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* Override existing gradient header */

.modal .d-flex.align-items-center.text-white.rounded[style*="gradient"] {
    background: var(--pique-primary) !important;
}


/* =========================================================
   9. GLOBAL TABLE STYLING
   ========================================================= */


/* Table header */

.main-panel table thead:not(.leaflet-container thead),
.modal table thead {
    background: var(--pique-deep) !important;
    color: white !important;
}


/* Table header cells */

.main-panel table thead th,
.modal table thead th {
    --bs-table-bg: var(--pique-deep);

    background: var(--pique-deep) !important;
    color: white !important;
    border-color: #496BA5 !important;
}


/* Table cell border */

.main-panel table.table-bordered:not(.leaflet-container table) td,
.modal table.table-bordered td {
    border-color: var(--pique-border) !important;
}


/* Table border */

.main-panel .table-bordered,
.main-panel .table-bordered tr,
.main-panel .table-bordered th,
.main-panel .table-bordered td {
    border-color: var(--pique-border) !important;
}


/* Table row hover */

.main-panel table.table-hover tbody tr:hover > *,
.modal table.table-hover tbody tr:hover > * {
    --bs-table-accent-bg: var(--pique-section);
}


/* =========================================================
   10. DAFTAR PROGRAM & MAPPING ASET
   ========================================================= */


/* Program information & mapping filter */

.main-panel .program-box,
.main-panel .map-filter-bar {
    background: var(--pique-bg) !important;
    border-color: var(--pique-border) !important;
}


/* Program section title */

.program-title {
    color: var(--pique-primary) !important;
}


/* Main program name */

.main-panel .program-job-main {
    background: var(--pique-section) !important;
    color: var(--pique-primary) !important;
}


/* Alternating program rows */

.main-panel .program-job-parent:nth-child(odd) {
    background: var(--pique-bg) !important;
}


/* =========================================================
   11. CONTRACT & DETAIL INFORMATION
   ========================================================= */


/* Detail value cells */

.main-panel td[class*="detail-label-value-"],
.modal td[class*="detail-label-value-"] {
    --bs-table-bg: var(--pique-bg);

    background: var(--pique-bg) !important;
    color: var(--pique-text) !important;
    border-color: var(--pique-border) !important;
}


/* Detail label cells */

.main-panel td[class*="detail-label-value-"]:nth-child(odd),
.modal td[class*="detail-label-value-"]:nth-child(odd) {
    --bs-table-bg: var(--pique-section);

    background: var(--pique-section) !important;
    color: var(--pique-primary) !important;
}


/* =========================================================
   12. FORM RENCANA KERJA
   ========================================================= */


/* Form section title */

#modalBuatRencana .section-title,
#modalEditRencana .edit-section-title {
    background: var(--pique-section) !important;
    color: var(--pique-primary) !important;
}


/* STA Akhir indicator */

#modalBuatRencana .section-title.text-danger,
#modalEditRencana .edit-section-title.red {
    color: var(--pique-danger) !important;
}


/* Select marker button */

#modalBuatRencana .btn-map,
#modalEditRencana .btn-map {
    background: var(--pique-section) !important;
    color: var(--pique-primary) !important;
}


/* Form body background */

#modalBuatRencana .modal-rencana-body,
.qe-modal-body {
    background: var(--pique-bg) !important;
}


/* =========================================================
   13. GLOBAL FORM CONTROL
   ========================================================= */


/* Input & select */

.main-panel .form-control,
.main-panel .form-select,
.modal .form-control,
.modal .form-select {
    background-color: white !important;

    color: var(--pique-text);
    border-color: var(--pique-border) !important;
}


/* Disabled & readonly input */

.main-panel .form-control:disabled,
.main-panel .form-select:disabled,
.modal .form-control:disabled,
.modal .form-select:disabled,
.modal .form-control[readonly] {
    background-color: #E8EDF3 !important;
}


/* Input focus state */

.main-panel .form-control:focus,
.main-panel .form-select:focus,
.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--pique-primary) !important;

    box-shadow: 0 0 0 .2rem rgba(5, 82, 155, .15) !important;
}


/* =========================================================
   14. GLOBAL BUTTON STYLING
   ========================================================= */


/* Primary button */

.btn-primary,
.btn-rencana-save {
    --bs-btn-bg: var(--pique-primary);
    --bs-btn-border-color: var(--pique-primary);

    --bs-btn-hover-bg: var(--pique-deep);
    --bs-btn-hover-border-color: var(--pique-deep);

    background: var(--pique-primary) !important;
    border-color: var(--pique-primary) !important;
    color: white !important;
}


/* Primary button hover */

.btn-primary:hover,
.btn-rencana-save:hover {
    background: var(--pique-deep) !important;
}


/* Warning / edit button */

.btn-warning {
    background: var(--pique-yellow) !important;
    border-color: var(--pique-yellow) !important;
    color: var(--pique-text) !important;
}


/* Secondary / close button */

.btn-secondary,
.btn-rencana-close {
    background: #E8EDF3 !important;
    border-color: #D6DFE9 !important;
    color: var(--pique-text) !important;
}


/* =========================================================
   15. PAGINATION
   ========================================================= */


/* Active pagination */

.page-item.active .page-link {
    background: var(--pique-primary) !important;
    border-color: var(--pique-primary) !important;
    color: white !important;
}


/* Default pagination */

.page-link {
    color: var(--pique-primary);
}


/* =========================================================
   16. LANDING PAGE
   ========================================================= */

.index-page .btn-gradient {
    background: var(--pique-yellow) !important;
}
