﻿/* =========================================================
   SINGGASANA ADMIN V2
   ========================================================= */

:root {
    --sg-page-gap: 28px;
    --sg-card-radius: 12px;
    --sg-border: rgba(255, 255, 255, .07);
    --sg-muted: #8d98a9;
}

/* PAGE AREA */
.sg-page {
    padding-top: 26px;
    padding-bottom: 40px;
}

/* PAGE HEADER */
.sg-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.sg-page-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.sg-page-subtitle {
    margin: 0;
    color: var(--sg-muted);
    font-size: 13px;
}

.sg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--sg-muted);
    font-size: 12px;
}

    .sg-breadcrumb a {
        color: var(--sg-muted);
        text-decoration: none;
    }

        .sg-breadcrumb a:hover {
            color: var(--bs-primary);
        }

/* MAIN CARD */
.sg-card {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.sg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.sg-card-subtitle {
    margin: 4px 0 0;
    color: var(--sg-muted);
    font-size: 12px;
}

.sg-card-body {
    padding: 0;
}

/* TOOLBAR */
.sg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

    .sg-search i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--sg-muted);
    }

    .sg-search .form-control {
        padding-left: 38px;
    }

/* TABLE */
.sg-table {
    margin: 0;
}

    .sg-table thead th {
        padding: 13px 20px;
        border-bottom-width: 1px;
        color: var(--sg-muted);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        white-space: nowrap;
    }

    .sg-table tbody td {
        padding: 17px 20px;
        vertical-align: middle;
    }

    .sg-table tbody tr:last-child td {
        border-bottom: 0;
    }

.sg-table-code {
    font-weight: 600;
}

/* STATUS */
.sg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

    .sg-status::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.sg-status-active {
    color: #43c59e;
    background: rgba(67, 197, 158, .10);
}

    .sg-status-active::before {
        background: #43c59e;
    }

.sg-status-inactive {
    color: var(--sg-muted);
    background: rgba(141, 152, 169, .10);
}

    .sg-status-inactive::before {
        background: var(--sg-muted);
    }

/* ACTION */
.sg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.sg-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 7px;
}

/* EMPTY */
.sg-empty {
    padding: 55px 20px !important;
    text-align: center;
    color: var(--sg-muted);
}

/* MOBILE */
@media (max-width: 767.98px) {
    .sg-page {
        padding-top: 18px;
    }

    .sg-page-header,
    .sg-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sg-search {
        width: 100%;
    }

    .sg-page-header .btn {
        width: 100%;
    }
}
