body {
    background: #f5f8fa;
    font-family: 'Roboto', 'Lato', 'Open Sans', Arial, sans-serif;
    min-height: 100vh;
}

/* Large, easy-to-tap buttons */
.btn, .form-control, select {
    min-height: 44px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* Error/success for medical context */
.alert-success {
    background-color: #e7f8ef;
    color: #388e3c;
}
.alert-danger, .alert-error {
    background-color: #ffe5e5;
    color: #e53935;
}

/* App bar logo tweaks */
.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Section headers */
h1, h2, h3 {
    color: #1976d2;
    margin-top: 1.5rem;
}

/* Forms */
.form-label {
    font-weight: 500;
    color: #37474f;
}

/* Responsive: Make forms 100% width on mobile */
@media (max-width: 600px) {
    main.container {
        max-width: 100% !important;
        padding: 0 5vw;
    }
    .form-control, .btn {
        width: 100%;
    }
    .navbar-brand span {
        font-size: 1.1rem;
    }
}

/* Disabled page overlay (for license expired/org invalid) */
.page-inactive {
    pointer-events: none;
    opacity: 0.5;
    position: relative;
}
.page-inactive::after {
    content: "Your organization is inactive or license expired.";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    background: #fffbe6;
    color: #b59f3b;
    border: 1px solid #ffe58f;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10;
}

.color-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #ccc;
}
tr.deleted {
    opacity: 0.4;
    text-decoration: line-through;
}

