/* Palet dan panel mengikuti halaman Extensions / Registration. */
.rec-page {
    color: #51483f;
    padding: 4px 0 24px;
}

.rec-page [hidden] {
    display: none !important;
}

.rec-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.rec-eyebrow {
    margin: 0 0 8px;
    color: #b48336;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.rec-hero h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.6px;
}

.rec-hero p:not(.rec-eyebrow) {
    margin: 9px 0 0;
    color: #938679;
    font-size: 12px;
}

.rec-primary,
.rec-secondary,
.rec-play,
.rec-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e1d7ca;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fffefa;
    color: #796a58;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.rec-primary {
    background: #b7883d;
    border-color: #b7883d;
    color: white;
    font-weight: 600;
}

.rec-secondary:hover,
.rec-play:hover,
.rec-download:hover {
    background: #fff4dc;
    border-color: #d8b978;
}

.rec-page button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.rec-panel {
    background: #fffefa;
    border: 1px solid #e9e1d6;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 4px 22px #49321c05;
}

.rec-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #eee8df;
}

.rec-panel-head h2 {
    font-size: 14px;
    margin: 0 0 7px;
}

.rec-panel-head p,
.rec-period-note {
    color: #978a7e;
    font-size: 11px;
    margin: 0;
}

.rec-badge {
    border: 1px solid #e7dcc9;
    background: #faf5ec;
    border-radius: 20px;
    padding: 6px 10px;
    color: #9c8057;
    font-size: 10px;
    white-space: nowrap;
}

.rec-filters {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(125px, 1fr)) minmax(140px, 1fr) minmax(190px, 1.4fr)
        auto;
    gap: 12px;
    align-items: end;
    padding: 20px 22px 10px;
}

.rec-filters label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 0;
}

.rec-filters input,
.rec-filters select {
    width: 100%;
    min-width: 0;
    height: 39px;
    box-sizing: border-box;
    border: 1px solid #e6ded3;
    border-radius: 7px;
    padding: 8px 10px;
    color: #6c5d4e;
    background: white;
    font: inherit;
    font-size: 11px;
}

.rec-period-note {
    padding: 0 22px 18px;
}

.rec-page :focus-visible {
    outline: 2px solid #bf923e;
    outline-offset: 3px;
}

.rec-table-wrap {
    max-height: 570px;
    overflow: auto;
    margin: 0 16px;
    border: 1px solid #eee8df;
    border-radius: 8px;
}

.rec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
    text-align: left;
}

.rec-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f4ed;
    color: #968573;
    padding: 14px 12px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
    border-bottom: 1px solid #eee8df;
}

.rec-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0eae1;
    vertical-align: middle;
}

.rec-table tbody tr:hover {
    background: #fdf9f1;
}

.rec-table td:first-child {
    white-space: nowrap;
}

.rec-direction {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f2eee8;
    color: #887666;
    font-size: 10px;
}

.rec-direction[data-direction="inbound"] {
    color: #467a62;
    background: #edf6ef;
}

.rec-direction[data-direction="outbound"] {
    color: #9c7632;
    background: #fff3d9;
}

.rec-direction[data-direction="internal"] {
    color: #587997;
    background: #edf3f9;
}

.rec-duration {
    font-variant-numeric: tabular-nums;
}

.rec-audio-cell {
    min-width: 280px;
}

.rec-file {
    max-width: 300px;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-bottom: 8px;
    color: #9b8f82;
    font-size: 10px;
}

.rec-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-play,
.rec-download {
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
}

.rec-download {
    text-decoration: none;
}

.rec-audio-cell audio {
    display: block;
    height: 34px;
    width: 280px;
}

.rec-audio-error {
    display: block;
    color: #a54b42;
    margin-top: 8px;
    max-width: 300px;
    line-height: 1.5;
}

.rec-empty {
    text-align: center;
    padding: 40px 20px;
    color: #988a7b;
}

.rec-empty > i {
    font-size: 30px;
    color: #c1ad8f;
}

.rec-empty h3 {
    font-size: 14px;
    color: #7d6e5e;
}

.rec-empty p {
    font-size: 12px;
}

.rec-sentinel {
    min-height: 48px;
    display: grid;
    place-items: center;
    color: #9a8d7e;
    font-size: 11px;
    padding: 8px 12px;
    text-align: center;
}

.rec-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 22px;
    color: #938573;
    font-size: 11px;
}

.rec-error {
    margin: 0 22px 16px;
    padding: 12px;
    border: 1px solid #e6b7b1;
    border-radius: 8px;
    background: #fff2f0;
    color: #97443b;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .rec-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rec-filters button {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .rec-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .rec-panel-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .rec-filters {
        padding: 18px 16px 10px;
        gap: 14px 10px;
    }

    .rec-filters button {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .rec-table-wrap {
        margin: 0 10px;
        max-height: 65vh;
    }

    .rec-period-note {
        padding-inline: 16px;
        line-height: 1.5;
    }
}
