/* Shared exact-match CSS extracted from custom-ai.css */

body.route-action-create .form-section-header h4, body.route-action-update .form-section-header h4, body.route-city-create .form-header h4, body.route-city-update .form-header h4, body.route-device-info-create .header-text h3, body.route-device-info-update .header-text h3, body.route-site-setting-form .settings-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

body.route-action-create .form-control:focus, body.route-action-update .form-control:focus, body.route-assembly-create .form-control:focus, body.route-assembly-update .form-control:focus, body.route-city-create .form-control:focus, body.route-city-update .form-control:focus, body.route-user-form-name .with-border:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

body.route-action-create .select2-container--default .select2-selection--single, body.route-action-update .select2-container--default .select2-selection--single, body.route-city-create .select2-container--default .select2-selection--single, body.route-city-update .select2-container--default .select2-selection--single, body.route-user-update-department .select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
}

body.route-action-create .btn-save-action:hover, body.route-action-update .btn-save-action:hover, body.route-action-index .btn-create-premium:hover, body.route-apps-index .btn-create-premium:hover, body.route-assembly-create .btn-save-assembly:hover, body.route-assembly-update .btn-save-assembly:hover, body.route-assembly-index .btn-create-premium:hover, body.route-branch-index .btn-create-premium:hover, body.route-city-create .btn-save-city:hover, body.route-city-update .btn-save-city:hover, body.route-client-message-index .btn-create-premium:hover, body.route-contract-index .btn-create-premium:hover, body.route-product-index .btn-create-premium:hover, body.route-setting-index .btn-create-premium:hover, body.route-telegram-bot-index .btn-create-premium:hover, body.route-telegram-chat-index .btn-create-premium:hover, body.route-user-create .btn-save-user:hover, body.route-user-update .btn-save-user:hover, body.route-user-index .btn-create-premium:hover, body.route-user-photo .btn-save-photo:hover {
    background: #00a89a;
    transform: translateY(-2px);
}

body.route-action-index .action-search-wrapper, body.route-assembly-index .assembly-search-wrapper, body.route-city-index .city-search-wrapper, body.route-client-message-index .message-search-wrapper, body.route-contract-index .contract-search-wrapper, body.route-device-location-index .location-search-wrapper, body.route-device-log-index .log-search-wrapper, body.route-device-model-index .model-search-wrapper, body.route-device-status-history-index .history-search-wrapper, body.route-setting-index .setting-search-wrapper, body.route-telegram-bot-index .bot-search-wrapper, body.route-telegram-chat-index .chat-search-wrapper, body.route-user-index .user-search-wrapper {
    background: #ffffff;
    padding: 22px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

body.route-action-index .search-label-mini, body.route-assembly-index .search-label-mini, body.route-city-index .search-label-mini, body.route-client-message-index .search-label-mini, body.route-contract-index .search-label-mini, body.route-device-info-index .search-label-mini, body.route-device-location-index .search-label-mini, body.route-device-log-index .search-label-mini, body.route-device-model-index .search-label-mini, body.route-device-status-history-index .search-label-mini, body.route-product-index .search-label-mini, body.route-region-index .search-label-mini, body.route-setting-index .search-label-mini, body.route-telegram-bot-index .search-label-mini, body.route-telegram-chat-index .search-label-mini, body.route-user-index .search-label-mini {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

body.route-action-index .action-search-form .form-group, body.route-assembly-index .assembly-search-form .form-group, body.route-branch-index .branch-search-form .form-group, body.route-city-index .city-search-form .form-group, body.route-client-message-index .message-search-form .form-group, body.route-company-index .company-search-form .form-group, body.route-contract-index .contract-search-form .form-group, body.route-device-info-index .device-info-search .form-group, body.route-device-location-index .location-search-form .form-group, body.route-device-log-index .log-search-form .form-group, body.route-device-model-index .model-search-form .form-group, body.route-device-status-history-index .history-search-form .form-group, body.route-device-index .device-search .form-group, body.route-product-index .product-search-form .form-group, body.route-region-index .region-search-form .form-group, body.route-setting-index .setting-search-form .form-group, body.route-telegram-bot-index .bot-search-form .form-group, body.route-telegram-chat-index .chat-search-form .form-group, body.route-user-index .user-search-form .form-group {
    margin-bottom: 0;
}

body.route-action-index .action-search-form .form-control, body.route-assembly-index .assembly-search-form .form-control, body.route-branch-index .branch-search-form .form-control, body.route-city-index .city-search-form .form-control, body.route-company-index .company-search-form .form-control, body.route-device-info-index .device-info-search .form-control, body.route-device-index .device-search .form-control, body.route-user-index .user-search-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    height: 42px !important;
    font-size: 13px;
    background: #f8fafc;
    transition: 0.2s;
}

body.route-action-index .action-search-form .form-control:focus, body.route-assembly-index .assembly-search-form .form-control:focus, body.route-branch-index .branch-search-form .form-control:focus, body.route-city-index .city-search-form .form-control:focus, body.route-client-message-index .message-search-form .form-control:focus, body.route-company-index .company-search-form .form-control:focus, body.route-contract-index .contract-search-form .form-control:focus, body.route-device-info-index .device-info-search .form-control:focus, body.route-device-index .device-search .form-control:focus, body.route-user-index .user-search-form .form-control:focus, body.route-user-add-template .input-modern:focus, body.route-user-permissions-template .search-modern:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

body.route-action-index .btn-search-premium, body.route-assembly-index .btn-search-premium, body.route-branch-index .btn-search-premium, body.route-city-index .btn-search-premium, body.route-client-message-index .btn-search-premium, body.route-company-index .btn-search-trigger, body.route-contract-index .btn-search-premium, body.route-user-index .btn-search-premium {
    background: #3b82f6;
    color: white !important;
    border-radius: 10px;
    padding: 0 25px;
    height: 42px;
    font-weight: 700;
    border: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.route-action-index .btn-search-premium:hover, body.route-assembly-index .btn-search-premium:hover, body.route-branch-index .btn-search-premium:hover, body.route-city-index .btn-search-premium:hover, body.route-client-message-index .btn-search-premium:hover, body.route-company-index .btn-search-trigger:hover, body.route-contract-index .btn-search-premium:hover, body.route-device-info-index .btn-search-main:hover, body.route-device-index .btn-search-submit:hover, body.route-device-view .btn-get-logs:hover, body.route-user-index .btn-search-premium:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

body.route-action-index .btn-reset-premium, body.route-assembly-index .btn-reset-premium, body.route-branch-index .btn-reset-premium, body.route-city-index .btn-reset-premium, body.route-client-message-index .btn-reset-premium, body.route-company-index .btn-reset-trigger, body.route-contract-index .btn-reset-premium, body.route-device-info-index .btn-reset-light, body.route-device-location-index .btn-reset-premium, body.route-device-log-index .btn-reset-premium, body.route-device-model-index .btn-reset-premium, body.route-device-status-history-index .btn-reset-premium, body.route-user-index .btn-reset-premium {
    background: #f1f5f9;
    color: #64748b !important;
    border-radius: 10px;
    padding: 0 20px;
    height: 42px;
    font-weight: 700;
    border: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.route-action-index .btn-reset-premium:hover, body.route-assembly-index .btn-reset-premium:hover, body.route-branch-index .btn-reset-premium:hover, body.route-city-index .btn-reset-premium:hover, body.route-client-message-index .btn-reset-premium:hover, body.route-company-create .btn-cancel-light:hover, body.route-company-update .btn-cancel-light:hover, body.route-company-index .btn-reset-trigger:hover, body.route-company-add-gmail .btn-cancel-soft:hover, body.route-contract-index .btn-reset-premium:hover, body.route-device-info-index .btn-reset-light:hover, body.route-device-location-index .btn-reset-premium:hover, body.route-device-log-index .btn-reset-premium:hover, body.route-device-model-index .btn-reset-premium:hover, body.route-device-status-history-index .btn-reset-premium:hover, body.route-device-index .btn-search-reset:hover, body.route-device-view .btn-cancel-logs:hover, body.route-device-generate-password-qr .btn-cancel-modal:hover, body.route-device-show-password-qr .btn-back-qr:hover, body.route-product-index .btn-reset-premium:hover, body.route-region-index .btn-reset-premium:hover, body.route-setting-index .btn-reset-premium:hover, body.route-telegram-bot-index .btn-reset-premium:hover, body.route-telegram-chat-index .btn-reset-premium:hover, body.route-user-index .btn-reset-premium:hover, body.route-user-update-department .btn-modern-close:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

body.route-action-index .select2-container--default .select2-selection--single, body.route-assembly-index .select2-container--default .select2-selection--single, body.route-city-index .select2-container--default .select2-selection--single, body.route-client-message-index .select2-container--default .select2-selection--single, body.route-contract-index .select2-container--default .select2-selection--single, body.route-device-location-index .select2-container--default .select2-selection--single, body.route-device-log-index .select2-container--default .select2-selection--single, body.route-device-status-history-index .select2-container--default .select2-selection--single, body.route-user-index .select2-container--default .select2-selection--single {
    border-radius: 10px;
    height: 42px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
}

body.route-action-create .modern-dashboard, body.route-action-update .modern-dashboard, body.route-apps-create .modern-dashboard, body.route-apps-update .modern-dashboard, body.route-assembly-create .modern-dashboard, body.route-assembly-update .modern-dashboard, body.route-branch-create .modern-dashboard, body.route-branch-update .modern-dashboard, body.route-city-create .modern-dashboard, body.route-city-update .modern-dashboard, body.route-client-message-create .modern-dashboard, body.route-client-message-update .modern-dashboard, body.route-company-create .modern-dashboard, body.route-company-update .modern-dashboard, body.route-contract-create .modern-dashboard, body.route-contract-update .modern-dashboard, body.route-device-info-create .modern-dashboard, body.route-device-info-update .modern-dashboard, body.route-device-location-create .modern-dashboard, body.route-device-location-update .modern-dashboard, body.route-device-log-create .modern-dashboard, body.route-device-log-update .modern-dashboard, body.route-device-model-create .modern-dashboard, body.route-device-model-update .modern-dashboard, body.route-device-status-history-create .modern-dashboard, body.route-device-status-history-update .modern-dashboard, body.route-device-create .modern-dashboard, body.route-device-update .modern-dashboard, body.route-product-create .modern-dashboard, body.route-product-update .modern-dashboard, body.route-region-create .modern-dashboard, body.route-region-update .modern-dashboard, body.route-setting-create .modern-dashboard, body.route-setting-update .modern-dashboard, body.route-telegram-bot-create .modern-dashboard, body.route-telegram-bot-update .modern-dashboard, body.route-telegram-chat-create .modern-dashboard, body.route-telegram-chat-update .modern-dashboard, body.route-user-create .modern-dashboard, body.route-user-form-name .modern-dashboard, body.route-user-update .modern-dashboard, body.route-user-work-calendar .modern-dashboard {
    font-family: 'Inter', sans-serif;
    padding-bottom: 40px;
}

body.route-action-create .page-header-modern, body.route-action-update .page-header-modern, body.route-apps-create .page-header-modern, body.route-apps-update .page-header-modern, body.route-assembly-create .page-header-modern, body.route-assembly-update .page-header-modern, body.route-branch-create .page-header-modern, body.route-branch-update .page-header-modern, body.route-city-create .page-header-modern, body.route-city-update .page-header-modern, body.route-client-message-create .page-header-modern, body.route-client-message-update .page-header-modern, body.route-company-create .page-header-modern, body.route-company-update .page-header-modern, body.route-contract-create .page-header-modern, body.route-contract-update .page-header-modern, body.route-device-info-create .page-header-modern, body.route-device-info-update .page-header-modern, body.route-device-location-create .page-header-modern, body.route-device-location-update .page-header-modern, body.route-device-log-create .page-header-modern, body.route-device-log-update .page-header-modern, body.route-device-model-create .page-header-modern, body.route-device-model-update .page-header-modern, body.route-device-status-history-create .page-header-modern, body.route-device-status-history-update .page-header-modern, body.route-product-create .page-header-modern, body.route-product-update .page-header-modern, body.route-region-create .page-header-modern, body.route-region-update .page-header-modern, body.route-setting-create .page-header-modern, body.route-setting-update .page-header-modern, body.route-telegram-bot-create .page-header-modern, body.route-telegram-bot-update .page-header-modern, body.route-telegram-chat-create .page-header-modern, body.route-telegram-chat-update .page-header-modern, body.route-user-create .page-header-modern, body.route-user-update .page-header-modern, body.route-user-work-calendar .page-header-modern {
    margin-bottom: 30px;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.route-action-create .header-content-left, body.route-action-update .header-content-left, body.route-apps-create .header-content-left, body.route-apps-update .header-content-left, body.route-assembly-create .header-content-left, body.route-city-create .header-content-left, body.route-client-message-create .header-content-left, body.route-contract-create .header-content-left, body.route-device-location-create .header-content-left, body.route-device-location-update .header-content-left, body.route-device-log-create .header-content-left, body.route-device-model-create .header-content-left, body.route-device-model-update .header-content-left, body.route-device-status-history-create .header-content-left, body.route-product-create .header-content-left, body.route-region-create .header-content-left, body.route-setting-create .header-content-left, body.route-telegram-bot-create .header-content-left, body.route-telegram-chat-create .header-content-left, body.route-user-create .header-content-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

body.route-action-create .page-header-modern h1, body.route-apps-create .page-header-modern h1, body.route-assembly-create .page-header-modern h1, body.route-branch-create .page-header-modern h1, body.route-city-create .page-header-modern h1, body.route-client-message-create .page-header-modern h1, body.route-company-create .page-header-modern h1, body.route-contract-create .page-header-modern h1, body.route-device-info-create .page-header-modern h1, body.route-device-location-create .page-header-modern h1, body.route-device-log-create .page-header-modern h1, body.route-device-model-create .page-header-modern h1, body.route-device-status-history-create .page-header-modern h1, body.route-device-update .page-header-modern h1, body.route-product-create .page-header-modern h1, body.route-region-create .page-header-modern h1, body.route-setting-create .page-header-modern h1, body.route-telegram-bot-create .page-header-modern h1, body.route-telegram-chat-create .page-header-modern h1, body.route-user-create .page-header-modern h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

body.route-action-create .btn-nav-back, body.route-apps-create .btn-go-back-modern, body.route-assembly-create .btn-nav-back, body.route-city-create .btn-nav-back, body.route-client-message-create .btn-nav-back, body.route-contract-create .btn-nav-back, body.route-device-location-create .btn-nav-back, body.route-device-log-create .btn-nav-back, body.route-device-model-create .btn-nav-back, body.route-device-status-history-create .btn-nav-back, body.route-product-create .btn-nav-back, body.route-region-create .btn-nav-back, body.route-setting-create .btn-nav-back, body.route-telegram-bot-create .btn-nav-back, body.route-telegram-bot-update .btn-nav-modern, body.route-telegram-chat-create .btn-nav-back, body.route-user-create .btn-nav-back {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    color: #64748b;
    text-decoration: none !important;
}

body.route-action-create .btn-nav-back:hover, body.route-apps-create .btn-go-back-modern:hover, body.route-assembly-create .btn-nav-back:hover, body.route-city-create .btn-nav-back:hover, body.route-client-message-create .btn-nav-back:hover, body.route-contract-create .btn-nav-back:hover, body.route-device-location-create .btn-nav-back:hover, body.route-device-log-create .btn-nav-back:hover, body.route-device-model-create .btn-nav-back:hover, body.route-device-status-history-create .btn-nav-back:hover, body.route-product-create .btn-nav-back:hover, body.route-region-create .btn-nav-back:hover, body.route-setting-create .btn-nav-back:hover, body.route-telegram-bot-create .btn-nav-back:hover, body.route-telegram-chat-create .btn-nav-back:hover, body.route-user-create .btn-nav-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-3px);
    color: #1e293b;
}

body.route-action-create .subtitle-text, body.route-apps-create .subtitle-text, body.route-assembly-create .subtitle-text, body.route-branch-create .subtitle-text, body.route-city-create .subtitle-text, body.route-client-message-create .subtitle-text, body.route-company-create .subtitle-text, body.route-contract-create .subtitle-text, body.route-device-info-create .subtitle-text, body.route-device-location-create .subtitle-text, body.route-device-log-create .subtitle-text, body.route-device-model-create .subtitle-text, body.route-device-status-history-create .subtitle-text, body.route-product-create .subtitle-text, body.route-region-create .subtitle-text, body.route-setting-create .subtitle-text, body.route-telegram-bot-create .subtitle-text, body.route-telegram-chat-create .subtitle-text, body.route-user-create .subtitle-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

body.route-action-create .form-container-premium, body.route-action-update .form-wrapper-premium, body.route-apps-create .form-wrapper-premium, body.route-apps-update .form-wrapper-premium, body.route-assembly-create .form-container-premium, body.route-assembly-update .form-wrapper-premium, body.route-branch-create .form-wrapper-premium, body.route-branch-update .form-wrapper-premium, body.route-city-create .form-container-premium, body.route-city-update .form-wrapper-premium, body.route-client-message-create .form-container-premium, body.route-client-message-update .form-wrapper-premium, body.route-company-update .form-wrapper-premium, body.route-contract-create .form-container-premium, body.route-contract-update .form-wrapper-premium, body.route-device-location-create .form-container-premium, body.route-device-location-update .form-wrapper-premium, body.route-device-log-create .form-container-premium, body.route-device-log-update .form-wrapper-premium, body.route-device-model-create .form-container-premium, body.route-device-model-update .form-wrapper-premium, body.route-device-status-history-create .form-container-premium, body.route-device-status-history-update .form-wrapper-premium, body.route-product-create .form-container-premium, body.route-product-update .form-wrapper-premium, body.route-setting-create .form-container-premium, body.route-setting-update .form-wrapper-premium, body.route-telegram-bot-create .form-container-premium, body.route-telegram-bot-update .form-wrapper-premium, body.route-telegram-chat-create .form-container-premium, body.route-telegram-chat-update .form-wrapper-premium, body.route-user-create .form-container-premium, body.route-user-update .form-wrapper-premium {
    background: #ffffff;
    border-radius: 24px;
}

body.route-action-index .modern-dashboard, body.route-action-view .modern-dashboard, body.route-apps-index .modern-dashboard, body.route-apps-view .modern-dashboard, body.route-assembly-index .modern-dashboard, body.route-assembly-view .modern-dashboard, body.route-branch-index .modern-dashboard, body.route-branch-view-actions .modern-dashboard, body.route-branch-view .modern-dashboard, body.route-city-index .modern-dashboard, body.route-city-view .modern-dashboard, body.route-client-message-index .modern-dashboard, body.route-client-message-view .modern-dashboard, body.route-company-index .modern-dashboard, body.route-company-view .modern-dashboard, body.route-contract-index .modern-dashboard, body.route-contract-view .modern-dashboard, body.route-device-info-index .modern-dashboard, body.route-device-info-view .modern-dashboard, body.route-device-location-index .modern-dashboard, body.route-device-location-view .modern-dashboard, body.route-device-log-index .modern-dashboard, body.route-device-log-view .modern-dashboard, body.route-device-model-index .modern-dashboard, body.route-device-model-view .modern-dashboard, body.route-device-status-history-index .modern-dashboard, body.route-device-status-history-view .modern-dashboard, body.route-device-index .modern-dashboard, body.route-product-index .modern-dashboard, body.route-product-view .modern-dashboard, body.route-region-index .modern-dashboard, body.route-region-view .modern-dashboard, body.route-setting-index .modern-dashboard, body.route-setting-view .modern-dashboard, body.route-site-setting-form .modern-dashboard, body.route-telegram-bot-index .modern-dashboard, body.route-telegram-bot-view .modern-dashboard, body.route-telegram-chat-index .modern-dashboard, body.route-telegram-chat-view .modern-dashboard, body.route-user-index .modern-dashboard, body.route-user-info .modern-dashboard, body.route-user-permissions-template .modern-dashboard, body.route-user-view .modern-dashboard {
    font-family: 'Inter', sans-serif;
    color: #334155;
}

body.route-action-index .page-header-bar, body.route-apps-index .page-header-bar, body.route-assembly-index .page-header-bar, body.route-branch-index .page-header-bar, body.route-city-index .page-header-bar, body.route-client-message-index .page-header-bar, body.route-company-index .page-header-bar, body.route-contract-index .page-header-bar, body.route-device-info-index .page-header-bar, body.route-device-location-index .page-header-bar, body.route-device-log-index .page-header-bar, body.route-device-model-index .page-header-bar, body.route-device-status-history-index .page-header-bar, body.route-device-index .page-header-bar, body.route-product-index .page-header-bar, body.route-region-index .page-header-bar, body.route-setting-index .page-header-bar, body.route-telegram-bot-index .page-header-bar, body.route-telegram-chat-index .page-header-bar, body.route-user-index .page-header-bar, body.route-user-view .view-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

body.route-action-index .page-header-bar h2, body.route-apps-index .page-header-bar h2, body.route-assembly-index .page-header-bar h2, body.route-branch-index .page-header-bar h2, body.route-city-index .page-header-bar h2, body.route-client-message-index .page-header-bar h2, body.route-company-index .page-header-bar h2, body.route-company-view .company-title-area h2, body.route-contract-index .page-header-bar h2, body.route-device-info-index .page-header-bar h1, body.route-device-location-index .page-header-bar h2, body.route-device-log-index .page-header-bar h2, body.route-device-model-index .page-header-bar h2, body.route-device-status-history-index .page-header-bar h2, body.route-device-index .page-header-bar h1, body.route-product-index .page-header-bar h2, body.route-region-index .page-header-bar h2, body.route-setting-index .page-header-bar h2, body.route-telegram-bot-index .page-header-bar h2, body.route-telegram-chat-index .page-header-bar h2, body.route-user-index .page-header-bar h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -1px;
}

body.route-action-index .modern-grid, body.route-assembly-index .modern-grid, body.route-branch-index .modern-grid, body.route-branch-view-actions .modern-grid, body.route-city-index .modern-grid, body.route-client-message-index .modern-grid, body.route-company-index .modern-grid, body.route-contract-index .modern-grid, body.route-device-info-index .modern-grid, body.route-device-location-index .modern-grid, body.route-device-log-index .modern-grid, body.route-device-model-index .modern-grid, body.route-device-status-history-index .modern-grid, body.route-device-index .modern-grid, body.route-device-view .modern-table, .header-widget, body.route-product-index .modern-grid, body.route-region-index .modern-grid, body.route-setting-index .modern-grid, body.route-site-dashboard .modern-table, body.route-telegram-bot-index .modern-grid, body.route-telegram-chat-index .modern-grid, body.route-user-index .modern-grid {
    border: none !important;
}

body.route-action-index .modern-grid thead th, body.route-apps-index .modern-grid thead th, body.route-assembly-index .modern-grid thead th, body.route-branch-index .modern-grid thead th, body.route-branch-view-actions .modern-grid thead th, body.route-city-index .modern-grid thead th, body.route-client-message-index .modern-grid thead th, body.route-company-index .modern-grid thead th, body.route-contract-index .modern-grid thead th, body.route-device-info-index .modern-grid thead th, body.route-device-location-index .modern-grid thead th, body.route-device-log-index .modern-grid thead th, body.route-device-model-index .modern-grid thead th, body.route-device-status-history-index .modern-grid thead th, body.route-device-index .modern-grid thead th, body.route-product-index .modern-grid thead th, body.route-region-index .modern-grid thead th, body.route-setting-index .modern-grid thead th, body.route-telegram-bot-index .modern-grid thead th, body.route-telegram-chat-index .modern-grid thead th, body.route-user-index .modern-grid thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 15px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.route-action-index .modern-grid tbody td, body.route-branch-index .modern-grid tbody td, body.route-city-index .modern-grid tbody td, body.route-client-message-index .modern-grid tbody td, body.route-company-index .modern-grid tbody td, body.route-contract-index .modern-grid tbody td, body.route-device-info-index .modern-grid tbody td, body.route-device-location-index .modern-grid tbody td, body.route-device-log-index .modern-grid tbody td, body.route-device-model-index .modern-grid tbody td, body.route-device-status-history-index .modern-grid tbody td, body.route-device-index .modern-grid tbody td, body.route-product-index .modern-grid tbody td, body.route-user-index .modern-grid tbody td {
    padding: 12px 15px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px;
}

body.route-action-index .modern-grid tr:hover td, body.route-assembly-index .modern-grid tr:hover td, body.route-branch-index .modern-grid tr:hover td, body.route-city-index .modern-grid tr:hover td, body.route-client-message-index .modern-grid tr:hover td, body.route-company-index .modern-grid tr:hover td, body.route-contract-index .modern-grid tr:hover td, body.route-device-info-index .modern-grid tr:hover td, body.route-device-location-index .modern-grid tr:hover td, body.route-device-log-index .modern-grid tr:hover td, body.route-device-model-index .modern-grid tr:hover td, body.route-device-status-history-index .modern-grid tr:hover td, body.route-device-index .modern-grid tr:hover td, body.route-user-index .modern-grid tr:hover td {
    background-color: #f8fafc;
}

body.route-action-index .badge-modern, body.route-branch-index .badge-status, body.route-branch-view-actions .badge-premium, body.route-client-message-index .badge-modern, body.route-user-index .badge-modern {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

body.route-action-index .status-completed, body.route-action-view .status-completed, body.route-assembly-view .bool-true, body.route-branch-index .status-active, body.route-branch-view-actions .status-active, body.route-branch-view .status-1, body.route-client-message-index .status-active, body.route-user-index .status-active, body.route-user-permissions-template .badge-full {
    background: #f0fdf4;
    color: #16a34a;
}

body.route-action-index .status-pending, body.route-action-view .status-pending, body.route-branch-index .btn-edit, body.route-city-index .btn-edit, body.route-client-message-index .status-warning, body.route-company-index .btn-update, body.route-device-info-index .btn-edit, body.route-device-location-index .btn-u, body.route-device-model-index .btn-u, body.route-user-index .btn-edit {
    background: #fffbeb;
    color: #d97706;
}

body.route-action-index .status-failed, body.route-action-view .status-failed, body.route-branch-index .status-inactive, body.route-branch-index .btn-delete, body.route-branch-view-actions .status-inactive, body.route-city-index .btn-delete, body.route-client-message-index .status-blocked, body.route-company-index .btn-delete, body.route-device-info-index .btn-delete, body.route-device-location-index .btn-d, body.route-device-model-index .btn-d, body.route-setting-index .btn-d, body.route-telegram-bot-index .btn-d, body.route-telegram-chat-index .btn-d, body.route-user-index .status-inactive, body.route-user-index .btn-delete {
    background: #fef2f2;
    color: #ef4444;
}

body.route-action-index .btn-create-premium, body.route-assembly-index .btn-create-premium, body.route-client-message-index .btn-create-premium, body.route-contract-index .btn-create-premium, body.route-product-index .btn-create-premium, body.route-setting-index .btn-create-premium, body.route-telegram-bot-index .btn-create-premium, body.route-telegram-chat-index .btn-create-premium {
    background: #00BFAF;
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 191, 175, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

body.route-action-index .btn-view-mini:hover, body.route-assembly-index .btn-view-mini:hover, body.route-branch-index .btn-view:hover, body.route-branch-view-actions .btn-view-mini:hover, body.route-client-message-index .btn-view-mini:hover, body.route-company-index .btn-view:hover, body.route-device-info-index .btn-view:hover, body.route-device-index .btn-view-modern:hover {
    background: #3b82f6;
    color: #fff;
}

body.route-action-update .page-header-modern h1, body.route-apps-update .page-header-modern h1, body.route-assembly-update .page-header-modern h1, body.route-branch-update .page-header-modern h1, body.route-city-update .page-header-modern h1, body.route-client-message-update .page-header-modern h1, body.route-company-update .page-header-modern h1, body.route-contract-update .page-header-modern h1, body.route-device-info-update .page-header-modern h1, body.route-device-location-update .page-header-modern h1, body.route-device-log-update .page-header-modern h1, body.route-device-model-update .page-header-modern h1, body.route-device-status-history-update .page-header-modern h1, body.route-product-update .page-header-modern h1, body.route-region-update .page-header-modern h1, body.route-setting-update .page-header-modern h1, body.route-telegram-bot-update .page-header-modern h1, body.route-telegram-chat-update .page-header-modern h1, body.route-user-form-name .page-header-modern h1, body.route-user-update .page-header-modern h1, body.route-user-work-calendar .page-header-modern h1 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

body.route-action-update .action-edit-badge, body.route-assembly-update .assembly-edit-badge, body.route-city-update .city-edit-badge, body.route-client-message-update .message-edit-badge, body.route-contract-update .contract-edit-badge, body.route-device-location-update .location-edit-badge, body.route-device-log-update .log-edit-badge, body.route-device-model-update .model-edit-badge, body.route-device-status-history-update .status-edit-badge, body.route-product-update .product-edit-badge, body.route-user-update .user-edit-badge {
    background: #fffbeb; /* Soft amber */
    color: #d97706;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
    border: 1px solid #fef3c7;
}

body.route-action-update .header-icon-box, body.route-assembly-update .header-icon-box, body.route-branch-update .header-icon-box, body.route-city-update .header-icon-box, body.route-client-message-update .header-icon-box, body.route-company-update .header-icon-box, body.route-contract-update .header-icon-box, body.route-device-info-update .header-icon-box, body.route-user-update .header-icon-box {
    width: 50px;
    height: 50px;
    background: #fffbeb;
    color: #d97706;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.08);
}

body.route-action-update .btn-nav-modern, body.route-apps-update .btn-nav-modern, body.route-assembly-update .btn-nav-modern, body.route-branch-update .btn-nav-modern, body.route-city-update .btn-nav-modern, body.route-client-message-update .btn-nav-modern, body.route-contract-update .btn-nav-modern, body.route-device-info-update .btn-nav-modern, body.route-device-location-update .btn-nav-modern, body.route-device-log-update .btn-nav-modern, body.route-device-model-update .btn-nav-modern, body.route-device-status-history-update .btn-nav-modern, body.route-product-update .btn-nav-modern, body.route-region-update .btn-nav-modern, body.route-setting-update .btn-nav-modern, body.route-telegram-chat-update .btn-nav-modern, body.route-user-update .btn-nav-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    color: #64748b;
}

body.route-action-update .btn-nav-modern:hover, body.route-apps-update .btn-nav-modern:hover, body.route-assembly-update .btn-nav-modern:hover, body.route-branch-update .btn-nav-modern:hover, body.route-city-update .btn-nav-modern:hover, body.route-client-message-update .btn-nav-modern:hover, body.route-contract-update .btn-nav-modern:hover, body.route-device-info-update .btn-nav-modern:hover, body.route-device-location-update .btn-nav-modern:hover, body.route-device-log-update .btn-nav-modern:hover, body.route-device-model-update .btn-nav-modern:hover, body.route-device-status-history-update .btn-nav-modern:hover, body.route-product-update .btn-nav-modern:hover, body.route-region-update .btn-nav-modern:hover, body.route-setting-update .btn-nav-modern:hover, body.route-telegram-bot-update .btn-nav-modern:hover, body.route-telegram-chat-update .btn-nav-modern:hover, body.route-user-update .btn-nav-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #1e293b;
}

body.route-action-update .subtitle-text, body.route-apps-update .subtitle-text, body.route-assembly-update .subtitle-text, body.route-branch-update .subtitle-text, body.route-city-update .subtitle-text, body.route-client-message-update .subtitle-text, body.route-company-update .subtitle-text, body.route-contract-update .subtitle-text, body.route-device-info-update .subtitle-text, body.route-device-location-update .subtitle-text, body.route-device-log-update .subtitle-text, body.route-device-model-update .subtitle-text, body.route-device-status-history-update .subtitle-text, body.route-product-update .subtitle-text, body.route-region-update .subtitle-text, body.route-setting-update .subtitle-text, body.route-telegram-bot-update .subtitle-text, body.route-telegram-chat-update .subtitle-text, body.route-user-update .subtitle-text {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

body.route-action-view .view-header-card, body.route-apps-view .view-header-card, body.route-assembly-view .view-header-card, body.route-branch-view .view-header-card, body.route-city-view .view-header-card, body.route-client-message-view .view-header-card, body.route-company-view .view-header-card, body.route-contract-view .view-header-card, body.route-device-info-view .view-header-card, body.route-device-location-view .view-header-card, body.route-device-log-view .view-header-card, body.route-device-model-view .view-header-card, body.route-device-status-history-view .view-header-card, body.route-product-view .view-header-card, body.route-region-view .view-header-card, body.route-setting-view .view-header-card, body.route-telegram-bot-view .view-header-card, body.route-telegram-chat-view .view-header-card {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

body.route-action-view .action-title-group h2, body.route-apps-view .app-title-group h2, body.route-assembly-view .assembly-title-group h2, body.route-branch-view .branch-title-group h2, body.route-city-view .header-title-group h2, body.route-client-message-view .header-title-group h2, body.route-contract-view .header-title-group h2, body.route-device-info-view .view-header-card h2, body.route-device-location-view .header-title-group h2, body.route-device-log-view .header-title-group h2, body.route-device-status-history-view .header-title-group h2, body.route-device-view .device-title-group h2, body.route-product-view .header-title-group h2, body.route-region-view .header-title-group h2, body.route-telegram-bot-view .header-title-group h2, body.route-telegram-chat-view .header-title-group h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

body.route-action-view .btn-action-premium, body.route-assembly-view .btn-action-premium, body.route-city-view .btn-action-premium, body.route-client-message-view .btn-action-premium, body.route-contract-view .btn-action-premium, body.route-device-info-view .btn-action-premium, body.route-device-location-view .btn-action-premium, body.route-device-log-view .btn-action-premium, body.route-device-model-view .btn-action-premium, body.route-device-status-history-view .btn-action-premium, body.route-product-view .btn-action-premium, body.route-region-view .btn-action-premium, body.route-setting-view .btn-action-premium, body.route-telegram-bot-view .btn-action-premium, body.route-telegram-chat-view .btn-action-premium {
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

body.route-action-view .btn-update, body.route-apps-view .btn-update, body.route-assembly-view .btn-update, body.route-branch-view .btn-update, body.route-city-view .btn-update-premium, body.route-client-message-view .btn-update-premium, body.route-company-view .btn-update, body.route-contract-view .btn-update-premium, body.route-device-info-view .btn-edit-modern, body.route-user-view .btn-blue-soft {
    background: #eff6ff;
    color: #3b82f6 !important;
}

body.route-action-view .btn-update:hover, body.route-apps-view .btn-update:hover, body.route-assembly-view .btn-update:hover, body.route-branch-view .btn-update:hover, body.route-city-view .btn-update-premium:hover, body.route-client-message-view .btn-update-premium:hover, body.route-company-view .btn-update:hover, body.route-contract-view .btn-update-premium:hover, body.route-device-info-view .btn-edit-modern:hover, body.route-user-view .btn-blue-soft:hover {
    background: #3b82f6;
    color: #fff !important;
    transform: translateY(-2px);
}

body.route-action-view .btn-delete, body.route-apps-view .btn-delete, body.route-assembly-view .btn-delete, body.route-branch-view .btn-delete, body.route-city-view .btn-delete-premium, body.route-client-message-view .btn-delete-premium, body.route-company-view .btn-delete, body.route-contract-view .btn-delete-premium, body.route-device-info-view .btn-delete-modern, body.route-device-location-view .btn-delete-premium, body.route-device-log-view .btn-delete-premium, body.route-device-model-view .btn-delete-premium, body.route-device-status-history-view .btn-delete-premium, body.route-device-view .btn-delete, body.route-product-view .btn-delete-premium, body.route-region-view .btn-delete-premium, body.route-setting-view .btn-delete-premium, body.route-telegram-bot-view .btn-delete-premium, body.route-telegram-chat-view .btn-delete-premium, body.route-user-view .btn-red-soft {
    background: #fef2f2;
    color: #ef4444 !important;
}

body.route-action-view .btn-delete:hover, body.route-apps-view .btn-delete:hover, body.route-assembly-view .btn-delete:hover, body.route-branch-view .btn-delete:hover, body.route-city-view .btn-delete-premium:hover, body.route-client-message-view .btn-delete-premium:hover, body.route-company-view .btn-delete:hover, body.route-contract-view .btn-delete-premium:hover, body.route-device-info-view .btn-delete-modern:hover, body.route-device-location-view .btn-delete-premium:hover, body.route-device-log-view .btn-delete-premium:hover, body.route-device-model-view .btn-delete-premium:hover, body.route-device-status-history-view .btn-delete-premium:hover, body.route-product-view .btn-delete-premium:hover, body.route-region-view .btn-delete-premium:hover, body.route-setting-view .btn-delete-premium:hover, body.route-telegram-bot-view .btn-delete-premium:hover, body.route-telegram-chat-view .btn-delete-premium:hover {
    background: #ef4444;
    color: #fff !important;
    transform: translateY(-2px);
}

body.route-action-view .info-card, body.route-apps-view .info-card, body.route-assembly-view .info-card, body.route-branch-view .info-card {
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.route-action-view .modern-detail th, body.route-client-message-view .modern-detail th, body.route-contract-view .modern-detail th, body.route-device-location-view .modern-detail th, body.route-device-status-history-view .modern-detail th {
    background: #f8fafc;
    color: #64748b;
    width: 40%;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border: none !important;
}

body.route-action-view .modern-detail td, body.route-apps-view .modern-detail td, body.route-assembly-view .modern-detail td, body.route-branch-view .modern-detail td, body.route-company-view .modern-detail td {
    font-size: 14px;
    color: #1e293b;
    border: none !important;
    padding: 12px 15px !important;
}

body.route-action-view .modern-detail tr, body.route-apps-view .modern-detail tr, body.route-assembly-view .modern-detail tr, body.route-branch-view .modern-detail tr, body.route-company-view .modern-detail tr, body.route-device-info-view .modern-detail-view tr {
    border-bottom: 1px solid #f1f5f9;
}

body.route-action-view .modern-detail tr:last-child, body.route-city-view .modern-detail tr:last-child, body.route-region-view .modern-detail tr:last-child {
    border-bottom: none;
}

body.route-apps-create .form-header-modern, body.route-apps-update .form-header-modern, body.route-client-message-create .form-header-box, body.route-client-message-update .form-header-box, body.route-device-location-create .form-header-box, body.route-device-location-update .form-header-box, body.route-device-log-create .form-header-box, body.route-device-log-update .form-header-box, body.route-device-model-create .form-header-box, body.route-device-model-update .form-header-box, body.route-device-status-history-create .form-header-box, body.route-device-status-history-update .form-header-box, body.route-region-create .form-header-box, body.route-region-update .form-header-box, body.route-telegram-chat-custom-message .form-header-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8fafc;
}

body.route-apps-create .form-group label, body.route-apps-update .form-group label, body.route-branch-create .form-group label, body.route-branch-update .form-group label, body.route-company-create .form-group label, body.route-company-update .form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: block;
}

body.route-apps-create #app-version:focus, body.route-apps-update #app-version:focus, body.route-device-view .form-control:focus, body.route-device-generate-password-qr .form-control:focus, body.route-site-setting-form .form-control:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

body.route-apps-index .status-inactive:hover, body.route-branch-index .btn-delete:hover, body.route-company-index .btn-delete:hover, body.route-device-info-index .btn-delete:hover {
    background: #ef4444;
    color: #fff;
}

body.route-apps-index .modern-grid tbody td, body.route-assembly-index .modern-grid tbody td, body.route-branch-view-actions .modern-grid tbody td {
    padding: 12px 15px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.route-apps-index .btn-create-premium, body.route-branch-index .btn-create-premium, body.route-user-index .btn-create-premium {
    background: #00BFAF;
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 191, 175, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.route-apps-view .btn-action-modern, body.route-branch-view .btn-action-modern, body.route-company-view .btn-action-premium {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

body.route-apps-view .modern-detail th, body.route-branch-view .modern-detail th, body.route-company-view .modern-detail th, body.route-product-view .modern-detail th, body.route-setting-view .modern-detail th, body.route-telegram-bot-view .modern-detail th, body.route-telegram-chat-view .modern-detail th {
    background: #f8fafc;
    color: #64748b;
    width: 35%;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border: none !important;
}

body.route-assembly-create .assembly-form-wrapper, body.route-assembly-update .assembly-form-wrapper, body.route-branch-create .branch-form-card, body.route-branch-update .branch-form-card, body.route-client-message-create .message-form-wrapper, body.route-client-message-update .message-form-wrapper, body.route-device-info-create .modern-info-container, body.route-device-info-update .modern-info-container, body.route-device-location-create .location-form-wrapper, body.route-device-location-update .location-form-wrapper, body.route-device-log-create .log-form-wrapper, body.route-device-log-update .log-form-wrapper, body.route-device-model-create .device-model-wrapper, body.route-device-model-update .device-model-wrapper, body.route-device-status-history-create .history-form-wrapper, body.route-device-status-history-update .history-form-wrapper, body.route-user-create .user-form-card, body.route-user-update .user-form-card {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

body.route-assembly-create .form-section-title::after, body.route-assembly-update .form-section-title::after, body.route-branch-create .form-section-header::after, body.route-branch-update .form-section-header::after, body.route-company-create .section-divider::after, body.route-company-update .section-divider::after, body.route-user-create .form-section-title::after, body.route-user-update .form-section-title::after {
    content: "";
    height: 1px;
    background: #f1f5f9;
    flex: 1;
}

body.route-assembly-create .form-group label, body.route-assembly-update .form-group label, body.route-company-add-gmail .form-group label, body.route-device-info-create .form-group label, body.route-device-info-update .form-group label, body.route-device-create .form-group label, body.route-device-update .form-group label, body.route-user-create .form-group label, body.route-user-update .form-group label, body.route-user-form-name .form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

body.route-assembly-update .header-content-left, body.route-branch-create .header-content-left, body.route-branch-update .header-content-left, body.route-city-update .header-content-left, body.route-client-message-update .header-content-left, body.route-company-create .header-content-left, body.route-company-update .header-content-left, body.route-contract-update .header-content-left, body.route-device-info-create .header-content-left, body.route-device-info-update .header-content-left, body.route-device-info-view .header-left-side, body.route-device-log-update .header-content-left, body.route-device-status-history-update .header-content-left, body.route-product-update .header-content-left, body.route-region-update .header-content-left, body.route-setting-update .header-content-left, body.route-telegram-bot-update .header-content-left, body.route-telegram-chat-update .header-content-left, body.route-user-form-name .header-content-left, body.route-user-update .header-content-left, body.route-user-work-calendar .header-content-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

body.route-branch-create .form-control, body.route-branch-create .with-border, body.route-branch-update .form-control, body.route-branch-update .with-border, body.route-company-create .form-control, body.route-company-create .with-border, body.route-company-update .form-control, body.route-company-update .with-border, body.route-company-add-gmail .form-control, body.route-company-add-gmail .with-border {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    transition: 0.2s ease !important;
    height: auto !important;
}

body.route-branch-create .form-control:focus, body.route-branch-update .form-control:focus, body.route-company-create .form-control:focus, body.route-company-update .form-control:focus, body.route-company-add-gmail .form-control:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

body.route-branch-create .btn-save-branch:hover, body.route-branch-update .btn-save-branch:hover, body.route-client-message-create .btn-save-message:hover, body.route-client-message-update .btn-save-message:hover, body.route-company-create .btn-save-company:hover, body.route-company-update .btn-save-company:hover, body.route-contract-create .btn-save-contract:hover, body.route-contract-update .btn-save-contract:hover, body.route-device-location-create .btn-save-location:hover, body.route-device-location-update .btn-save-location:hover, body.route-device-log-create .btn-save-log:hover, body.route-device-log-update .btn-save-log:hover, body.route-device-model-create .btn-save-model:hover, body.route-device-model-update .btn-save-model:hover, body.route-device-status-history-create .btn-save-history:hover, body.route-device-status-history-update .btn-save-history:hover, body.route-product-create .btn-save-product:hover, body.route-product-update .btn-save-product:hover, body.route-region-create .btn-save-region:hover, body.route-region-update .btn-save-region:hover, body.route-setting-create .btn-save-setting:hover, body.route-setting-update .btn-save-setting:hover, body.route-telegram-bot-create .btn-save-bot:hover, body.route-telegram-bot-update .btn-save-bot:hover, body.route-telegram-chat-create .btn-save-chat:hover, body.route-telegram-chat-update .btn-save-chat:hover, body.route-telegram-chat-custom-message .btn-send-premium:hover {
    background: #00a89a;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 191, 175, 0.3);
}

body.route-branch-index .branch-search-wrapper, body.route-device-info-index .info-search-wrapper, body.route-device-index .device-search-wrapper {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

body.route-branch-create .btn-go-back-modern, body.route-company-create .btn-go-back-modern, body.route-company-update .btn-go-back-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    padding: 0;
}

body.route-branch-create .btn-go-back-modern:hover, body.route-company-create .btn-go-back-modern:hover, body.route-device-info-create .btn-go-back-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-3px);
}

body.route-branch-index .branch-name-link:hover, .dashboard-nav-inner ul li a.current i, .dashboard-sidebar.right-sidebar .dashboard-nav-inner ul li a.current i, body.route-site-dashboard .lock-widget .counter-val {
    color: #2563eb;
}

body.route-branch-index .action-wrap, body.route-city-index .action-wrap, body.route-device-location-index .action-wrap-mini, body.route-device-model-index .action-wrap-mini, body.route-user-index .action-wrap {
    display: flex;
    gap: 6px;
    justify-content: center;
}

body.route-branch-index .btn-action-mini, body.route-device-info-index .btn-mini-action, body.route-device-location-index .btn-action-mini, body.route-device-model-index .btn-action-mini, body.route-user-index .btn-action-mini {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.2s;
    border: none;
}

body.route-branch-index .btn-view, body.route-branch-view-actions .role-admin, body.route-city-index .btn-view, body.route-company-index .btn-view, body.route-device-info-index .btn-view, body.route-device-location-index .btn-v, body.route-device-model-index .btn-v, body.route-user-index .btn-view {
    background: #eff6ff;
    color: #3b82f6;
}

body.route-branch-index .btn-edit:hover, body.route-company-index .btn-update:hover, body.route-device-info-index .btn-edit:hover {
    background: #d97706;
    color: #fff;
}

body.route-branch-view-actions .role-staff, body.route-region-index .btn-u, body.route-setting-index .btn-u, body.route-telegram-bot-index .btn-u, body.route-telegram-chat-index .btn-v {
    background: #f1f5f9;
    color: #475569;
}

body.route-branch-view .status-0, body.route-client-message-index .status-default, body.route-user-permissions-template .badge-partial {
    background: #f1f5f9;
    color: #64748b;
}

body.route-city-create .header-icon-box, body.route-contract-create .header-icon-box, body.route-device-model-create .header-icon-box {
    width: 54px;
    height: 54px;
    background: #f0fdf4; /* Soft Green */
    color: #16a34a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.1);
}

body.route-city-index .btn-create-premium:hover, body.route-device-model-index .btn-create-premium:hover, body.route-user-update-department .btn-modern-save:hover {
    background: #15803d;
    transform: translateY(-2px);
}

body.route-city-view .go-back-premium, body.route-client-message-view .go-back-premium, body.route-contract-view .go-back-premium, body.route-device-location-view .go-back-premium, body.route-device-log-view .go-back-premium, body.route-device-model-view .go-back-premium, body.route-device-status-history-view .go-back-premium, body.route-product-view .go-back-premium, body.route-region-view .go-back-premium, body.route-setting-view .go-back-premium, body.route-telegram-bot-view .go-back-premium, body.route-telegram-chat-view .go-back-premium {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    margin-right: 15px;
}

body.route-city-view .go-back-premium:hover, body.route-client-message-view .go-back-premium:hover, body.route-contract-view .go-back-premium:hover, body.route-device-location-view .go-back-premium:hover, body.route-device-log-view .go-back-premium:hover, body.route-device-status-history-view .go-back-premium:hover, body.route-product-view .go-back-premium:hover, body.route-region-view .go-back-premium:hover, body.route-setting-view .go-back-premium:hover, body.route-telegram-bot-view .go-back-premium:hover, body.route-telegram-chat-view .go-back-premium:hover {
    background: #f1f5f9;
    transform: translateX(-3px);
}

body.route-city-view .info-card, body.route-client-message-view .info-card, body.route-contract-view .info-card, body.route-device-location-view .info-card, body.route-device-log-view .info-card, body.route-device-status-history-view .info-card, body.route-product-view .info-card, body.route-setting-view .info-card, body.route-telegram-bot-view .info-card, body.route-telegram-chat-view .info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.route-city-view .info-card h4, body.route-client-message-view .info-card h4, body.route-contract-view .info-card h4, body.route-device-location-view .info-card h4, body.route-device-log-view .info-card h4, body.route-device-status-history-view .info-card h4, body.route-product-view .info-card h4, body.route-region-view .info-card-premium h4, body.route-setting-view .info-card h4, body.route-telegram-bot-view .info-card h4, body.route-telegram-chat-view .info-card h4 {
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.route-city-view .modern-detail tr, body.route-client-message-view .modern-detail tr, body.route-contract-view .modern-detail tr, body.route-device-location-view .modern-detail tr, body.route-device-log-view .modern-detail tr, body.route-device-status-history-view .modern-detail tr, body.route-device-view .modern-detail tr, body.route-product-view .modern-detail tr, body.route-region-view .modern-detail tr, body.route-setting-view .modern-detail tr, body.route-telegram-bot-view .modern-detail tr, body.route-telegram-chat-view .modern-detail tr {
    border-bottom: 1px solid #f8fafc;
}

body.route-client-message-create .form-header-box h4, body.route-client-message-update .form-header-box h4, body.route-device-location-create .form-header-box h4, body.route-device-location-update .form-header-box h4, body.route-device-log-create .form-header-box h4, body.route-device-log-update .form-header-box h4, body.route-device-model-create .form-header-box h4, body.route-device-model-update .form-header-box h4, body.route-device-status-history-create .form-header-box h4, body.route-device-status-history-update .form-header-box h4, body.route-region-create .form-header-box h4, body.route-region-update .form-header-box h4, body.route-telegram-chat-custom-message .form-header-box h4 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

body.route-client-message-create .form-group label, body.route-client-message-update .form-group label, body.route-contract-create .form-group label, body.route-contract-update .form-group label, body.route-device-location-create .form-group label, body.route-device-location-update .form-group label, body.route-device-log-create .form-group label, body.route-device-log-update .form-group label, body.route-device-model-create .form-group label, body.route-device-model-update .form-group label, body.route-device-status-history-create .form-group label, body.route-device-status-history-update .form-group label, body.route-product-create .form-group label, body.route-product-update .form-group label, body.route-region-create .form-group label, body.route-region-update .form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.route-client-message-create .form-control-premium, body.route-client-message-update .form-control-premium, body.route-device-location-create .form-control-premium, body.route-device-location-update .form-control-premium, body.route-device-log-create .form-control-premium, body.route-device-log-update .form-control-premium, body.route-device-model-create .form-control-premium, body.route-device-model-update .form-control-premium, body.route-device-status-history-create .form-control-premium, body.route-device-status-history-update .form-control-premium, body.route-product-create .form-control-premium, body.route-product-update .form-control-premium, body.route-setting-create .form-control-premium, body.route-setting-update .form-control-premium, body.route-telegram-bot-create .form-control-premium, body.route-telegram-bot-update .form-control-premium, body.route-telegram-chat-create .form-control-premium, body.route-telegram-chat-update .form-control-premium {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    transition: 0.3s ease;
    height: auto !important;
}

body.route-client-message-create .btn-save-message, body.route-client-message-update .btn-save-message, body.route-device-location-create .btn-save-location, body.route-device-location-update .btn-save-location, body.route-device-log-create .btn-save-log, body.route-device-log-update .btn-save-log, body.route-device-model-create .btn-save-model, body.route-device-model-update .btn-save-model, body.route-device-status-history-create .btn-save-history, body.route-device-status-history-update .btn-save-history {
    background: #00BFAF;
    color: white !important;
    border: none;
    border-radius: 14px;
    padding: 14px 45px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0, 191, 175, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

body.route-client-message-index .message-search-form .form-control, body.route-contract-index .contract-search-form .form-control, body.route-device-location-index .location-search-form .form-control, body.route-device-log-index .log-search-form .form-control, body.route-device-model-index .model-search-form .form-control, body.route-device-status-history-index .history-search-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    height: 42px !important;
    font-size: 13px;
    background: #f8fafc;
    transition: 0.2s ease;
}

body.route-client-message-view .modern-detail td, body.route-contract-view .modern-detail td, body.route-device-location-view .modern-detail td, body.route-device-log-view .modern-detail td, body.route-device-status-history-view .modern-detail td, body.route-product-view .modern-detail td, body.route-setting-view .modern-detail td, body.route-telegram-bot-view .modern-detail td, body.route-telegram-chat-view .modern-detail td {
    font-size: 14px;
    color: #1e293b;
    border: none !important;
    padding: 12px 15px !important;
    font-weight: 600;
}

body.route-company-create .btn-go-back-modern img, body.route-company-update .btn-go-back-modern img, body.route-device-info-create .btn-go-back-modern img {
    width: 18px;
    opacity: 0.7;
}

body.route-company-create .form-wrapper-premium, body.route-device-info-create .form-wrapper-premium, body.route-device-info-update .form-wrapper-premium, body.route-device-update .form-container-premium {
    background: #ffffff;
    border-radius: 24px; /* Padding _form ichida boshqariladi */
}

body.route-contract-create .form-header-title h4, body.route-contract-update .form-header-title h4, body.route-product-create .form-header-box h4, body.route-product-update .form-header-box h4, body.route-setting-create .form-header-box h4, body.route-setting-update .form-header-box h4, body.route-telegram-bot-create .form-header-box h4, body.route-telegram-bot-update .form-header-box h4, body.route-telegram-chat-create .form-header-box h4, body.route-telegram-chat-update .form-header-box h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

body.route-contract-create .select2-container--default .select2-selection--single, body.route-contract-update .select2-container--default .select2-selection--single, body.route-device-location-create .select2-container--default .select2-selection--single, body.route-device-location-update .select2-container--default .select2-selection--single, body.route-device-status-history-create .select2-container--default .select2-selection--single, body.route-device-status-history-update .select2-container--default .select2-selection--single, body.route-setting-create .select2-container--default .select2-selection--single, body.route-setting-update .select2-container--default .select2-selection--single, body.route-telegram-bot-create .select2-container--default .select2-selection--single, body.route-telegram-bot-update .select2-container--default .select2-selection--single {
    border-radius: 14px !important;
    height: 50px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
}

body.route-contract-view .contract-view-grid, body.route-device-location-view .location-view-grid, body.route-device-status-history-view .history-view-grid, body.route-setting-view .setting-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

body.route-device-info-create .form-control:focus, body.route-device-info-update .form-control:focus, body.route-device-create .form-control:focus, body.route-device-update .form-control:focus, body.route-device-view .form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

body.route-device-info-create .btn-save-info:hover, body.route-device-info-update .btn-save-info:hover, body.route-device-create .btn-save-device:hover, body.route-device-update .btn-save-device:hover, body.route-device-view .btn-send-notification:hover, body.route-device-index .btn-create-modern:hover, body.route-site-setting-form .btn-save-settings:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

body.route-device-info-view .btn-back-modern, body.route-user-form-name .btn-nav-modern, body.route-user-work-calendar .btn-nav-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    color: #64748b;
}

body.route-device-location-create .coordinate-input-group, body.route-device-location-update .coordinate-input-group, body.route-device-log-create .path-input-group, body.route-device-log-update .path-input-group, body.route-user-info .profile-avatar-wrapper {
    position: relative;
}

body.route-device-location-index .btn-action-mini:hover, body.route-device-model-index .btn-action-mini:hover, body.route-region-index .btn-action-mini:hover {
    transform: scale(1.1);
    color: #fff;
}

body.route-device-location-index .btn-d:hover, body.route-device-model-index .btn-d:hover, body.route-setting-index .btn-d:hover, body.route-telegram-bot-index .btn-d:hover, body.route-telegram-chat-index .btn-d:hover {
    background: #ef4444;
}

body.route-device-log-view .btn-update-premium, body.route-device-view .btn-update, body.route-telegram-chat-view .btn-update-premium {
    background: #f1f5f9;
    color: #475569 !important;
}

body.route-device-show-password-qr .btn-print-qr:hover, body.route-device-view .qr-card-modal .btn-print-qr:hover, body.route-site-login .btn-login-modern:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

body.route-device-view .btn-delete:hover, body.route-setting-index .btn-bulk-delete:hover, body.route-user-view .btn-red-soft:hover {
    background: #ef4444;
    color: #fff !important;
}

.table tbody tr:last-child td, body.route-user-info .modern-table tr:last-child td, body.route-user-view .modern-info-table tr:last-child td {
    border-bottom: none !important;
}

body.route-product-create .product-form-wrapper, body.route-product-update .product-form-wrapper, body.route-setting-create .setting-form-wrapper, body.route-setting-update .setting-form-wrapper, body.route-telegram-bot-create .bot-form-wrapper, body.route-telegram-bot-update .bot-form-wrapper, body.route-telegram-chat-create .chat-form-wrapper, body.route-telegram-chat-update .chat-form-wrapper {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

body.route-product-create .form-header-box, body.route-product-update .form-header-box, body.route-setting-create .form-header-box, body.route-setting-update .form-header-box, body.route-telegram-bot-create .form-header-box, body.route-telegram-bot-update .form-header-box, body.route-telegram-chat-create .form-header-box, body.route-telegram-chat-update .form-header-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f8fafc;
}

body.route-product-index .product-search-form .form-control, body.route-telegram-bot-index .bot-search-form .form-control, body.route-telegram-chat-index .chat-search-form .form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 44px !important;
    font-size: 13px;
    background: #f8fafc;
    transition: 0.2s ease;
}

body.route-product-index .btn-reset-premium, body.route-telegram-bot-index .btn-reset-premium, body.route-telegram-chat-index .btn-reset-premium {
    background: #f1f5f9;
    color: #64748b !important;
    border-radius: 12px;
    padding: 0 20px;
    height: 44px;
    font-weight: 700;
    border: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.route-product-index .select2-container--default .select2-selection--single, body.route-telegram-bot-index .select2-container--default .select2-selection--single, body.route-telegram-chat-index .select2-container--default .select2-selection--single {
    border-radius: 12px;
    height: 44px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
}

body.route-region-index .modern-grid tbody td, body.route-setting-index .modern-grid tbody td, body.route-telegram-bot-index .modern-grid tbody td, body.route-telegram-chat-index .modern-grid tbody td {
    padding: 14px 15px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px;
}

body.route-region-index .btn-u:hover, body.route-setting-index .btn-u:hover, body.route-telegram-bot-index .btn-u:hover, body.route-telegram-chat-index .btn-v:hover {
    background: #475569;
}

body.route-region-update .header-icon-box, body.route-telegram-bot-update .header-icon-box, body.route-telegram-chat-update .header-icon-box {
    width: 50px;
    height: 50px;
    background: #fffbeb; /* Edit mode amber/gold hint */
    color: #ca8a04;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(202, 138, 4, 0.08);
}

body.route-setting-create .form-group label, body.route-setting-update .form-group label, body.route-telegram-bot-create .form-group label, body.route-telegram-bot-update .form-group label, body.route-telegram-chat-create .form-group label, body.route-telegram-chat-update .form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.route-setting-index .btn-mini-action, body.route-telegram-bot-index .btn-mini-action, body.route-telegram-chat-index .btn-mini-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.2s;
    border: none;
    font-size: 13px;
}

body.route-setting-index .btn-mini-action:hover, body.route-telegram-bot-index .btn-mini-action:hover, body.route-telegram-chat-index .btn-mini-action:hover {
    transform: scale(1.1);
    color: #fff !important;
}

body.route-user-add-template .btn-save-premium:hover, body.route-user-form-name .btn-save-premium:hover, body.route-user-update-modal .btn-save-settings:hover {
    transform: translateY(-2px);
    background: #00a89a;
}

@media (max-width: 992px) {
    body.route-action-view .info-grid, body.route-apps-view .info-grid-container, body.route-assembly-view .info-grid, body.route-branch-view .info-grid-container, body.route-client-message-view .message-view-grid, body.route-company-view .info-grid-container, body.route-contract-view .contract-view-grid, body.route-device-location-view .location-view-grid, body.route-device-log-view .log-view-grid, body.route-device-status-history-view .history-view-grid, body.route-product-view .product-view-grid, body.route-setting-view .setting-view-grid, body.route-telegram-bot-view .bot-view-grid, body.route-telegram-chat-view .chat-view-grid {
        grid-template-columns: 1fr;
    }

}
