body {
    background: #f9f9f9;
    font-family: 'Segoe UI', sans-serif;
}
.unibg,
.card-header,
.footer,
.sidebar {
    background: #1a252f;
}
.page_top_notice {
  color: #444;
  border-bottom: solid 1px #e2c822;
  top:0px;
  padding: 5px 20px 4px;
  background: #fff9d7;
}
.navbar {
    padding: 8px 16px;
    margin-bottom: 10px;
}
.navbar-brand .logo {
    width: 120px;
    height: auto;
}
.navbar-nav .nav-link {
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 12px;
}
.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.profile-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
}
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.sidebar {
    color: #fff;
    width: 250px;
    padding: 20px;
    flex-shrink: 0;
}
.sidebar h4 {
    margin-bottom: 20px;
    font-weight: 600;
}
.sidebar a {
    color: #fff;
    display: block;
    margin: 10px 0;
    text-decoration: none;
    font-size: 1rem;
}
.sidebar a:hover {
    color: #F26522;
    text-decoration: underline;
}
.sidebar a.active {
    color: #F26522;
    font-weight: bold;
}
.sidebar .collapse a {
    font-size: 0.9rem;
    margin-left: 15px;
}
.dashboard {
    flex-grow: 1;
    padding: 30px;
    overflow-x: auto;
}
.alert-custom {
    font-weight: 600;
    border-radius: 0.5rem;
}
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-header {
    color: #fff;
    font-weight: 500;
}
.stat-box {
    text-align: center;
    background: #1a252f;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-right: 10px;
    flex: 1;
    font-size: 1.5rem;
    font-weight: bold;
}
.stat-box small {
    font-size: 0.85rem;
    font-weight: normal;
}

.stat-card {
      background: #fff;
      border-radius: 1rem;
      padding: 1.5rem;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
      width: 260px;
      transition: transform 0.2s ease-in-out;
    }

    .stat-card:hover {
      transform: translateY(-5px);
    }

    .stat-title {
      font-weight: 600;
      color: #222;
    }

    .stat-subtitle {
      font-size: 0.9rem;
      color: #6c757d;
      margin-bottom: 0.75rem;
    }

    .stat-value {
      font-size: 1.8rem;
      font-weight: 600;
      margin-right: 8px;
    }

    .stat-change {
      color: #0d6efd;
      font-weight: 600;
    }

    .btn-arrow {
      background-color: #f8f9fa;
      border: 1px solid #ddd;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .btn-arrow:hover {
      background-color: #0d6efd;
      color: #fff;
    }
.btn-primary {
    background-color: #F26522;
    border-color: #F26522;
}
.btn-primary:hover {
    background-color: #d2581e;
    border-color: #d2581e;
}
.iso-tooltip {
    cursor: help;
    margin-left: 5px;
    font-size: 0.85rem;
}
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; }
.badge-danger { background-color: #dc3545; }
.badge-secondary { background-color: #6c757d; }

.status-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.welder-status-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.details-toggle {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}
.details-row { display: none; }

.maintenance-btn .fa-wrench { color: #fff; }

.maintenance-modal .form-control,
.maintenance-modal .form-check-input {
    font-size: 0.9rem;
    padding: 0.3rem;
}
.maintenance-modal .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.maintenance-modal table {
    font-size: 0.85rem;
}
.maintenance-modal .modal-header {
    background-color: #003366;
}
.maintenance-modal th,
.maintenance-modal td {
    padding: 0.3rem;
}
.maintenance-modal .table-responsive {
    max-height: 200px;
    overflow: show;
}
.maintenance-modal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
}

.footer {
    margin-top: 10px;
    color: #fff;
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
}
footer {
    color: #666;
}
footer a {
    color: #003087;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
#label-preview {
    width: 300px;
    height: 150px;
    display: block;
    margin-bottom: 10px;
}

/* Simple timestamp improvements */
.timestamp-cell {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
}

.timestamp-cell:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Better change display */
.changes-diff p {
    margin: 6px 0;
    padding: 4px 8px;
    background: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 4px;
}

.changes-diff del {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
}

.changes-diff ins {
    background: #d4edda;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
    .maintenance-modal .modal-dialog {
        max-width: 100%;
    }
    .maintenance-modal .row > div {
        margin-bottom: 0.5rem;
    }
    .maintenance-modal .form-control,
    .maintenance-modal .form-check-input {
        font-size: 0.8rem;
    }
    .maintenance-modal .form-label {
        font-size: 0.8rem;
    }
    .maintenance-modal table {
        font-size: 0.75rem;
    }
    .maintenance-modal th,
    .maintenance-modal td {
        padding: 0.2rem;
    }
    .sidebar {
        width: 150px;
        padding: 15px;
    }
    .dashboard {
        padding: 15px;
    }
    .stat-box {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
        font-size: 1.2rem;
    }
}
