/* =========================================================
   ADMIN COMPANY DETAIL
   PSIKOTES MANAGEMENT PLATFORM
   CONTENT ONLY
========================================================= */


/* =========================================================
   PAGE WRAPPER
========================================================= */

.content-page {
    width: 100%;
    max-width: 100%;
    padding-bottom: 40px;
}


/* =========================================================
   BACK LINK
========================================================= */

.content-page .back-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 20px 0 !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.content-page .back-link:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18) !important;
    transform: translateX(-4px) !important;
}

html.theme-dark .content-page .back-link {
    background: #182854 !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #a5b4fc !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .content-page .back-link:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: translateX(-4px) !important;
}


/* =========================================================
   COMPANY HEADER
========================================================= */

.company-detail-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    width: 100%;

    min-height: 145px;

    padding: 30px 34px;

    margin-bottom: 20px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #071a35 0%,
            #0b2345 48%,
            #123b70 100%
        );

    box-shadow:
        0 14px 35px rgba(7, 26, 53, .16);
}


/* decorative glow */

.company-detail-header::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -80px;
    top: -120px;

    border-radius: 50%;

    background: rgba(37, 99, 235, .20);

    pointer-events: none;
}

.company-detail-header::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: 120px;
    bottom: -110px;

    border-radius: 50%;

    background: rgba(96, 165, 250, .10);

    pointer-events: none;
}


/* =========================================================
   COMPANY TITLE
========================================================= */

.company-detail-title {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* =========================================================
   COMPANY AVATAR
========================================================= */

.company-detail-avatar {
    width: 66px;
    height: 66px;

    min-width: 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #1d4ed8
        );

    border: 1px solid rgba(255,255,255,.15);

    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(0,0,0,.20);
}


/* =========================================================
   LABEL
========================================================= */

.company-detail-title .detail-label {
    display: block;

    margin-bottom: 6px;

    color: #7dd3fc;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;

    text-transform: uppercase;
}


/* =========================================================
   COMPANY NAME
========================================================= */

.company-detail-title h2 {
    margin: 0 0 5px;

    color: #ffffff;

    font-family:
        "Plus Jakarta Sans",
        "Inter",
        sans-serif;

    font-size: 25px;
    font-weight: 750;

    line-height: 1.25;

    letter-spacing: -.5px;
}


/* =========================================================
   IDENTIFIER
========================================================= */

.company-detail-title p {
    margin: 0;

    color: #b9c9df;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   STATUS HEADER
========================================================= */

.company-detail-header > .status-badge {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    min-width: 88px;

    padding: 8px 13px;

    border-radius: 999px;

    text-align: center;

    font-size: 10px;
    font-weight: 700;

    background: rgba(255,255,255,.10);

    border: 1px solid rgba(255,255,255,.14);

    backdrop-filter: blur(8px);
}


/* =========================================================
   STATUS COLORS
========================================================= */

.company-detail-header > .status-badge.success {
    color: #bbf7d0;

    background: rgba(22,163,74,.16);

    border-color: rgba(134,239,172,.18);
}

.company-detail-header > .status-badge.warning {
    color: #fde68a;

    background: rgba(245,158,11,.16);

    border-color: rgba(253,230,138,.18);
}

.company-detail-header > .status-badge.danger {
    color: #fecaca;

    background: rgba(220,38,38,.16);

    border-color: rgba(254,202,202,.18);
}

.company-detail-header > .status-badge.neutral {
    color: #dbeafe;

    background: rgba(148,163,184,.15);

    border-color: rgba(203,213,225,.18);
}


/* =========================================================
   SUMMARY GRID
========================================================= */

.company-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}


/* =========================================================
   SUMMARY CARD
========================================================= */

.company-summary-card {
    position: relative;

    min-height: 118px;

    padding: 21px 23px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 17px;

    box-shadow:
        0 5px 18px rgba(15,23,42,.045);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.company-summary-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(15,23,42,.08);
}


/* top accent */

.company-summary-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #2563eb;
}

.company-summary-card:nth-child(2)::before {
    background: #7c3aed;
}

.company-summary-card:nth-child(3)::before {
    background: #0891b2;
}


/* =========================================================
   SUMMARY TEXT
========================================================= */

.company-summary-card > span {
    display: block;

    margin-bottom: 7px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.company-summary-card > strong {
    display: block;

    margin-bottom: 4px;

    color: #172033;

    font-size: 26px;
    font-weight: 750;

    line-height: 1.1;
}

.company-summary-card > small {
    color: #94a3b8;

    font-size: 10px;
}


/* =========================================================
   DETAIL GRID
========================================================= */

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   DETAIL CARD
========================================================= */

.detail-card {
    width: 100%;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 17px;

    box-shadow:
        0 5px 18px rgba(15,23,42,.045);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.detail-card:hover {
    border-color: #d5deeb;

    box-shadow:
        0 10px 25px rgba(15,23,42,.07);
}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    padding-bottom: 15px;

    margin-bottom: 3px;

    border-bottom: 1px solid #edf1f6;
}

.card-heading > div:last-child {
    min-width: 0;
}

.card-heading span {
    display: block;

    margin-bottom: 3px;

    color: #94a3b8;

    font-size: 7.5px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.card-heading h3 {
    margin: 0;

    color: #172033;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   CARD ICON
========================================================= */

.card-icon {
    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 15px;
}

.detail-card:nth-child(2) .card-icon {
    background: #f5f3ff;

    color: #7c3aed;
}

.detail-card:nth-child(3) .card-icon {
    background: #ecfeff;

    color: #0891b2;
}

.detail-card:nth-child(4) .card-icon {
    background: #f0fdf4;

    color: #16a34a;
}


/* =========================================================
   INFO LIST
========================================================= */

.info-list {
    display: flex;

    flex-direction: column;
}


/* =========================================================
   INFO ROW
========================================================= */

.info-row {
    display: grid;

    grid-template-columns:
        145px minmax(0, 1fr);

    gap: 15px;

    align-items: center;

    min-height: 49px;

    padding: 10px 0;

    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row > span {
    color: #94a3b8;

    font-size: 10px;
    font-weight: 500;
}

.info-row > strong {
    color: #334155;

    font-size: 11px;
    font-weight: 650;

    line-height: 1.55;

    text-align: right;

    word-break: break-word;
}


/* =========================================================
   STATUS INSIDE INFO
========================================================= */

.info-row .status-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 700;

    background: #ecfdf3;

    color: #16a34a;
}


/* =========================================================
   EMPTY ASSOCIATOR
========================================================= */

.empty-payment {
    min-height: 175px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    padding: 20px;

    text-align: center;
}

.empty-payment .empty-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 13px;

    background: #f1f5f9;

    color: #94a3b8;

    font-size: 18px;
}

.empty-payment h4 {
    margin: 0 0 5px;

    color: #334155;

    font-size: 12px;
    font-weight: 700;
}

.empty-payment p {
    max-width: 280px;

    margin: 0;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   ACTION CARD
========================================================= */

.company-detail-actions {
    display: flex;

    flex-direction: column;

    gap: 9px;

    padding-top: 15px;
}


/* =========================================================
   ACTION BUTTON
========================================================= */

.company-detail-actions .action-button {
    width: 100%;

    min-height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 10px;

    border: 1px solid transparent;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.company-detail-actions .action-button:hover {
    transform: translateY(-1px);
}


/* EDIT */

.company-detail-actions .edit-company {
    color: #2563eb;

    background: #eff6ff;

    border-color: #dbeafe;
}

.company-detail-actions .edit-company:hover {
    background: #dbeafe;
}


/* VERIFY */

.company-detail-actions .verify {
    color: #15803d;

    background: #f0fdf4;

    border-color: #bbf7d0;
}

.company-detail-actions .verify:hover {
    background: #dcfce7;
}


/* REJECT */

.company-detail-actions .reject {
    color: #dc2626;

    background: #fef2f2;

    border-color: #fecaca;
}

.company-detail-actions .reject:hover {
    background: #fee2e2;
}


/* =========================================================
   FORM RESET
========================================================= */

.company-detail-actions form {
    width: 100%;

    margin: 0;
}

.company-detail-actions button {
    font-family: inherit;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .detail-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

    .company-summary-grid {
        grid-template-columns: 1fr;
    }

    .company-detail-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 25px;
    }

    .company-detail-header > .status-badge {
        align-self: flex-start;
    }

}


@media (max-width: 600px) {

    .content-page .back-link {
        margin-bottom: 14px;
    }

    .company-detail-header {
        padding: 21px;

        border-radius: 16px;
    }

    .company-detail-avatar {
        width: 54px;
        height: 54px;

        min-width: 54px;

        border-radius: 14px;

        font-size: 21px;
    }

    .company-detail-title {
        gap: 13px;
    }

    .company-detail-title h2 {
        font-size: 20px;
    }

    .detail-card {
        padding: 18px;
    }

    .info-row {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .info-row > strong {
        text-align: left;
    }

}


/* =========================================================
   DARK MODE OVERRIDES FOR COMPANY DETAIL PAGE
   ========================================================= */

html.theme-dark .content-page .back-link {
    background: #182854 !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #a5b4fc !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .content-page .back-link:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: translateX(-4px) !important;
}

html.theme-dark .company-detail-header {
    background: linear-gradient(135deg, #0b1329 0%, #151d38 50%, #1c284e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .company-detail-avatar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark .company-detail-title .detail-label {
    color: #38bdf8 !important;
}

html.theme-dark .company-detail-title h2 {
    color: #ffffff !important;
}

html.theme-dark .company-detail-title p {
    color: #94a3b8 !important;
}

html.theme-dark .company-detail-header > .status-badge.success,
html.theme-dark .company-detail-header > .status-badge.active {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

html.theme-dark .company-detail-header > .status-badge.warning,
html.theme-dark .company-detail-header > .status-badge.pending {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

html.theme-dark .company-detail-header > .status-badge.danger,
html.theme-dark .company-detail-header > .status-badge.inactive,
html.theme-dark .company-detail-header > .status-badge.nonaktif {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

html.theme-dark .company-detail-header > .status-badge.neutral {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(203, 213, 225, 0.35) !important;
}

html.theme-dark .company-summary-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    border-radius: 17px !important;
}

html.theme-dark .company-summary-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.theme-dark .company-summary-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
}

html.theme-dark .company-summary-card:nth-child(2)::before {
    background: linear-gradient(90deg, #8b5cf6, #c084fc) !important;
}

html.theme-dark .company-summary-card:nth-child(3)::before {
    background: linear-gradient(90deg, #06b6d4, #38bdf8) !important;
}

html.theme-dark .company-summary-card > span {
    color: #818cf8 !important;
}

html.theme-dark .company-summary-card > strong {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

html.theme-dark .company-summary-card > small {
    color: #94a3b8 !important;
}

html.theme-dark .detail-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    color: #cbd5e1 !important;
    border-radius: 17px !important;
}

html.theme-dark .detail-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

html.theme-dark .card-heading {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .card-heading span {
    color: #818cf8 !important;
}

html.theme-dark .card-heading h3 {
    color: #ffffff !important;
}

html.theme-dark .card-icon {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #818cf8 !important;
}

html.theme-dark .detail-card:nth-child(1) .card-icon {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: #60a5fa !important;
}

html.theme-dark .detail-card:nth-child(2) .card-icon {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(192, 132, 252, 0.3) !important;
    color: #c084fc !important;
}

html.theme-dark .detail-card:nth-child(3) .card-icon {
    background: rgba(6, 182, 212, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
}

html.theme-dark .detail-card:nth-child(4) .card-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
}

html.theme-dark .info-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .info-row > span {
    color: #94a3b8 !important;
}

html.theme-dark .info-row > strong {
    color: #f1f5f9 !important;
}

html.theme-dark .info-row .status-badge {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(203, 213, 225, 0.25) !important;
}

html.theme-dark .info-row .status-badge.success,
html.theme-dark .info-row .status-badge.active {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

html.theme-dark .info-row .status-badge.warning,
html.theme-dark .info-row .status-badge.pending {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

html.theme-dark .info-row .status-badge.danger,
html.theme-dark .info-row .status-badge.inactive,
html.theme-dark .info-row .status-badge.nonaktif {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

html.theme-dark .company-detail-actions .edit-company {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
}

html.theme-dark .company-detail-actions .edit-company:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

html.theme-dark .company-detail-actions .verify {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

html.theme-dark .company-detail-actions .verify:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #22c55e !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4) !important;
}

html.theme-dark .company-detail-actions .reject {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

html.theme-dark .company-detail-actions .reject:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4) !important;
}

html.theme-dark .empty-payment {
    background: transparent !important;
}

html.theme-dark .empty-payment .empty-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

html.theme-dark .empty-payment h4 {
    color: #ffffff !important;
}

html.theme-dark .empty-payment p {
    color: #94a3b8 !important;
}