﻿@import url('base.css');

.page-wrap {
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1f1f1f;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px 18px 14px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    margin-bottom: 18px;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-ico {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -.2px;
}

.hero-sub {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 4px;
}

.panelx {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    overflow: hidden;
}

.panel-head {
    padding: 11px 16px;
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .15px;
}

.panel-body {
    padding: 14px 16px 16px;
}

.form-group {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.inputx,
.textarea-x,
.selectx {
    width: 100%;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    outline: none;
    transition: .15s ease-in-out;
}

.inputx,
.selectx {
    height: 40px;
}

.textarea-x {
    min-height: 120px;
    height: auto;
    resize: vertical;
}

    .inputx:focus,
    .textarea-x:focus,
    .selectx:focus {
        border-color: #4f8edb;
        box-shadow: 0 0 0 3px rgba(79,142,219,.14);
    }

    .inputx[readonly],
    .textarea-x[readonly],
    .selectx[disabled] {
        background: #f8fafc;
        color: #374151;
        cursor: default;
    }

.gridx {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    color: #1f2937;
    overflow: hidden;
}

    .gridx th {
        background: #111111;
        color: #ffffff;
        font-weight: 600;
        padding: 11px 10px;
        border-bottom: 1px solid #000000;
        border-right: 1px solid #333333;
        text-align: left;
        white-space: nowrap;
    }

        .gridx th:first-child {
            border-top-left-radius: 10px;
        }

        .gridx th:last-child {
            border-top-right-radius: 10px;
            border-right: none;
        }

    .gridx td {
        background: #ffffff;
        padding: 9px 10px;
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #f3f4f6;
        vertical-align: middle;
    }

        .gridx td:last-child {
            border-right: none;
        }

    .gridx tr:hover td {
        background: #f9fafb;
    }

    .gridx a {
        color: #111827;
        font-weight: 600;
        text-decoration: none;
    }

        .gridx a:hover {
            text-decoration: underline;
        }

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btnx,
.btn-menu {
    border: none;
    border-radius: 10px;
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: .18s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    background-color: #111111;
}

    .btnx:hover,
    .btn-menu:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0,0,0,.12);
    }

    .btnx:disabled,
    .btn-menu:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-clear {
    background: #4b5563;
}

    .btn-clear:hover {
        background: #374151;
    }

.btn-save {
    background: #111111;
}

    .btn-save:hover {
        background: #333333;
    }

.btn-edit {
    background: #111111;
}

    .btn-edit:hover {
        background: #333333;
    }

.btn-disable {
    background: #dc2626;
}

    .btn-disable:hover {
        background: #b91c1c;
    }

.btn-menu {
    background: #6b7280;
}

    .btn-menu:hover {
        background: #4b5563;
    }

.section {
    margin-top: 18px;
}

.footer-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 6px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.ok {
    background: #e8f6ed;
    color: #1b7a38;
}

.help {
    color: #5f6d82;
    font-size: 12px;
    margin-top: 6px;
}

@media (max-width: 991px) {
    .page-wrap {
        padding: 14px;
    }

    .hero {
        padding: 14px;
    }

    .hero-title {
        font-size: 19px;
    }

    .panel-body {
        padding: 14px;
    }

    .btn-row {
        gap: 8px;
    }

    .btnx,
    .btn-menu {
        min-width: 96px;
    }

    .footer-actions {
        justify-content: stretch;
    }

    .btn-menu {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-top {
        align-items: flex-start;
    }

    .hero-ico {
        width: 48px;
        height: 48px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-sub {
        font-size: 11px;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btnx,
    .btn-menu {
        width: 100%;
    }

    .gridx {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
