/*
 * StudyHub.AZ Tablet Styles
 * Filename: tablet.css
 * Author: Ostwind by Dr.FC
 * Медиа-стили для устройств 768–1024px
 */

@media (min-width: 768px) and (max-width: 1024px) {
  /* === LAYOUT ADJUSTMENTS === */
  .container {
    padding: 25px 20px;
  }
  
  /* === 📐 АДАПТИВНАЯ ШИРИНА БЛОКА ДОБАВЛЕНИЯ КУРСА - ПЛАНШЕТ (768px - 1024px) === */
  /* Планшет: 90% ширины с max-width 900px, padding 24px с каждой стороны */
  /* Расчет: (viewport_width - 48px) * 0.9 */
  /* Пример для 768px: (768px - 48px) * 0.9 = 648px */
  /* Пример для 1024px: (1024px - 48px) * 0.9 = 878px */
  .course-add-form-container {
    width: 90%;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
  }
  
  /* === 📊 ТАБЛИЦА КУРСОВ - ПЛАНШЕТ (768px - 1024px) === */
  /* Планшет: Общая ширина 100% контейнера */
  .courses-table .col-course-name {
    width: clamp(180px, 28%, 350px);
  }
  
  .courses-table .col-price {
    width: clamp(110px, 12%, 140px);
  }
  
  .courses-table .col-teacher {
    width: clamp(130px, 18%, 200px);
  }
  
  .courses-table .col-room {
    width: clamp(110px, 14%, 160px);
  }
  
  .courses-table .col-max-students {
    width: clamp(70px, 9%, 110px);
  }
  
  .courses-table .col-status {
    width: clamp(90px, 10%, 130px);
  }
  
  /* Действия: 2 кнопки по 40px + gap 8px + padding 24px = 112px минимум */
  .courses-table .col-actions {
    width: clamp(120px, 12%, 150px);
    min-width: 120px;
  }
  
  /* === Settings Form Grid - 2 колонки на планшете === */
  .settings-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 100%;
  }
  
  .settings-form-grid .settings-form-block {
    width: 100%;
    min-width: 0;
  }
  
  .settings-form-grid .executive-form-actions {
    grid-column: 1 / -1;
  }
  
  /* 📊 Monthly Profit Report Tablet */
  .section-top.container {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
  
  .period-export-container {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .period-form-container {
    min-width: 280px;
    max-width: 450px;
  }
  
  .financial-summary-container {
    margin-top: 40px;
  }
  
  .income-amount,
  .expenses-amount,
  .profit-amount-positive,
  .profit-amount-negative {
    font-size: 2.3rem;
  }
  
  .margin-value {
    font-size: 1.7rem;
  }
  
  .form-block.u-glass {
    min-height: 380px;
  }

  .main-login,
  .main-welcome {
    padding: 20px;
    min-height: 90vh;
  }

  .welcome-container {
    max-width: 90%;
    padding: 0;
  }

  /* === 🎯 АДАПТИВНЫЕ РАЗМЕРЫ ИЗОБРАЖЕНИЯ ДЛЯ ПЛАНШЕТОВ === */
  .studyhub-image {
    max-width: 400px;        /* 400px в пикселях */
    max-height: 300px;       /* 300px в пикселях */
    width: 80%;              /* 80% от ширины контейнера */
    height: auto;
  }

  /* === ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ПЛАНШЕТОВ === */
  .section-top.container {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .features-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; /* Адаптивные колонки */
    gap: 1.5625rem !important;
    padding: 0 0.9375rem !important;
    max-width: 100% !important;
    margin: 2rem auto 0 !important;
    width: 100% !important;
    grid-row: 2 !important;
    grid-column: 1 / -1 !important;
    box-sizing: border-box !important;
    justify-content: center !important; /* Центрирование */
  }
  
  .feature-item {
    /* === АДАПТИВНЫЕ РАЗМЕРЫ ДЛЯ ПЛАНШЕТОВ === */
    width: 100% !important;
    min-width: 280px !important;
    max-width: 400px !important;
    height: auto !important;
    min-height: 320px !important;
    max-height: none !important;
    
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin: 0 auto !important; /* Центрирование */
  }

  /* === 🍎 ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ MACBOOK === */
  @media screen and (-webkit-min-device-pixel-ratio: 1) and (min-width: 768px) and (max-width: 1200px) {
    .section-top.container {
      flex-direction: column !important;
      gap: 2rem !important;
      text-align: center !important;
      width: 100% !important;
      max-width: 100% !important;
    }
    
    .features-wrapper {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1.5625rem !important;
      padding: 0 0.9375rem !important;
      max-width: 100% !important;
      margin: 2rem auto 0 !important;
      width: 100% !important;
      grid-row: 2 !important;
      grid-column: 1 / -1 !important;
      box-sizing: border-box !important;
    }
    
    .feature-item {
      max-width: 100% !important;
      width: 100% !important;
      text-align: center !important;
      box-sizing: border-box !important;
      overflow: visible !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }
  }

  .executive-dashboard-luxury {
    width: 85%;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
  }

  /* === 👔 EXECUTIVE DASHBOARD TABLET === */
  .executive-header-premium {
    padding: 28px;
    margin-bottom: 32px;
    gap: 20px;
  }
  
  .executive-logo-crown {
    width: 70px;
    height: 70px;
  }
  
  .executive-logo-crown::before {
    font-size: 35px;
  }
  
  .executive-main-title {
    font-size: 3rem;
  }
  
  .executive-subtitle {
    font-size: 1.1rem;
  }
  
  .luxury-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }
  
  .luxury-stats-grid .luxury-stat-card,
  .luxury-stats-grid .executive-card-luxury {
    padding: 28px 20px;
    border-radius: 18px;
    max-width: 100%;
    width: 100%;
  }
  
  .luxury-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
  }
  
  .luxury-icon-medium {
    font-size: 28px !important;
  }
  
  .luxury-icon-large {
    font-size: 36px !important;
  }
  
  .luxury-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .luxury-value {
    font-size: 3rem;
    margin-bottom: 14px;
  }
  
  .luxury-description {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .trust-guarantee {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  
  .enterprise-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
  
  .button-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .button-grid-modern .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-height: 48px;
  }
  
  .btn-executive-primary {
    padding: 16px 28px;
    font-size: 1rem;
  }
  
  .btn-executive-secondary {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  .marble-panel {
    padding: 28px 20px;
    border-radius: 18px;
  }
  
  .royal-card {
    padding: 32px 24px;
    border-radius: 22px;
  }

  /* === 🎯 СТИЛИ ДЛЯ КАРТОЧЕК ДИРЕКТОРА НА ПЛАНШЕТАХ === */
  .luxury-stats-grid {
    grid-template-columns: var(--grid-columns-tablet);
    gap: var(--grid-gap-tablet);
    margin: 20px 0;
  }
  
  .luxury-stats-grid .executive-card-luxury {
    min-height: var(--card-min-height-tablet);
    padding: var(--card-padding-tablet);
  }
  
  .luxury-stats-grid .luxury-icon {
    width: var(--icon-size-tablet);
    height: var(--icon-size-tablet);
    margin-bottom: 14px;
  }
  
  .luxury-stats-grid .luxury-icon i {
    font-size: 19px;
  }
  
  .luxury-stats-grid .luxury-value {
    font-size: var(--value-font-size-tablet);
  }
  
  .luxury-stats-grid .luxury-title {
    font-size: var(--title-font-size-tablet);
    min-height: 38px;
  }
  
  .luxury-stats-grid .trust-guarantee {
    font-size: var(--description-font-size-tablet);
    min-height: 28px;
  }
  
  .executive-header-premium {
    padding: clamp(18px, 3.5vw, 24px);
    margin-bottom: clamp(20px, 3.5vw, 28px);
  }
  
  .executive-logo-crown {
    width: 56px;
    height: 56px;
  }
  
  .executive-logo-crown::after {
    font-size: 22px;
  }
  
  .executive-main-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  
  .executive-subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  }

  .welcome-box {
    padding: 30px;
    margin: 15px;
  }

  .welcome-box h1 {
    font-size: 2.2rem;
  }

  .welcome-box p {
    font-size: 1.05rem;
  }

  /* === TYPOGRAPHY ADJUSTMENTS === */
  h1 { font-size: 2.3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.3rem; }
  h6 { font-size: 1.1rem; }

  /* === FORM ADJUSTMENTS === */
  .form-block {
    padding: 30px;
    margin: 15px;
  }

  .form-login {
    padding: 40px 30px;
    margin: 40px auto;
    width: 90%;
    max-width: 90%;
  }

  .form-login h2 {
    font-size: 1.4rem;
  }

  /* === BUTTON ADJUSTMENTS === */
  button, .button, .welcome-button {
    padding: 13px 24px;
    font-size: 1.02rem;
  }

  /* === MAINTENANCE AUTO-CHECK INDICATOR === */
  .auto-check-indicator {
    bottom: var(--space-md);
    min-width: 280px;
    padding: var(--space-sm);
  }
  
  .check-status {
    font-size: 0.9rem;
  }
  
  .check-timer {
    font-size: 0.75rem;
  }

  /* === MAINTENANCE PAGE TABLET STYLES === */
  .maintenance-container {
    padding: var(--space-lg);
    margin: var(--space-md);
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .contact-methods {
    flex-direction: column;
  }
  
  .progress-stats {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .language-switcher {
    top: var(--space-md);
    right: var(--space-md);
  }
  
  .language-toggle {
    padding: var(--space-xs) var(--space-sm);
    min-width: 50px;
  }
  
  .current-lang {
    font-size: 0.8rem;
  }

  /* === MAINTENANCE HEALTH STATUS TABLET === */
  .site-health-status {
    padding: var(--space-md);
  }
  
  .health-title {
    font-size: 1.1rem;
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .health-score {
    font-size: 1rem;
  }
  
  .issues-list {
    font-size: 0.85rem;
  }
  
  .form-block input:not([type="radio"]):not([type="checkbox"]) {
    min-height: 48px; /* Touch-friendly minimum */
  }

  .main-button {
    padding: 11px 22px;
    font-size: 1.05rem;
    min-height: 48px;
  }

  /* === INPUT ADJUSTMENTS === */
  .form-block input:not([type="radio"]):not([type="checkbox"]),
  .form-block select,
  .form-block textarea {
    min-height: 50px; /* Touch-friendly minimum */
    padding: 13px 17px;
    font-size: 1.05rem;
  }

  /* === LAYOUT FLEXIBILITY === */
  .section-top.container {
    flex-direction: row;
    gap: 1.5rem;
  }

  .top-text, .top-image {
    flex: 1 1 48%;
    min-width: 280px;
  }

  .features-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .tariff-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    gap: 20px;
    align-items: stretch;
  }

  .tariff-card {
    width: 100%;
    max-width: 280px;
    height: 100%;
  }

  /* === LOGO ADJUSTMENTS === */
  .logos-container {
    flex-direction: row;
    align-items: center;
    padding: 18px;
  }

  .logo-image {
    width: 220px;
  }

  .company-title {
    font-size: 2.1rem;
  }

  /* === TABLE ADJUSTMENTS === */
  table:not(.flag-table) {
    font-size: 0.95rem;
  }

  table:not(.flag-table) th, 
  table:not(.flag-table) td {
    padding: 14px 20px;
  }

  /* === FLAG TABLE TABLET ADJUSTMENTS === */
  .flag-container {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    width: 100% !important;
  }

  .flag-button {
    padding: 6px !important;
    min-height: auto !important;
    min-width: auto !important;
  }

  .flag-img {
    width: 32px !important;
    height: 32px !important;
  }

  /* === MODAL ADJUSTMENTS === */
  .modal-content {
    padding: 30px;
    margin: 20px;
    max-width: 90%;
    width: 90%;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  /* === GLOBAL DEPARTMENTS ADJUSTMENTS === */
  .global-departments-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .global-dept-item {
    flex-direction: row;
    align-items: center;
  }
  
  .global-dept-item .button-link {
    align-self: center;
    margin-top: 0;
  }

  /* === VERIFY DEVICE BOX ADJUSTMENTS === */
  .verify-device-box {
    width: 90%;
    padding: 25px;
    margin: 30px auto;
  }

  .verification-input {
    width: 48px;
    height: 58px;
    font-size: 22px;
  }

  /* === SETTINGS BOX ADJUSTMENTS === */
  .settings-box {
    margin: 30px auto;
    padding: 25px;
  }

  /* === ALERT ADJUSTMENTS === */
  .alert {
    min-width: 300px;
    max-width: 80vw;
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  /* === NOTIFICATION ADJUSTMENTS === */
  .notification {
    min-width: 220px;
    max-width: 85vw;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* === FOOTER ADJUSTMENTS === */
  .footer-text {
    padding: 25px 20px;
    font-size: 0.92rem;
    text-align: center;
  }

  /* === UTILITY ADJUSTMENTS === */
  .d-only-tablet {
    display: block !important;
  }
  
  .d-hide-tablet {
    display: none !important;
  }

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

  /* === LOGO IMPROVEMENTS === */
  .logo-with-name {
    text-align: left;
  }

  .logo-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .logo-actions .welcome-button {
    width: auto;
    min-width: 120px;
  }

  /* === FEATURE ITEMS OPTIMIZATION === */
  .feature-item {
    max-width: 100%;
    padding: 22px 18px;
    margin: 0 auto;
  }



  .feature-item h3 {
    font-size: 1.25rem;
  }

  .feature-item p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  /* === RESPONSIVE IMAGES === */
  img {
    max-width: 100%;
    height: auto;
  }

  .top-image img {
    max-width: 100%;
    margin: 0;
    display: block;
  }

  /* === CARD RESPONSIVE IMPROVEMENTS === */
  .tariff-card h2 {
    font-size: 1.45rem;
  }

  .tariff-card .description {
    font-size: 0.98rem;
    min-height: 55px;
  }

  .tariff-card .price {
    font-size: 1.25rem;
  }

  .tariff-details {
    font-size: 0.92rem;
  }

  /* === 🎴 АДАПТИВНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ТАРИФОВ === */
  .tariffs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }

  .tariff-card-modern {
    border-radius: 14px;
  }

  .tariff-card-header {
    padding: 18px 20px;
  }

  .tariff-card-body {
    padding: 20px;
    gap: 18px;
  }

  .tariff-card-title {
    font-size: 1.4rem;
  }

  .price-value {
    font-size: 1.6rem;
  }

  .tariff-card-footer {
    padding: 18px 20px;
  }

  .tariff-actions {
    gap: 10px;
  }

  .tariff-actions .btn-action {
    flex: 1;
    min-width: 90px;
  }

  .tariff-actions .btn-action span {
    display: inline;
  }

  /* === NAVIGATION IMPROVEMENTS === */
  .logo-actions form {
    display: flex;
  }

  .logo-actions button {
    min-width: 120px;
  }

  /* === IMPROVED SPACING === */
  .features-wrapper {
    padding: 0 15px;
  }

  .tariff-grid {
    padding: 0 15px;
  }

  .section-features {
    padding: 0 15px;
  }

  /* === FEATURE ITEM TABLET IMPROVEMENTS === */
  .feature-item .button-link,
  .feature-item .main-button {
    padding: 11px 18px !important;
    font-size: 0.95rem !important;
    min-height: 50px !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .feature-button-wrapper {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .feature-item .sub-links {
    gap: 9px !important;
    margin-top: 14px !important;
  }

  .feature-button-wrapper h3 {
    font-size: 1.15rem !important;
    margin: 7px 0 !important;
  }

  /* === MODERN ADMIN TABLET АДАПТАЦИЯ === */
  .admin-container-modern {
    padding: 24px;
  }
  
  .stats-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .features-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  
  .hero-section-modern {
    padding: 32px;
  }
  
  .stat-card-modern {
    padding: 24px;
  }
  
  .feature-card-modern {
    padding: 28px;
  }
  
  .btn-modern {
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .stat-value-modern {
    font-size: 2.5rem;
  }

  .feature-title-modern {
    font-size: 1.1rem;
  }
  
  /* === АДАПТИВНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ЛОГОВ === */
  .hero-actions {
    gap: 20px;
  }
  
  .hero-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .debug-info {
    margin: 20px 0;
    padding: 15px;
  }
  
  .debug-info pre {
    font-size: 11px;
    max-height: 180px;
  }
  
  .filters-section {
    gap: 25px;
  }
  
  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .filter-actions {
    gap: 15px;
  }
  
  .log-message {
    max-width: 250px;
  }
  
  /* === МОДАЛЬНЫЕ ОКНА: МАТЕМАТИЧЕСКИЕ РАСЧЕТЫ ДЛЯ ПЛАНШЕТОВ === */
  /* Расчеты основаны на промежуточных размерах между мобильными и десктопами */
  
  #logDetailsModal .modal-dialog {
    /* Ширина: оптимальная для планшетов (75-85% viewport, максимум 850px) */
    max-width: clamp(650px, 80vw, 850px);
    /* Используем оптимальную ширину строки для чтения */
    width: clamp(60ch, 70vw, 70ch);
    /* Отступы: промежуточные между мобильными и десктопами */
    margin: clamp(1.5rem, 3vh, 2.5rem) auto;
  }
  
  #logDetailsModal .modal-body {
    /* Внутренние отступы: 5px согласно архитектуре */
    padding: 5px !important;
  }
  
  #loggingSettingsModal.modal .modal-dialog.modal-lg,
  #loggingSettingsModal .modal-dialog.modal-lg {
    /* Математический расчет: 100vw - отступы (4px слева + 4px справа = 8px) */
    width: calc(100vw - 8px) !important;
    min-width: 700px !important;
    max-width: 900px !important;
    /* Отступы: 4px слева и справа для красивого вида */
    margin: clamp(1.5rem, 3vh, 2.5rem) 4px !important;
    box-sizing: border-box !important;
  }
  
  /* Ширина header равна ширине модального окна (100% от modal-dialog) */
  #loggingSettingsModal .modal-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  #loggingSettingsModal .modal-body {
    /* Внутренние отступы: 5px согласно архитектуре */
    padding: 5px !important;
  }
  
  #loggingSettingsModal .modal-footer {
    /* Внутренние отступы: 5px согласно архитектуре */
    padding: 5px !important;
  }
  
  #loggingSettingsModal .modal-footer .d-flex {
    /* Отступ между группами: промежуточный */
    gap: clamp(15px, 2vw, 20px);
  }
  
  #loggingSettingsModal .modal-footer .btn {
    /* Внутренние отступы: 5px 10px согласно архитектуре */
    padding: 5px 10px !important;
    /* Размер шрифта: адаптивный для планшетов */
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    /* Минимальная высота: промежуточная */
    min-height: clamp(2.5rem, 5vh, 2.75rem);
  }
  
  /* Математические расчеты для внутренних элементов на планшетах */
  #loggingSettingsModal .modal-body .row {
    /* Отступ между колонками: промежуточный */
    margin-left: calc(-1 * clamp(0.875rem, 1.75vw, 1.25rem));
    margin-right: calc(-1 * clamp(0.875rem, 1.75vw, 1.25rem));
  }
  
  #loggingSettingsModal .modal-body .row > [class*="col-"] {
    /* Отступ внутри колонок: промежуточный */
    padding-left: clamp(0.875rem, 1.75vw, 1.25rem);
    padding-right: clamp(0.875rem, 1.75vw, 1.25rem);
  }
  
  #loggingSettingsModal .modal-body .form-control,
  #loggingSettingsModal .modal-body .form-select {
    /* Высота поля: промежуточная для планшетов */
    min-height: clamp(2.5rem, 5.25vh, 3rem);
    /* Размер шрифта: адаптивный */
    font-size: clamp(0.975rem, 1.4vw, 1.05rem);
  }
  
  /* Размеры для alert блока в модальном окне настроек */
  #loggingSettingsModal .modal-body .alert {
    /* Внутренние отступы: 5px согласно архитектуре */
    padding: 5px !important;
    /* Отступ снизу: минимум 1.125rem, максимум 1.5rem */
    margin-bottom: clamp(1.125rem, 2.5vh, 1.5rem);
    /* Радиус: пропорционально размеру окна */
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
  }
  
  #loggingSettingsModal .modal-body .alert .d-flex {
    /* Отступ между элементами: промежуточный для планшетов */
    gap: clamp(0.875rem, 1.5vw, 1.125rem);
  }
  
  #loggingSettingsModal .modal-body .alert small {
    /* Размер шрифта: адаптивный для планшетов */
    font-size: clamp(0.825rem, 1vw, 0.9rem);
  }
}

/* === 🔧 PHP EXTRACTED TABLET STYLES === */
/* Стили извлеченные из PHP файлов для соблюдения архитектуры */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Из maintenance.php - планшетные стили */
    .maintenance-container {
        margin: 10px;
        padding: 40px 24px;
    }
    
    /* Из teams/company_director/students_*.php */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .students-container {
        padding: 10px !important;
    }
    
    /* Из teams/company_director/department.php */
    .button-checkbox-group {
        gap: 8px;
    }
    
    .toggle-dept-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Из modules/components/settings_icon_picker.php */
    .icon-picker-modal-content {
        width: 96%;
        max-width: none;
        max-height: 95vh;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    /* Из teams/company_director/schedule.php */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

  /* === FEATURE ITEMS TABLET IMPROVEMENTS === */
  .feature-item {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 16px !important;
    margin: 0 auto 16px !important;
    box-sizing: border-box !important;
  }

  .feature-item h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .feature-item p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* === FEATURES GRID TABLET OPTIMIZATION === */
  .features-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 10px !important;
  }

  /* === SMALL LAPTOP SCREENS (1024px-1366px) === */
  @media (min-width: 1024px) and (max-width: 1366px) {
    .features-wrapper {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 24px !important;
      padding: 0 15px !important;
    }
    
    .feature-item {
      max-width: 280px !important;
      padding: 22px 18px !important;
    }
    
    .feature-item h3 {
      font-size: 1.15rem !important;
    }
    
    .feature-item p {
      font-size: 0.92rem !important;
    }
  }

  /* === MEDIUM LAPTOP SCREENS (1367px-1440px) === */
  @media (min-width: 1367px) and (max-width: 1440px) {
    .features-wrapper {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 28px !important;
      padding: 0 20px !important;
    }
    
    .feature-item {
      max-width: 300px !important;
      padding: 24px 20px !important;
    }
  }

  /* === LARGE LAPTOP SCREENS (1441px+) === */
  @media (min-width: 1441px) {
    .features-wrapper {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 30px !important;
      padding: 0 25px !important;
    }
    
    .feature-item {
      max-width: 320px !important;
      padding: 26px 22px !important;
    }
  }

  /* === MACBOOK И APPLE УСТРОЙСТВА === */
  /* Специальные стили для исправления min-width на MacBook */
  @media screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 1024px) {
    .features-wrapper {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 24px !important;
      padding: 0 15px !important;
      max-width: 900px !important;
    }
    
    .feature-item {
      max-width: 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      padding: 20px 16px !important;
      box-sizing: border-box !important;
      flex-shrink: 1 !important;
      flex-basis: auto !important;
    }
    
    .feature-item h3 {
      font-size: 1.1rem !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
    }
    
    .feature-item p {
      font-size: 0.9rem !important;
      line-height: 1.4 !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
    }
  }

  /* === MACBOOK PRO 13" (1280x800) === */
  @media screen and (min-width: 1280px) and (max-width: 1440px) and (-webkit-min-device-pixel-ratio: 2) {
    .features-wrapper {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 28px !important;
      padding: 0 20px !important;
      max-width: 1000px !important;
    }
    
    .feature-item {
      max-width: 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      padding: 22px 18px !important;
    }
  }

  /* === MACBOOK AIR 13" (1440x900) === */
  @media screen and (min-width: 1440px) and (max-width: 1680px) and (-webkit-min-device-pixel-ratio: 2) {
    .features-wrapper {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 30px !important;
      padding: 0 25px !important;
      max-width: 1200px !important;
    }
    
    .feature-item {
      max-width: 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      padding: 24px 20px !important;
    }
  }

  /* === MACBOOK PRO 16" (1792x1120) === */
  @media screen and (min-width: 1792px) and (-webkit-min-device-pixel-ratio: 2) {
    .features-wrapper {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 32px !important;
      padding: 0 30px !important;
      max-width: 1400px !important;
    }
    
    .feature-item {
      max-width: 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      padding: 26px 22px !important;
    }
  }

  /* === TABLET STYLES === */
/* Стили для планшетов и средних экранов */

/* === FEATURES WRAPPER НА ПЛАНШЕТАХ === */
.features-wrapper {
  /* === ПЛАНШЕТНАЯ ЛОГИКА === */
  /* На планшетах блоки в две колонки */
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* Две колонки */
  gap: 20px !important;
  padding: 0 15px !important;
  max-width: 900px !important;
  margin: 20px auto 0 !important;
}

/* === FEATURE ITEMS НА ПЛАНШЕТАХ === */
.feature-item {
  max-width: 100% !important;
  width: 100% !important;
  padding: 20px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  
  /* === ПЛАНШЕТНАЯ СЕТКА === */
  justify-self: stretch !important;
  align-self: start !important;
}

.feature-item h3 {
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}

.feature-item p {
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

/* === ПЛАНШЕТНЫЕ ИКОНКИ === */
.feature-item i {
  display: block !important;
  text-align: center !important;
  margin-bottom: 12px !important;
  font-size: 2.2rem !important;
}

/* === МАЛЕНЬКИЕ ПЛАНШЕТЫ (768px-1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .features-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 15px !important;
    max-width: 900px !important;
  }
  
  .feature-item {
    padding: 20px 16px !important;
  }
  
  .feature-item h3 {
    font-size: 1.15rem !important;
  }
  
  .feature-item p {
    font-size: 0.92rem !important;
  }
}

/* === СРЕДНИЕ ПЛАНШЕТЫ (1024px-1366px) === */
@media (min-width: 1024px) and (max-width: 1366px) {
  .features-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    padding: 0 15px !important;
    max-width: 900px !important;
  }
  
  .feature-item {
    padding: 22px 18px !important;
  }
  
  .feature-item h3 {
    font-size: 1.15rem !important;
  }
  
  .feature-item p {
    font-size: 0.92rem !important;
  }
}

/* === 📱 COMPONENTS.CSS TABLET STYLES === */
/* Стили перенесены из components.css для соблюдения архитектуры */

/* Managers Table для планшетов */
#managers-table th:nth-child(n+6),
#managers-table td:nth-child(n+6) {
  font-size: 0.85rem;
}

#managers-table .action-buttons {
  flex-direction: column;
  gap: 6px;
}

#managers-table .action-buttons .btn {
  width: 100%;
  justify-content: center;
}

/* На больших экранах возвращаем чекбокс на место */
#managers-table tbody td:first-child {
  display: table-cell !important;
}

#managers-table tbody td:nth-child(3) .mobile-checkbox-wrapper {
  display: none !important;
}

#managers-table tbody td:nth-child(3) {
  display: table-cell !important;
  padding-right: 0;
}

#managers-table tbody td:first-child input[type="checkbox"],
#managers-table tbody td:first-child .manager-checkbox {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  cursor: pointer;
  transform: scale(1.1) translateY(0);
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

#managers-table tbody td:first-child::before {
  display: none !important;
  content: none !important;
}

#managers-table tbody td:nth-child(3):not([data-label])::before {
  content: "Имя:";
}

#managers-table tbody td:nth-child(4):not([data-label])::before {
  content: "Email:";
}

#managers-table tbody td:nth-child(5):not([data-label])::before {
  content: "Компания:";
}

#managers-table tbody td:nth-child(6):not([data-label])::before {
  content: "Статус:";
}

#managers-table tbody td:nth-child(7):not([data-label])::before {
  content: "Последний вход:";
}

#managers-table tbody td:last-child:not([data-label])::before {
  content: "Действия:";
}

#managers-table .action-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: flex-start !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 0.5rem;
}

#managers-table .action-buttons .btn {
  flex: 1 1 auto;
  min-width: calc(33.333% - 0.5rem);
  padding: 0.6rem 0.5rem !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

#managers-table .action-buttons .btn.btn-info {
  background-color: #17a2b8 !important;
  color: white !important;
  border-color: #17a2b8 !important;
}

#managers-table .action-buttons .btn.btn-primary {
  background-color: #667eea !important;
  color: white !important;
  border-color: #667eea !important;
}

#managers-table .action-buttons .btn.btn-danger {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
}

#managers-table .action-buttons .btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#managers-table .action-buttons .btn i {
  margin: 0 !important;
  font-size: 1rem !important;
  display: inline-block !important;
}

#managers-table .action-buttons .btn span,
#managers-table .action-buttons .btn:not(:has(i)) {
  display: none;
}

.table-container {
  overflow-x: visible;
  border: none;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* === 📱 CARDS.CSS TABLET STYLES === */
/* Стили перенесены из cards.css для соблюдения архитектуры */

/* Luxury Stats Grid для планшетов */
@media (min-width: 1025px) and (max-width: 1199px) {
  .luxury-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .luxury-stats-grid .executive-card-luxury {
    max-width: 380px;
  }
  
  .enterprise-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }
  
  .enterprise-grid-premium .executive-card-luxury {
    max-width: 100%;
    width: 100%;
  }
}

/* === 📱 FORMS.CSS TABLET STYLES === */
/* Стили перенесены из forms.css для соблюдения архитектуры */

/* Mobile devices (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .form-block {
    padding: 20px 16px;
    margin: 10px auto;
  }


  .form-block input:not([type="radio"]):not([type="checkbox"]),
  .form-block textarea,
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea {
    min-height: 48px; /* Touch-friendly minimum */
    padding: 12px 16px;
    font-size: 1rem;
  }

  .modal .form-input {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .verification-input {
    width: 45px;
    height: 55px;
    font-size: 20px;
  }

  .input-with-icon {
    width: 100%;
  }

  .input-with-icon input,
  .input-with-icon input[type="text"],
  .input-with-icon input[name="login"],
  #login {
    padding-left: 38px !important;
    padding-right: 16px !important;
    width: 100%;
    text-indent: 0;
    box-sizing: border-box;
  }

  .input-with-icon.password-field input,
  .input-with-icon input[type="password"],
  .input-with-icon input[name="password"],
  #password {
    padding-left: 38px !important;
    padding-right: 45px !important;
    width: 100%;
    text-indent: 0;
    box-sizing: border-box;
  }

  .input-with-icon input:focus,
  .input-with-icon input:not(:placeholder-shown) {
    padding-left: 38px !important;
  }

  .input-with-icon.password-field input:focus,
  .input-with-icon.password-field input:not(:placeholder-shown),
  .input-with-icon input[type="password"]:focus,
  .input-with-icon input[type="password"]:not(:placeholder-shown),
  .input-with-icon input[name="password"]:focus,
  .input-with-icon input[name="password"]:not(:placeholder-shown),
  #password:focus,
  #password:not(:placeholder-shown) {
    padding-left: 38px !important;
    padding-right: 45px !important;
  }

  .input-with-icon i:not(.toggle-password),
  .input-with-icon input:focus ~ i:not(.toggle-password),
  .input-with-icon:focus-within i:not(.toggle-password) {
    left: 15px !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
  }

  .input-with-icon .toggle-password {
    right: 16px !important;
    font-size: 1rem !important;
    pointer-events: auto !important;
    display: flex !important;
    visibility: visible !important;
    z-index: 15 !important;
    cursor: pointer !important;
  }
}

/* Tablet devices (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .form-block {
    padding: 30px 25px;
    margin: 15px auto;
    width: 100%;
  }


  .form-block input:not([type="radio"]):not([type="checkbox"]),
  .form-block textarea,
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea {
    min-height: 50px;
    padding: 13px 17px;
    font-size: 1.05rem;
  }

  .modal .form-input {
    min-height: 50px;
    padding: 13px 17px;
    font-size: 1.05rem;
  }

  .verification-input {
    width: 50px;
    height: 60px;
    font-size: 22px;
  }
}

/* Планшеты - Select элементы */
@media (min-width: 769px) and (max-width: 1024px) {
  select:not(.country-code-prefix),
  select.form-control:not(.country-code-prefix),
  .form-block select:not(.country-code-prefix),
  .form-section select:not(.country-code-prefix),
  .form-group select:not(.country-code-prefix) {
    font-size: 15px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 11px 38px 11px 15px !important;
  }
  
  select:not(.country-code-prefix) option {
    font-size: 14px !important;
    padding: 9px 11px !important;
  }
  
  .phone-input-with-prefix select,
  .phone-input-with-prefix .country-code-prefix {
    /* Используют свои стили */
    min-height: 46px;
  }
}

/* Touch targets для всех интерактивных элементов на планшетах */
@media (max-width: 1024px) {
  .form-block input[type="radio"],
  .form-block input[type="checkbox"] {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  /* === 📱 JAVASCRIPT CHECK DASHBOARD - TABLET STYLES (768px - 1024px) === */
  
  .super-admin-dashboard {
    padding: 15px;
  }
  
  .hero-section-modern {
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
  }
  
  .hero-stats {
    margin-top: 25px;
    gap: 20px;
  }
  
  .hero-stat {
    margin: 8px;
  }
  
  .stat-number {
    font-size: 2.2em;
    margin-bottom: 5px;
  }
  
  .stat-label {
    font-size: 1.05em;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
  }
  
  .dashboard-section {
    border-radius: 10px;
    padding: 18px;
  }
  
  .section-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  
  .section-actions {
    gap: 9px;
  }
  
  .btn {
    padding: 9px 15px;
    font-size: 13px;
    gap: 7px;
  }
  
  .btn-sm {
    padding: 5px 9px;
    font-size: 11px;
  }
  
  .stats-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }
  
  .stat-card {
    border-radius: 12px;
    padding: 22px;
  }
  
  .stat-icon {
    font-size: 2.3em;
    margin-bottom: 12px;
  }
  
  .stat-content h3 {
    font-size: 1.8em;
  }
  
  .stat-content p {
    font-size: 1.05em;
  }
  
  .js-files-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }
  
  .js-file-card {
    border-radius: 7px;
    padding: 14px;
  }
  
  .js-file-header i {
    font-size: 1.4em;
    margin-right: 9px;
  }
  
  .js-file-size {
    padding: 2px 7px;
    font-size: 11px;
  }
  
  .js-file-content p {
    font-size: 13px;
  }
  
  .js-file-actions {
    gap: 4px;
    margin-top: 9px;
  }
  
  .js-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
  
  .js-tool-card {
    border-radius: 7px;
    padding: 14px;
  }
  
  .tool-header i {
    font-size: 1.15em;
    margin-right: 9px;
  }
  
  .tool-content p {
    margin: 0 0 14px 0;
    font-size: 13px;
  }
  
  .js-errors-list {
    max-height: 350px;
  }
  
  .js-error-item {
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 9px;
  }
  
  .error-time {
    font-size: 11px;
  }
  
  .error-type {
    padding: 2px 7px;
    font-size: 11px;
  }
  
  .error-message {
    font-size: 13px;
  }
  
  .error-location {
    font-size: 11px;
  }
  
  .error-stack {
    border-radius: 4px;
    padding: 9px;
    font-size: 0.75em;
    max-height: 180px;
  }
  
  .no-data {
    padding: 35px 25px;
  }
  
  .no-data i {
    font-size: 2.8em;
    margin-bottom: 13px;
  }
  
  .debug-info {
    border-radius: 7px;
    padding: 14px;
    margin: 18px 0;
    font-size: 0.88em;
  }
  
  /* ОПТИМИЗАЦИЯ ДЛЯ ПЛАНШЕТОВ (768px - 1024px) */
  /* КРИТИЧНО: Обеспечиваем центрирование модальных окон на планшетах */
  .modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .modal-dialog,
  .modal-dialog.modal-sm,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    max-width: 90vw !important; /* Оптимальная ширина для планшетов */
    min-width: 500px !important; /* Минимальная ширина для планшетов */
    margin: 0 auto !important; /* Горизонтальное центрирование */
    align-self: center !important; /* Вертикальное центрирование */
  }
  
  .modal-content {
    width: 85%;
    max-width: 550px;
    margin: 7% auto;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  .modal-header {
    padding: 5px !important;
    margin: 0 !important;
    min-height: auto !important;
    color: #ffffff !important; /* Устанавливаем белый цвет для всего header */
  }
  
  /* Все элементы внутри modal-header наследуют белый цвет */
  .modal-header * {
    color: #ffffff !important;
  }
  
  /* КРИТИЧНО: Переопределяем цвет для кнопки закрытия - синий X на белом фоне */
  /* Используем максимальную специфичность для гарантированного переопределения */
  .modal .modal-dialog .modal-content .modal-header .btn-close,
  .modal.fade .modal-dialog .modal-content .modal-header .btn-close,
  .modal.active .modal-dialog .modal-content .modal-header .btn-close,
  .modal.show .modal-dialog .modal-content .modal-header .btn-close,
  .modal-header .btn-close,
  .modal-header * .btn-close,
  .modal-header button.btn-close,
  button.modal-header .btn-close {
    position: absolute !important; /* Абсолютное позиционирование */
    top: 0.5rem !important; /* Отступ сверху */
    right: 0.5rem !important; /* Отступ справа - в самом правом верхнем углу */
    margin: 0 !important; /* Убираем margin */
    color: #0c3c78 !important; /* Синий цвет X - как у кнопок */
    -webkit-text-fill-color: #0c3c78 !important; /* Синий цвет X для WebKit */
    -webkit-background-clip: unset !important; /* Убираем градиентный фон */
    background-clip: unset !important; /* Убираем градиентный фон */
    background: #ffffff !important; /* Белый круглый фон */
    border-radius: 50% !important; /* Круглый фон */
    filter: none !important; /* Убираем любые фильтры */
    opacity: 1 !important;
    font-weight: 700 !important; /* Жирный шрифт для видимости */
    z-index: 10 !important; /* Поверх других элементов */
  }
  
  .modal .modal-dialog .modal-content .modal-header .btn-close:hover,
  .modal-header .btn-close:hover {
    color: #0c3c78 !important; /* Синий цвет X - как у кнопок */
    -webkit-text-fill-color: #0c3c78 !important; /* Синий цвет X для WebKit */
    background: #f8f9fa !important; /* Светло-серый фон при наведении */
    opacity: 1 !important;
    font-weight: 700 !important; /* Жирный шрифт для видимости */
  }
  
  .modal-header h3 {
    font-size: 1.2em;
    padding: 5px !important;
    margin: 0 !important;
  }
  
  .close {
    font-size: 26px;
  }
  
  .modal-body {
    padding: 5px !important;
    margin: 0 !important;
  }
  
  .modal-footer {
    padding: 5px !important;
    margin: 0 !important;
  }
  
  /* Внутренние отступы 5px для элементов внутри модальных окон */
  .modal-header > *,
  .modal-body > *,
  .modal-footer > * {
    padding: 5px !important;
    margin: 0 !important;
  }
  
  /* КРИТИЧНО: Переопределение typography.css для белого текста в заголовках */
  .modal-header .modal-title {
    padding: 5px !important;
    margin: 0 !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background: none !important;
    color: #ffffff !important;
  }
  
  .modal-header .modal-title i,
  .modal-header i {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
  }
  
  .modal-header .modal-title::before {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    background: none !important;
  }
  
  /* Внутренние отступы 5px для форм и элементов */
  .modal-body .form-group {
    margin-bottom: 0 !important;
    padding: 5px !important;
  }
  .modal-body .alert {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 5px !important;
  }
  .modal-body .text-center {
    padding: 5px !important;
  }
  .modal-body table {
    margin-bottom: 0 !important;
  }
  .modal-body table thead th {
    padding: 5px !important;
  }
  .modal-body table tbody td {
    padding: 5px !important;
  }
  .modal-body p,
  .modal-body div,
  .modal-body form > * {
    padding: 5px !important;
    margin: 0 !important;
  }
  .modal-body .mb-3 {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 5px !important;
  }
  .modal-body p {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 5px !important;
  }
  .modal-body ul, .modal-body ol {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-left: 1.5rem;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .modal-footer button {
    margin: 0 !important;
    padding: 5px 10px !important;
  }
  
  .console-output {
    padding: 14px;
    max-height: 280px;
    font-size: 0.88em;
  }
  
  .console-input {
    gap: 9px;
  }
  
  .console-input input {
    padding: 9px;
    font-size: 14px;
  }
  
  .dashboard-footer {
    padding: 18px;
    border-radius: 10px;
  }
  
  .footer-info p {
    font-size: 13px;
    margin: 4px 0;
  }
  
  .js-file-modified {
    font-size: 11px;
  }
  
  .js-file-path {
    font-size: 11px;
  }

  /* ============================================
     PRIVACY POLICY - TABLET РАЗМЕРЫ (768px-1024px)
     ============================================ */
  
  main.privacy-policy-container {
    max-width: 100%;
    padding: 40px 30px;
    min-height: calc(100vh - 200px);
  }
  
  main.privacy-policy-container .privacy-policy-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
  }
  
  main.privacy-policy-container .privacy-policy-header h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  
  main.privacy-policy-container .privacy-policy-header .last-updated {
    font-size: 0.95em;
    margin-top: 10px;
  }
  
  main.privacy-policy-container .privacy-section {
    margin-bottom: 35px;
    padding: 30px 25px;
  }
  
  main.privacy-policy-container .privacy-section h2 {
    font-size: 1.7em;
    margin-bottom: 25px;
    padding-left: 20px;
  }
  
  main.privacy-policy-container .privacy-section h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  
  main.privacy-policy-container .privacy-section h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  
  main.privacy-policy-container .privacy-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 10px;
  }
  
  main.privacy-policy-container .privacy-section ul li {
    margin-bottom: 12px;
    padding-left: 5px;
  }
  
  main.privacy-policy-container .privacy-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 10px;
  }
  
  main.privacy-policy-container .privacy-section ol li {
    margin-bottom: 12px;
    padding-left: 5px;
  }
  
  main.privacy-policy-container .privacy-section p {
    margin-bottom: 18px;
    font-size: 1.05em;
  }
  
  main.privacy-policy-container .back-to-home {
    margin-top: 60px;
    padding-top: 30px;
  }
  
  main.privacy-policy-container .back-to-home a {
    padding: 14px 35px;
    font-size: 1.05em;
  }
  
  main.privacy-policy-container .back-to-home a i {
    font-size: 1.1em;
  }
  
  /* === SUPER ADMIN COMPONENTS TABLET ADJUSTMENTS === */
  .super-admin-dashboard {
    padding: 20px;
  }
  
  .hero-section-modern {
    padding: 35px 25px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 18px;
  }
  
  .hero-stat {
    min-width: 140px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .api-config-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  
  .bot-status-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
  
  .notification {
    min-width: 280px;
    max-width: 350px;
  }

  /* === ОБЩИЕ МЕДИА-ЗАПРОСЫ ДЛЯ МОДАЛЬНЫХ ОКОН (768px - 1024px) === */
  .modal-dialog,
  .modal-dialog.modal-sm,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    max-width: 90vw !important;
    min-width: 500px !important;
    max-height: 90vh !important;
  }
  .modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  .modal-body {
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
  }
  
  /* === APPLICATION MODAL - TABLET === */
  .application-modal-content {
    min-width: 70%;
    max-width: 85%;
    padding: 20px;
  }
  
  .application-modal-header h3 {
    font-size: 1.3rem;
  }
  
  .application-modal-actions {
    gap: 12px;
  }
  
  /* === EXECUTIVE PAGINATION - TABLET === */
  .executive-pagination {
    padding: 18px;
  }
  
  .executive-pagination-info {
    font-size: 0.95rem;
  }
}

/* === SCHEDULE MODULE (из schedule.css) === */
.schedule-container {
  padding: 16px;
}

.schedule-title {
  font-size: 2rem;
}

.calendar-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (orientation: landscape) {
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .schedule-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .schedule-controls .btn,
  .event-btn {
    width: auto;
    min-width: 120px;
  }

  .conflict-item {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .time-status {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

