* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f3f6fa;
    color: #202938;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.PermitPageContainer {
    max-width: 980px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.ReportPageContainer {
    max-width: 1500px;
    padding: 24px;
}

.PermitCard {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.07);
    overflow: hidden;
}

.PermitCardHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #e7ebf0;
}

.PermitPageTitle {
    margin: 0 0 2px;
    color: #182230;
    font-size: 22px;
    font-weight: 700;
}

.PermitPageText {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.PermitHeaderButton {
    min-width: 112px;
    border-radius: 8px;
    font-size: 13px;
}

.PermitCardBody {
    padding: 22px;
}

.ReportBodyCompact {
    padding: 18px 20px 16px;
}

.PermitLabel {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.PermitRequired {
    color: #dc3545;
}

.PermitControl {
    min-height: 40px;
    border: 1px solid #d5dbe4;
    border-radius: 7px;
    font-size: 13px;
    box-shadow: none !important;
}

.PermitControl:focus {
    border-color: #86b7fe;
}

.PermitActions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #edf0f3;
}

.PermitActionButton {
    min-width: 92px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.ReportToolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.ReportFilterGroup {
    width: 440px;
    max-width: 100%;
}

.ReportDateGroup .btn {
    font-size: 13px;
}

.ReportMetaGroup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ReportCount {
    color: #667085;
    font-size: 13px;
    white-space: nowrap;
}

.ReportPageSize {
    width: 115px;
    min-height: 38px;
}

.ReportTableWrap {
    border: 1px solid #e1e6ed;
    border-radius: 9px;
    overflow: hidden;
}

.ReportTable {
    min-width: 1100px;
    font-size: 12.5px;
}

.ReportTable thead th {
    padding: 10px 11px;
    background: #1f2937;
    color: #ffffff;
    border-color: #374151;
    white-space: nowrap;
    font-weight: 600;
}

.ReportTable tbody td {
    padding: 9px 11px;
    border-color: #edf0f3;
    color: #344054;
}

.ReportTable tbody tr:hover td {
    background: #f8fafc;
}

.ReportSrNo {
    width: 68px;
    text-align: center;
    font-weight: 600;
}

.PermitBadge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.ReportEmptyCell {
    height: 100px;
    text-align: center;
    color: #667085 !important;
}

.ReportFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 14px;
}

.ReportPageInfo {
    color: #667085;
    font-size: 12.5px;
}

.pagination .page-link {
    color: #344054;
    font-size: 12px;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
}

@media (max-width: 767px) {
    .PermitPageContainer, .ReportPageContainer {
        padding: 12px;
    }

    .PermitCardHeader {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .PermitCardBody, .ReportBodyCompact {
        padding: 16px;
    }

    .PermitHeaderButton {
        width: 100%;
    }

    .ReportToolbar, .ReportFooter {
        align-items: stretch;
        flex-direction: column;
    }

    .ReportFilterGroup {
        width: 100%;
    }

    .ReportMetaGroup {
        justify-content: space-between;
    }

    .PermitActions {
        flex-direction: column-reverse;
    }

    .PermitActionButton {
        width: 100%;
    }
}
