/* eTasjil V2.0 - semaktawaran/front only (loaded after public-base.css + public-main.css) */

/* Section accent per category (icon + top line) */
.lm-section--semakan    { --s-a: #065f46; --s-b: #10b981; }
.lm-section--permohonan { --s-a: #4c1d95; --s-b: #8b5cf6; }
.lm-section--temuduga   { --s-a: #9d174d; --s-b: #ec4899; }

.lm-section--semakan,
.lm-section--permohonan,
.lm-section--temuduga {
    border-top: 4px solid var(--s-b);
}

.lm-section--semakan .lm-section-icon,
.lm-section--permohonan .lm-section-icon,
.lm-section--temuduga .lm-section-icon {
    background: linear-gradient(135deg, var(--s-a) 0%, var(--s-b) 100%);
    box-shadow: 0 10px 20px -8px var(--s-b);
}

.lm-section-sub {
    margin-top: .1rem;
    font-size: .8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--lm-muted);
}

/* Table: 5 columns - give Category the room, let dates wrap, keep Link/Contact compact */
.lm-table--front tbody td:first-child {
    min-width: 300px;
}

.lm-table--front tbody td:nth-child(2),
.lm-table--front tbody td:nth-child(3) {
    min-width: 130px;
    white-space: normal;
}

.lm-table--front .lm-btn {
    white-space: nowrap;
    padding: 0 1rem;
}

.lm-table--front .lm-term {
    font-size: .85rem;
    font-weight: 500;
    color: var(--lm-muted);
}

.lm-table--front tbody td:first-child small em {
    font-size: .8rem;
    font-weight: 500;
}

.lm-table--front tbody td.lm-td-link {
    width: 150px;
    min-width: 150px;
}

/* public-main.css sets the last column to 150px (Link); here the last column is Contact Us */
.lm-table--front tbody td:last-child {
    width: auto;
}

.lm-td-contact {
    min-width: 210px;
}

.lm-mini-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lm-mini-contact li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .15rem 0;
    font-size: .82rem;
    color: var(--lm-ink);
    word-break: break-word;
}

.lm-mini-contact li i {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e8edfb;
    color: var(--lm-primary-2);
    font-size: .75rem;
}

.lm-mini-contact a {
    color: var(--lm-primary-2);
    font-weight: 600;
}

/* Empty state */
.lm-table--front .lm-empty-row td {
    padding: 2rem 1rem;
    font-size: .9rem;
    border-bottom: 0;
}

.lm-table--front .lm-empty-row td i {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.6rem;
    color: #cbd5e1;
}

.lm-table--front .lm-empty-row:hover td {
    background: transparent;
}

/* Notice / helpdesk used as standalone cards (no table above) */
.lm-notice--standalone {
    margin: 1.25rem 1.75rem;
}

.lm-helpdesk--standalone {
    margin-top: 0;
}

@media (max-width: 767px) {
    .lm-table--front tbody td:first-child,
    .lm-table--front tbody td:nth-child(2),
    .lm-table--front tbody td:nth-child(3),
    .lm-td-contact {
        min-width: 0;
    }

    .lm-table--front tbody td.lm-td-link {
        width: 100% !important;
        min-width: 0;
    }

    .lm-table--front tbody td.lm-td-contact {
        margin-top: .5rem;
        padding-top: .75rem !important;
        border-top: 1px dashed var(--lm-line) !important;
    }

    .lm-table--front .lm-empty-row {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .lm-notice--standalone {
        margin: 1rem 1.25rem;
    }
}
