/* Basic OfficeOps Portal UI
   Minimal, clean layout inspired by modern SaaS dashboards
*/

.officeops-portal {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}

.officeops-portal--loggedout {
    text-align: center;
}

.officeops-alert {
    padding: 10px 12px;
    border-radius: 8px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
    margin-bottom: 15px;
    font-size: 13px;
}

.officeops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.officeops-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.officeops-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-weight: 600;
    font-size: 18px;
}

.officeops-user-name {
    font-weight: 600;
}

.officeops-user-email {
    font-size: 12px;
    color: #6b7280;
}

.officeops-user-dept .officeops-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #e0f2fe;
    color: #0369a1;
}

.officeops-quickstats {
    display: flex;
    gap: 16px;
}

.officeops-stat {
    padding: 10px 14px;
    border-radius: 10px;
    background: #f9fafb;
    min-width: 90px;
}

.officeops-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.officeops-stat-value {
    font-size: 18px;
    font-weight: 600;
}

.officeops-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-top: 10px;
}

.officeops-sidebar {
    border-right: 1px solid #e5e7eb;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.officeops-tab-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}

.officeops-tab-btn:hover {
    background: #f3f4f6;
}

.officeops-tab-btn.is-active {
    background: #111827;
    color: #ffffff;
}

.officeops-content {
    padding-left: 5px;
}

.officeops-tab {
    display: none;
}

.officeops-tab.is-active {
    display: block;
}

.officeops-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.officeops-list-item {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    background: #f9fafb;
}

.officeops-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.officeops-item-meta {
    font-size: 12px;
    color: #6b7280;
}

.officeops-subtitle {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}

.officeops-form {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.officeops-form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.officeops-form-row label {
    font-size: 13px;
    font-weight: 500;
}

.officeops-form-row input[type="text"],
.officeops-form-row input[type="email"] {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.officeops-form-help {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.officeops-btn-primary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.officeops-btn-primary:hover {
    background: #020617;
}

/* Responsive */
@media (max-width: 768px) {
    .officeops-portal {
        padding: 16px;
        margin: 15px auto;
    }
    .officeops-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .officeops-layout {
        grid-template-columns: 1fr;
    }
    .officeops-sidebar {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        overflow-x: auto;
    }
    .officeops-tab-btn {
        white-space: nowrap;
    }
}
