# -*- coding: utf-8 -*-
"""
Created on Fri Apr 25 09:54:25 2025

@author: anna.nikitina
"""

@/* ✅ Style the DataTable header layout */
    body {
      margin: 0;
      padding: 20px;
      font-family: Arial, sans-serif;
    }

    .dt-buttons {
      margin-bottom: 10px; /* ✅ Space between buttons and table */
    }
    .dataTables_length {
       min-width: 150px; /* ✅ Ensure pagination dropdown is visible */
    }

    .flex-container {
      display: flex;
      justify-content: space-between;
      gap: 20px;
    }
 
    .flex-box {
      flex: 1;
      background-color: #f0f0f0;
      border: 1px solid #ccc;
      padding: 30px;
      text-align: center;
      font-size: 16px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      border-radius: 8px;
    }

    .filter-row {
      display: flex;
      flex-direction: column;   /* 🔄 Stack label above select */
      align-items: flex-start;  /* 🔙 Align content to the left */
      gap: 4px;                 /* 🧾 Space between label and select */
      margin-bottom: 12px;      /* 🧼 Spacing between filters */
    }

    .filter-row label {
      margin: 0;
      font-weight: 600;
      text-align: left;
    }

    .filter-row select {
      max-width: 250px;
      width: 100%;
      padding: 5px 8px;
      text-align: left;
    }

    .topfilter-row {
      display: flex;
      align-items: center; /* ✅ Vertically centers both label and select */
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }

    .filter-row label {
      margin: 0;
      font-weight: 600;
      text-align: left;
      white-space: nowrap;
      line-height: 1.2;       /* ✅ Helps keep the label height tight */
      display: flex;          /* Optional: ensures label text stays centered inside */
      align-items: center;
      height: 100%;           /* Makes sure it's aligned with select */
    }

    .topfilter-row select {
      max-width: 250px;
      width: 100%;
      text-align: left;
    }

    .select2-results__option.invalid-option {
      background-color: #f8d7da !important;  /* light red */
      color: #721c24 !important;             /* dark red text */
      font-weight: bold;
    }
