

/* =============================================
   STYLE CUSTOM - DESIGNAZIONI
   ============================================= */

table.table-calendario tbody tr.row-selected > td {
  background-color: rgba(255, 187, 0, 0.25) !important;
}

#divPageContainer{
  display: inline-table;
}

.hidden {  display: none; }

.modal-xxl {
  max-width: 90vw;
  width: 90vw;
}

/* --- Opacity utilities --- */
.bgdark-opacity-0 { background-color: rgba(0,0,0,0); }
.bgdark-opacity-10 { background-color: rgba(0,0,0,0.1); }
.bgdark-opacity-20 { background-color: rgba(0,0,0,0.2); }
.bgdark-opacity-30 { background-color: rgba(0,0,0,0.3); }
.bgdark-opacity-40 { background-color: rgba(0,0,0,0.4); }
.bgdark-opacity-50 { background-color: rgba(0,0,0,0.5); }
.bgdark-opacity-60 { background-color: rgba(0,0,0,0.6); }
.bgdark-opacity-70 { background-color: rgba(0,0,0,0.7); }
.bgdark-opacity-80 { background-color: rgba(0,0,0,0.8); }
.bgdark-opacity-90 { background-color: rgba(0,0,0,0.9); }

.bglight-opacity-0 { background-color: rgba(255,255,255,0.0); }
.bglight-opacity-10 { background-color: rgba(255,255,255,0.1); }
.bglight-opacity-20 { background-color: rgba(255,255,255,0.2); }
.bglight-opacity-30 { background-color: rgba(255,255,255,0.3); }
.bglight-opacity-40 { background-color: rgba(255,255,255,0.4); }
.bglight-opacity-50 { background-color: rgba(255,255,255,0.5); }
.bglight-opacity-60 { background-color: rgba(255,255,255,0.6); }
.bglight-opacity-70 { background-color: rgba(255,255,255,0.7); }
.bglight-opacity-80 { background-color: rgba(255,255,255,0.8); }
.bglight-opacity-90 { background-color: rgba(255,255,255,0.9); }

.debug{ color:#fff; background-color: rgba(0,0,0,0.7); padding:10px; margin: 100px 30px 0 30px}

.my-warning {
  color: #fb0;
}

/* --- Paginazione (Bootstrap) --- */
.page-item, .page-link{
  color: #666 !important;
}
.page-item.active, .page-link.active{
  background-color: #eab308 !important;
  border-color: #eab308 !important;
  color: #000 !important;
}

btn:focus, a:focus {
  outline: none;
}

/* --- Navbar migliorata --- */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 1030;
}
/* Menu collassato sopra a tutto */
.navbar .navbar-collapse {
  z-index: 1031;
  position: relative;
}
.navbar .btn-outline-primary {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s ease;
  border-width: 1.5px;
}
.navbar .btn-outline-primary.active,
.navbar .btn-outline-primary:focus {
  box-shadow: 0 2px 8px rgba(13,110,253,0.2);
}
.navbar .btn-danger {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
}
.navbar .dropdown-menu {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px;
}
.navbar .dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  transition: background-color 0.12s;
}
.navbar .dropdown-item:hover {
  background-color: #f1f5f9;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none;
}

.text-shadow{
  text-shadow: 1px 1px 3px #000;
}

.contentBox {
  box-sizing: content-box;
}

.debugNote {
  font-family: arial, sans-serif;
  font-size: 10px;
  color: #aaa;
}

.footer {
  text-align: center;
  color: #999;
  font-size: 10px;
}

.date_selector {
  width: 120px;
  text-align: center;
}

.not-visible {
  visibility: hidden !important;
}

.dt-paging-button.current {
  background-color: #eab308 !important;
}

a i:hover {
  color:#c00 !important;
}

.custom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
}

/* --- User selector bar --- */
.user.small {
  font-size: 11px;
  color: rgba(0,0,0,0.5);
}
.user.small select.selectusers {
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  font-size: 11px;
  background: #fff;
}

/* =============================================
   MOBILE RESPONSIVE - LAYOUT GLOBALE
   ============================================= */

@media (max-width: 992px) {
  /* Navbar items piu' spaziati su tablet */
  .navbar .navbar-nav .nav-item {
    margin-bottom: 2px;
  }
  .navbar .btn-outline-primary,
  .navbar .btn-danger {
    font-size: 13px;
    padding: 6px 10px !important;
  }
}

@media (max-width: 768px) {
  /* Modal full-width su mobile */
  .modal-xxl {
    max-width: 98vw;
    width: 98vw;
    margin: 4px auto;
  }
  .modal-dialog {
    margin: 8px !important;
    max-width: calc(100vw - 16px) !important;
  }
  .modal-content {
    border-radius: 12px;
  }

  /* Navbar sopra a tutto il contenuto */
  .navbar {
    padding: 8px 12px !important;
    position: sticky !important;
    top: 0;
    z-index: 1030 !important;
  }
  /* Contenuto sotto la navbar non copre il menu */
  .container-fluid {
    position: relative;
    z-index: 1;
  }
  .navbar .collapse.show,
  .navbar .collapsing {
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    padding: 10px;
    margin-top: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1035;
  }
  .navbar .navbar-nav .nav-item {
    margin: 2px 0;
  }
  .navbar .btn-outline-primary,
  .navbar .btn-danger {
    font-size: 14px;
    padding: 10px 14px !important;
    text-align: left;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 8px;
  }
  .navbar .dropdown-item {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* User selector: full width */
  .user.small {
    position: relative !important;
    text-align: center !important;
    padding: 6px 12px !important;
    font-size: 12px;
  }
  .user.small select.selectusers {
    font-size: 13px;
    padding: 4px 8px;
    max-width: 100%;
  }

  /* Container senza padding laterale */
  .container-fluid {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Content box: bordi ridotti */
  .bgdark-opacity-50.rounded {
    border-radius: 8px !important;
    margin: 0 2px !important;
  }

  /* Footer compatto */
  .footer {
    font-size: 9px;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .navbar .btn-outline-primary,
  .navbar .btn-danger {
    font-size: 13px;
    padding: 8px 10px !important;
  }
  .navbar .dropdown-item {
    font-size: 13px;
    padding: 8px 10px;
  }
  .user.small {
    font-size: 11px;
  }
}