html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  min-height: 100vh;
  margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Sidebar Layout */
.sidebar { width: 260px; background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); height: 100vh; position: fixed; left: 0; top: 0; display: flex; flex-direction: column; box-shadow: 4px 0 15px rgba(0,0,0,0.1); z-index: 50; transition: all 0.3s; overflow: hidden; }
.sidebar-content { flex: 1; overflow-y: auto; padding: 20px 0; }
.sidebar-content::-webkit-scrollbar { width: 6px; }
.sidebar-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.sidebar.collapsed { width: 80px; }
.sidebar.collapsed .sidebar-brand img, .sidebar.collapsed .nav-link span { display: none; }
.sidebar.collapsed .sidebar-brand { justify-content: center; padding: 15px 10px; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 14px 10px; }
.sidebar-brand { padding: 15px 25px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.sidebar-brand img { width: 120px; height: auto; }
.sidebar-toggle { position: fixed; left: 15px; top: 20px; background: #0a4dc0; border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.sidebar-toggle i { color: white; font-size: 16px; }
.nav-link { color: rgba(255,255,255,0.7); padding: 14px 25px; display: flex; align-items: center; gap: 12px; transition: all 0.3s; border-radius: 0; text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-category { color: rgba(255,255,255,0.4); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; padding: 15px 25px 5px; font-weight: 600; }
.sidebar.collapsed .nav-category { display: none; }
.sidebar.collapsed .sidebar-content::-webkit-scrollbar { display: none; }
.nav-link.active { background: linear-gradient(90deg, #0dcaf0 0%, #0aa2c0 100%); color: #fff; border-left: 4px solid #fff; }
.nav-link i { font-size: 1.2rem; width: 24px; text-align: center; }
.main-content { margin-left: 260px; padding: 20px; min-height: 100vh; background: #f8f9fa; position: relative; transition: margin-left 0.3s; }
.main-content.expanded { margin-left: 80px; }
.main-content::before { content: ""; position: fixed; top: 50%; left: calc(260px + 50%); transform: translate(-50%, -50%); width: 1200px; height: 1200px; background-image: url("/images/logo.png?v=3"); background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.5; pointer-events: none; z-index: 0; transition: left 0.3s; }
.main-content.expanded::before { left: calc(80px + 50%); }
.main-content > * { position: relative; z-index: 1; }
.content-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.mobile-header { display: none; background: #1a1a2e; padding: 10px 15px; position: fixed; top: 0; left: 0; right: 0; z-index: 99; }
.mobile-menu-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-header h5 { margin: 0; color: white; }
.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.overlay.show { display: block; }
@media (max-width: 768px) { 
    .sidebar { transform: translateX(-100%); z-index: 1000; } 
    .sidebar.show { transform: translateX(0); } 
    .main-content { margin-left: 0; padding-top: 60px; } 
    .sidebar-toggle { display: none; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; }
    .main-content::before { left: 50%; }
}
body.modal-open { overflow: auto !important; }

/* Estilos para Panel de Entregas */
.entrega-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e0e0e0;
}

.entrega-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.entrega-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
}

.entrega-body {
  padding: 16px;
}

.entrega-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.entrega-info i {
  width: 20px;
  margin-right: 8px;
  color: #6c757d;
  flex-shrink: 0;
}

.entrega-info span {
  color: #495057;
  font-size: 0.9rem;
  word-break: break-word;
}

.entrega-footer {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
  background-color: #f8f9fa;
}

.entrega-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.nav-pills .nav-link {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
}

.nav-pills .nav-link .badge {
  margin-left: 6px;
  font-size: 0.75rem;
}

.entrega-total {
  font-size: 1.1rem;
  font-weight: 600;
}

.cliente-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cliente-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Estilos para las tablas de datagrid */
.table-responsive-custom {
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  min-width: 1000px;
  table-layout: fixed;
}

.table-custom th,
.table-custom td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}