/* /app/inn — полная ширина контента (без Tailwind-классов в inject) */

body.inn-route-active .main > div:first-child {
    display: flex !important;
    width: 100% !important;
}

body.inn-route-active .main > div:first-child > div:nth-child(2) {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#inn-page.inn-app-page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    flex: 1 1 auto;
    font-family: Inter, 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.inn-shell {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 48px);
    background: #e9edf8;
    padding: 10px 20px 24px;
    box-sizing: border-box;
}

.inn-inner {
    width: 100%;
    max-width: 100%;
}

.inn-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #8f9bba;
    margin-bottom: 8px;
}

.inn-breadcrumb-trail {
    flex: 1 1 auto;
    min-width: 0;
}

.inn-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #718096;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.inn-back-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

.inn-breadcrumb strong {
    color: #196e92;
    font-weight: 600;
}

.inn-main-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
}

.inn-main-top-left {
    flex: 1 1 240px;
    min-width: 0;
}

.inn-main-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 200px;
}

.inn-admin-name {
    font-size: 13px;
    color: #8f9bba;
}

.inn-int {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 3px;
    cursor: default;
}

.inn-int-ok {
    background: #d1fae5;
    color: #065f46;
}

.inn-int-warn {
    background: #fef3c7;
    color: #92400e;
}

.inn-int-bad {
    background: #fee2e2;
    color: #991b1b;
}

#inn-page .main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #196e92;
    margin: 0;
    line-height: 1.3;
}

#inn-page .main-title i {
    margin-right: 8px;
}

#inn-page .filter-bg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

#inn-page .inn-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f4f7fe;
    color: #5b6871;
    border: 1px solid #e5e7eb;
}

#inn-page .inn-chip-warn {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

#inn-page .inn-chip-ok {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

#inn-page .nxg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

#inn-page .nxg-btn-primary {
    background: #196e92;
    border-color: #196e92;
    color: #fff;
}

#inn-page .filter-search.inn-filter-input {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 280px;
    margin-left: auto;
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f4f7fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238F9BBA' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
    background-size: 14px;
    font-size: 13px;
}

#inn-page #inn-filter-type {
    min-width: 160px;
    cursor: pointer;
}

#inn-page .inn-main-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    box-sizing: border-box;
}

#inn-page .inn-loading {
    text-align: center;
    padding: 48px 20px;
    color: #8f9bba;
}

#inn-page .inn-error-box {
    margin: 16px;
    padding: 14px 18px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
}

#inn-page #inn-table-wrap {
    width: 100%;
    max-width: 100%;
    display: block;
}

#inn-page .p-datatable {
    width: 100%;
}

#inn-page .p-datatable-wrapper {
    overflow-x: auto;
    width: 100%;
}

#inn-page .p-datatable-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 13px;
}

#inn-page .p-datatable-thead > tr > th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #8f9bba;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

#inn-page .p-datatable-tbody > tr > td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
    vertical-align: middle;
}

#inn-page .p-datatable-tbody > tr:nth-child(even) {
    background: #fafbfc;
}

#inn-page .p-datatable-tbody > tr:hover {
    background: #eef6fa;
}

#inn-page .inn-table-footer {
    padding: 10px 14px;
    font-size: 13px;
    color: #8f9bba;
    border-top: 1px solid #f0f0f0;
}

#inn-page .inn-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

#inn-page .inn-badge-green {
    background: #d1fae5;
    color: #065f46;
}

#inn-page .inn-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

#inn-page .inn-badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

#inn-page .inn-badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.inn-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inn-modal.p-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    padding: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.inn-modal-title {
    margin: 0;
    padding: 20px 24px 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #196e92;
    border-bottom: 1px solid #e8ecf4;
}

.inn-modal-body {
    padding: 16px 24px;
    flex: 1 1 auto;
    overflow: auto;
}

.inn-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid #e8ecf4;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.inn-modal-form .inn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

@media (max-width: 520px) {
    .inn-modal-form .inn-form-grid {
        grid-template-columns: 1fr;
    }
}

.inn-modal-form .inn-field,
.inn-modal-body > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #4b5563;
}

.inn-field-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.inn-modal-form .inn-input,
.inn-modal-body input[type="text"],
.inn-modal-body input[type="number"],
.inn-modal-body input[type="password"],
.inn-modal-body input[type="tel"],
.inn-modal-body select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
}

.inn-field-hint,
.inn-modal-current {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.45;
}

.inn-modal-current strong {
    color: #196e92;
}

.inn-field.inn-field-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.inn-field.inn-field-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #196e92;
    flex-shrink: 0;
}

.inn-field.inn-field-check span {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #374151;
}

#inn-page .inn-health {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

#inn-page .inn-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

#inn-page .inn-health-active .inn-health-dot { background: #22c55e; }
#inn-page .inn-health-expiring .inn-health-dot { background: #eab308; }
#inn-page .inn-health-expired .inn-health-dot,
#inn-page .inn-health-blocked .inn-health-dot { background: #ef4444; }
#inn-page .inn-health-inactive .inn-health-dot { background: #9ca3af; }

#inn-page .inn-health-active .inn-health-text { color: #166534; }
#inn-page .inn-health-expiring .inn-health-text { color: #a16207; }
#inn-page .inn-health-expired .inn-health-text,
#inn-page .inn-health-blocked .inn-health-text { color: #b91c1c; }
#inn-page .inn-health-inactive .inn-health-text { color: #6b7280; }

#inn-page .inn-health-muted {
    color: #9ca3af;
}

#inn-page .inn-tariff-edit,
#inn-page .inn-phone-edit {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: #196e92;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

#inn-page .inn-tariff-edit:hover,
#inn-page .inn-phone-edit:hover {
    color: #0f4d66;
}

#inn-page .inn-phone-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
}

#inn-page .inn-phone-owner {
    font-size: 11px;
    color: #8f9bba;
    margin-top: 2px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inn-impersonate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

#inn-context-menu.inn-ctx-menu {
    position: fixed;
    z-index: 100001;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    min-width: 180px;
    border: 1px solid #e5e7eb;
}

html.dark body.inn-route-active .inn-shell {
    background-color: #0f172a !important;
}

html.dark .inn-back-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

html.dark .inn-back-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

html.dark .inn-breadcrumb {
    color: #94a3b8 !important;
}

html.dark #inn-page .filter-bg,
html.dark #inn-page .inn-main-card,
html.dark .inn-modal.p-dialog {
    background-color: #18181b !important;
    border-color: #424245 !important;
    color: #e4e4e7 !important;
}

html.dark #inn-page .p-datatable-thead > tr > th {
    background: #212121 !important;
    color: #a1a1aa !important;
}

html.dark #inn-page .p-datatable-tbody > tr > td {
    color: #e4e4e7 !important;
    border-color: #333 !important;
}

html.dark #inn-page .filter-search.inn-filter-input {
    background-color: #212121 !important;
    border-color: #52525b !important;
    color: #e4e4e7 !important;
}
