/* ===================================
   پنل مدیریت تعمیرگاه - استایل اصلی
   =================================== */

/* ==================== متغیرهای CSS ==================== */
:root {
    /* رنگ‌های اصلی */
    --primary-color: #5b7dff;
    --primary-dark: #4461d7;
    --primary-light: #7a97ff;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;

    /* رنگ‌های خاکستری */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* رنگ‌های وضعیت */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* سایه‌ها */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* ابعاد */
    --header-height: 60px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --mobile-bottom-menu-height: 60px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
}

/* ==================== تنظیمات پایه ==================== */
* {
    box-sizing: border-box;
}

/* جلوگیری از سرریز افقی به‌خاطر سایدبار off-canvas (position:fixed) در موبایل.
   overflow-x روی body کافی نیست چون سایدبار fixed نسبت به viewport است؛ باید روی html باشد.
   از clip استفاده می‌کنیم تا position:sticky نشکند. */
html {
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== Header ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    gap: 1rem;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.header-logo img {
    height: 32px;
    width: auto;
}

/* Header Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.header-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.header-search .form-control {
    padding-right: 40px;
    border-color: var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.header-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.header-action-btn .badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    background-color: var(--danger-color);
    color: #fff;
    border-radius: 10px;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.header-user-btn:hover {
    background-color: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.chevron-down {
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.header-user-btn:hover .chevron-down {
    transform: rotate(180deg);
}

/* Notifications Dropdown */
.notifications-dropdown {
    width: 360px;
    max-height: 480px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
}

.notifications-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.notifications-dropdown .dropdown-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background-color: var(--gray-50);
}

.notification-item.unread {
    background-color: rgba(37, 99, 235, 0.05);
}

.notification-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.notification-content {
    flex: 1;
}

.notification-title {
    margin: 0 0 0.25rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
}

.notification-time {
    margin: 0;
    font-size: 12px;
    color: var(--gray-500);
}

.notifications-dropdown .dropdown-footer {
    display: block;
    padding: 0.75rem 1.25rem;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    border-top: 1px solid var(--gray-200);
}

/* User Dropdown */
.user-dropdown {
    width: 240px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
}

.user-dropdown .dropdown-header {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.user-dropdown .dropdown-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.user-dropdown .dropdown-header p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.user-dropdown .dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.user-dropdown .dropdown-item svg {
    width: 18px;
    height: 18px;
}

/* ==================== Sidebar ==================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    border-left: 1px solid var(--gray-200);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-base);
    z-index: 999;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-title {
    flex: 1;
    margin: 0 0 0 1rem;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0 0.75rem 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.nav-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    transition: transform var(--transition-fast);
}

.nav-link.has-submenu[aria-expanded="true"] .nav-arrow {
    transform: rotate(-90deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0.5rem 0 0.5rem 2.75rem;
    margin: 0;
}

.submenu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    font-size: 13px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.submenu-link:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.submenu-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-divider {
    height: 1px;
    margin: 0.75rem 1.25rem;
    background-color: var(--gray-200);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.sidebar-footer-info {
    text-align: center;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ==================== Main Container ==================== */
.main-container {
    display: flex;
    margin-top: var(--header-height);
}

.content-wrapper {
    flex: 1;
    /* min-width:0 لازم است تا آیتم فلکس بتواند کوچک‌تر از min-content فرزندان (مثل جدول) شود
       و جدول‌ها داخل .table-responsive اسکرول شوند، نه اینکه کل محتوا را پهن کنند. */
    min-width: 0;
    margin-right: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    transition: margin-right var(--transition-base);
}

/* ==================== Page Navigation (Breadcrumb) ==================== */
.page-navigation {
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--gray-600);
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.5rem;
    color: var(--gray-400);
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== Main Content ==================== */
.main-content {
    padding: 1.5rem;
    min-height: calc(100vh - var(--header-height) - 60px - 48px); /* header + breadcrumb + footer */
}

/* ==================== Footer ==================== */
.main-footer {
    background-color: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.footer-text {
    font-size: 13px;
    color: var(--gray-600);
}

/* ==================== Mobile Bottom Menu ==================== */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-bottom-menu-height);
    background-color: #fff;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
}

.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-bottom-menu .menu-item:hover,
.mobile-bottom-menu .menu-item.active {
    color: var(--primary-color);
}

.mobile-bottom-menu .menu-item .icon {
    width: 22px;
    height: 22px;
}

/* ==================== Cards ==================== */
.card {
    background-color: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ==================== Stat Cards ==================== */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    font-size: 24px;
}

.stat-icon.primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-content {
    flex: 1;
}

.stat-label {
    margin: 0 0 0.25rem;
    font-size: 13px;
    color: var(--gray-600);
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #fff;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 13px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 16px;
}

/* Loading State for AJAX Buttons */
.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ==================== Forms ==================== */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

/* ==================== Tables ==================== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table thead th {
    padding: 0.875rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    border-bottom: 2px solid var(--gray-200);
    background-color: var(--gray-50);
}

.table tbody td {
    padding: 0.875rem 1rem;
    font-size: 14px;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ==================== Badges ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
}

.bg-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.bg-success {
    background-color: var(--success-color);
    color: #fff;
}

.bg-warning {
    background-color: var(--warning-color);
    color: #fff;
}

.bg-danger {
    background-color: var(--danger-color);
    color: #fff;
}

/* ==================== Responsive ==================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-close {
        display: flex;
    }

    .content-wrapper {
        margin-right: 0;
    }

    .mobile-bottom-menu {
        display: flex;
    }

    .main-content {
        padding-bottom: calc(var(--mobile-bottom-menu-height) + 1rem);
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 20px;
    }
}

/* ==================== Utilities ==================== */
.text-muted {
    color: var(--gray-500) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.small {
    font-size: 0.875rem;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-inline {
        display: inline !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

/* ==================== صفحه‌ی خطا در پنل ==================== */
.panel-error { text-align: center; padding: 60px 20px; max-width: 520px; margin: 40px auto; }
.panel-error-code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--primary-color); }
.panel-error .page-title { margin: 12px 0 6px; }
.panel-error p { margin-bottom: 24px; }

/* ==================== نوار ابزار فهرست‌ها (انبار و …) ==================== */
.inv-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.inv-toolbar .form-control, .inv-toolbar .form-select { width: auto; min-width: 190px; }
@media (max-width: 575.98px) {
    .inv-toolbar { width: 100%; }
    .inv-toolbar .form-control, .inv-toolbar .form-select { flex: 1 1 100%; min-width: 0; }
}

/* ==================== نوار ابزار گزارش‌ها ==================== */
.report-toolbar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
@media print {
    .main-header, .sidebar, .sidebar-overlay, .mobile-bottom-menu, .page-navigation, .report-toolbar { display: none !important; }
    .content-wrapper { margin: 0 !important; }
}

/* ==================== پروفایل تعمیرگاه ==================== */
.profile-logo {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, #5b7dff, #8b5cf6);
    color: #fff; display: grid; place-items: center; font-size: 42px;
}

/* ==================== ساعات کاری (ویرایش) ==================== */
.hours-edit-row {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100);
}
.hours-edit-row:last-child { border-bottom: none; }
.hours-edit-row .he-day { flex: 0 0 90px; font-weight: 600; }
.hours-edit-row .he-open, .hours-edit-row .he-close { flex: 0 0 110px; width: 110px; }
.hours-edit-row .he-sep { color: var(--gray-500); }
.hours-edit-row .he-closed { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--gray-600); cursor: pointer; margin-bottom: 0; }
@media (max-width: 575.98px) {
    .hours-edit-row .he-closed { margin-inline-start: 0; }
}

/* ==================== Skeleton loading (conventions §۷.۵) ==================== */
.gm-loading > *:not(.gm-skeleton-wrap) { display: none !important; }
.gm-skeleton-wrap { animation: gm-fade .2s ease; }
.gm-loading-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; margin-bottom: 18px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 10px; color: #6b7280; font-size: 13.5px; }
.gm-loading-banner .spinner-border { width: 16px; height: 16px; border-width: 2px; color: #5b7dff; }
.sk { position: relative; overflow: hidden; background: #eef0f3; border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: gm-shimmer 1.2s infinite; }
@keyframes gm-shimmer { 100% { transform: translateX(100%); } }
@keyframes gm-fade { from { opacity: 0; } to { opacity: 1; } }
.sk-title { height: 22px; width: 34%; margin-bottom: 18px; }
.sk-line { height: 12px; margin: 10px 0; }
.sk-card { height: 104px; margin-bottom: 14px; }
.sk-stat { height: 86px; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 768px) { .sk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sk-grid { grid-template-columns: 1fr; } }
