﻿/* MOB365 CompanyEdit - global CSS */
.company-edit-page {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding-bottom: 48px;
    color: #0f172a
}

    .company-edit-page .page-head {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 24px
    }

.back-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850
}

.company-edit-loading, .company-edit-empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15,23,42,.07)
}

.company-edit-alert {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid;
    border-radius: 15px
}

.company-edit-alert-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    font-weight: 950
}

.company-edit-alert.success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4
}

    .company-edit-alert.success .company-edit-alert-icon {
        background: #16a34a
    }

.company-edit-alert.danger {
    color: #991b1b;
    border-color: #fecaca;
    background: #fff1f2
}

    .company-edit-alert.danger .company-edit-alert-icon {
        background: #dc2626
    }

.company-edit-panel {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15,23,42,.065)
}

.company-edit-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc
}

.company-edit-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .13em
}

.company-edit-form {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 17px;
    padding: 24px
}

    .company-edit-form > div {
        min-width: 0
    }

    .company-edit-form label:not(.company-edit-check) {
        display: block;
        margin-bottom: 7px;
        color: #334155;
        font-size: 11px;
        font-weight: 850
    }

    .company-edit-form input, .company-edit-form select {
        width: 100%;
        min-height: 45px;
        padding: 0 13px;
        border: 1px solid #dbe4ef;
        border-radius: 12px;
        background: #fff;
        outline: none;
        font-family: inherit;
        font-size: 13px
    }

        .company-edit-form input:focus, .company-edit-form select:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 4px rgba(37,99,235,.10)
        }

.company-edit-check {
    display: flex !important;
    min-height: 45px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800
}

    .company-edit-check input {
        width: 17px !important;
        height: 17px;
        accent-color: #2563eb
    }

.company-edit-primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    font-weight: 900;
    cursor: pointer
}

    .company-edit-primary-button:disabled {
        opacity: .62
    }

.company-edit-table-wrap {
    width: 100%;
    overflow-x: auto
}

.company-edit-table {
    width: 100%;
    border-collapse: collapse
}

    .company-edit-table th {
        padding: 13px 17px;
        color: #64748b;
        background: #f8fafc;
        text-align: left;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase
    }

    .company-edit-table td {
        padding: 15px 17px;
        border-top: 1px solid #f1f5f9;
        font-size: 12px
    }

.company-edit-license-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900
}

    .company-edit-license-status.ok {
        color: #047857;
        background: #d1fae5
    }

    .company-edit-license-status.warn {
        color: #92400e;
        background: #fef3c7
    }

    .company-edit-license-status.bad {
        color: #b91c1c;
        background: #fee2e2
    }

@media(max-width:1100px) {
    .company-edit-form {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:650px) {
    .company-edit-page .page-head {
        flex-direction: column
    }

    .company-edit-form {
        grid-template-columns: 1fr;
        padding: 18px
    }

    .company-edit-panel-header {
        flex-direction: column
    }
}
