/* =========================================
   Notifikasi
========================================= */

.notification-unread {
    background-color: rgba(0, 158, 247, 0.08);
    border-left: 3px solid #009ef7;
}

.notification-read {
    opacity: .75;
}


/* mengatasi dropdown select tidak terbuka pada parent */
#modalDisposisi .select2-container--open .select2-dropdown {
    top: 100% !important;
    bottom: auto !important;
}

/* =========================================
   Modal Penjadwalan Audiensi
========================================= */

#kt_modal_add_event .select2-container {
    width: 100% !important;
}

#kt_modal_add_event .select2-container--open {
    z-index: 9999;
}

#kt_modal_add_event .select2-dropdown--above {
    top: 100% !important;
    bottom: auto !important;
}

/* ==========================================================
   FOLLOWUP CARD (VIEW TINDAK LANJUT)
   ========================================================== */

.followup-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bs-gray-300);
    border-radius: .625rem;
    background-color: var(--bs-white);
    cursor: pointer;
    transition: all .25s ease;
}

.followup-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--bs-gray-400);
    transition: background-color .25s ease;
}

.followup-item:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary-light);
    background-color: var(--bs-light);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.followup-item:active {
    transform: translateY(0);
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .05);
}

.followup-item:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}

/* Status */

.followup-border-primary::before {
    background-color: var(--bs-primary);
}

.followup-border-success::before {
    background-color: var(--bs-success);
}

.followup-border-warning::before {
    background-color: var(--bs-warning);
}

.followup-border-danger::before {
    background-color: var(--bs-danger);
}

.followup-border-secondary::before {
    background-color: var(--bs-gray-500);
}

/* Content */

.followup-item .instansi {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-gray-900);
    line-height: 1.4;
}

.followup-item .tujuan {
    color: var(--bs-gray-600);
    font-size: .875rem;
    line-height: 1.5;
}

.followup-item .progress-info {
    font-size: .85rem;
    font-weight: 600;
}

/* Arrow */

.followup-item::after {
    content: "\f285";
    font-family: bootstrap-icons;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-gray-500);
    opacity: 0;
    transition: all .25s ease;
}

.followup-item:hover::after {
    opacity: 1;
    right: 15px;
}


/* ==========================================================
   MONITOR CARD (DETAIL TINDAK LANJUT)
   ========================================================== */

.monitor-item {
    position: relative;
    border: 1px solid var(--bs-gray-300);
    border-radius: .625rem;
    background-color: var(--bs-white);

    transition:
        border-color .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}

.monitor-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.monitor-item:hover {
    border-color: var(--bs-primary-light);
    background-color: var(--bs-light);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.monitor-item:active {
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .05);
}

/* Status */

.monitor-primary::before {
    background: var(--bs-primary);
}

.monitor-success::before {
    background: var(--bs-success);
}

.monitor-warning::before {
    background: var(--bs-warning);
}

.monitor-danger::before {
    background: var(--bs-danger);
}

.monitor-info::before {
    background: var(--bs-info);
}

/* Layout */

.monitor-item .card-header {
    min-height: 60px;
    padding: 1rem .75rem;
}

.monitor-item .card-body {
    padding: 0 .75rem .75rem;
}


/* ==========================================================
   DECISION CARD (VERIFIKASI LAPORAN)
   ========================================================== */

.verification-card {
    cursor: pointer;
    transition: all .2s ease;
}

.verification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.verification-card input[type="radio"] {
    cursor: pointer;
}

/* ==========================================================
   READ MESSAGE
   ========================================================== */

/* Label Informasi */
.info-label {
    width: 100px;
}

@media (min-width: 992px) {
    .info-label {
        width: 200px;
    }
}

/* ==========================================================
   CARD SCROLL
   ========================================================== */

.card-scroll {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-scroll .card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================
   CUSTOM SCROLLBAR
   ========================================================== */

.card-scroll .card-body::-webkit-scrollbar,
.leftbottom-panel::-webkit-scrollbar {
    width: 6px;
}

.card-scroll .card-body::-webkit-scrollbar-thumb,
.leftbottom-panel::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 10px;
}

.card-scroll .card-body::-webkit-scrollbar-track,
.leftbottom-panel::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================================================
   CARD HEIGHT
   ========================================================== */

.read-perihal,
.read-request {
    height: 100%;
}

.read-request,
.read-request .card-body {
    overflow: visible !important;
}

.read-timeline {
    height: 500px;
}

/* ==========================================================
   LEFT PANEL
   ========================================================== */

.leftbottom-panel {
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Mobile & Tablet */
@media (max-width: 991.98px) {
    .leftbottom-panel {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .leftbottom-panel {
        height: auto;
        overflow: visible;
    }
}

/* read_history */
/* ==========================================================
    * RESUME PHOTO
    * ========================================================== */

.resume-photo {
    max-width: 100%;
    max-height: 175px;
    object-fit: contain;
}

/* ==========================================================
    * SCROLLABLE CARD
    * ========================================================== */

.read-resume,
.read-information,
.card-tindaklanjut {
    display: flex;
    flex-direction: column;
}

.read-resume .card-body,
.read-information .card-body,
.card-tindaklanjut-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================================
    * SCROLLBAR
    * ========================================================== */

.read-resume .card-body::-webkit-scrollbar,
.read-information .card-body::-webkit-scrollbar,
.card-tindaklanjut-body::-webkit-scrollbar {
    width: 6px;
}

.read-resume .card-body::-webkit-scrollbar-thumb,
.read-information .card-body::-webkit-scrollbar-thumb,
.card-tindaklanjut-body::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

.read-resume .card-body::-webkit-scrollbar-thumb:hover,
.read-information .card-body::-webkit-scrollbar-thumb:hover,
.card-tindaklanjut-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ==========================================================
    * FIXED HEIGHT
    * ========================================================== */

.read-information {
    height: 650px;
}

.card-tindaklanjut {
    height: 500px;
}


/* =========================================
   Resume / Decision Card
========================================= */

.decision-card {
    transition: all .25s ease;
    border: 1px solid var(--bs-gray-300) !important;
    border-radius: .75rem;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .05);
}

.decision-card:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary) !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12);
}

.decision-card.active {
    border: 2px solid var(--bs-primary) !important;
    background: var(--bs-light-primary);
    box-shadow: 0 0 18px rgba(0, 158, 247, .15);
}

.decision-card .symbol-label {
    transition: .25s;
}

.decision-card.active .symbol-label {
    transform: scale(1.08);
}

.decision-card.disabled {
    pointer-events: none;
    opacity: .75;
    cursor: default;
}

/* =========================================
   Monitor / Inbox Tindak Lanjut
========================================= */

.monitor-item {
    position: relative;
    overflow: hidden;
    transition: all .2s ease;
    cursor: pointer;
}

.monitor-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    z-index: 1;
}

/* Status */
.monitor-primary::before {
    background: var(--bs-primary);
}

.monitor-success::before {
    background: var(--bs-success);
}

.monitor-warning::before {
    background: var(--bs-warning);
}

.monitor-danger::before {
    background: var(--bs-danger);
}

.monitor-info::before {
    background: var(--bs-info);
}

.monitor-item:hover {
    background: #FCFCFC;
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.card-toolbar {
    margin-top: 2px;
}

.badge {
    margin-top: 3px;
}

