:root {
    --amsode-blue: #0099CC;
    --amsode-green: #99CC33;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-light: #f5f7fb;
    --white: #ffffff;
    --border: #e5e7eb;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}

a {
    text-decoration: none;
}

.topbar {
    height: 64px;
    background: linear-gradient(90deg, var(--amsode-blue), var(--amsode-green));
    color: white;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.logout-link {
    color: white;
    font-weight: 700;
}

.page {
    padding: 28px;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.dashboard-header p {
    margin: 0;
    color: var(--text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.card {
    background: var(--white);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    min-height: 130px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
}

.stat-blue {
    border-top: 5px solid var(--amsode-blue);
}

.stat-green {
    border-top: 5px solid var(--amsode-green);
}

.stat-warning {
    border-top: 5px solid var(--warning);
}

.stat-danger {
    border-top: 5px solid var(--danger);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: var(--amsode-blue);
    color: white;
}

.btn-secondary {
    background: var(--amsode-green);
    color: white;
}

.table-placeholder {
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    background: #fafafa;
}

.badge {
    display: inline-block;
    background: #e0f7ff;
    color: #036985;
    padding: 7px 12px;
    border-radius: 999px;
    margin: 4px 4px 4px 0;
    font-size: 13px;
    font-weight: 700;
}

.badge-green {
    background: #eff8d8;
    color: #4f7600;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(0, 153, 204, 0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(153, 204, 51, 0.18), transparent 35%),
        var(--bg-light);
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.login-logo {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--amsode-blue), var(--amsode-green));
    border-radius: 18px;
    margin-bottom: 20px;
}

.login-logo-img {
    width: 82px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 16px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.footer-note {
    margin-top: 22px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar {
        height: auto;
        padding: 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page {
        padding: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.section-separator {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border);
}

.info-box {
    background: #f0faff;
    border-left: 5px solid var(--amsode-blue);
    color: #075985;
    padding: 16px 18px;
    border-radius: 14px;
    margin: 14px 0 20px;
    line-height: 1.5;
}

.checkbox-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 18px;
    font-weight: 600;
    line-height: 1.45;
}

.checkbox-line input {
    width: auto;
    margin-top: 3px;
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.radio-group label {
    font-weight: 600;
}

.radio-group input {
    width: auto;
    margin-right: 6px;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

select.form-control {
    background: white;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    color: #374151;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
    padding: 13px 12px;
    white-space: nowrap;
}

.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 13px 12px;
    vertical-align: top;
}

.data-table tr:hover {
    background: #f9fafb;
}

.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f7ff;
    color: #036985;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.detail-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 18px;
    margin: 0;
}

.detail-list dt {
    font-weight: 800;
    color: #374151;
}

.detail-list dd {
    margin: 0;
    color: #111827;
}

.btn-danger {
    background: #dc2626;
    color: white;
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.btn-danger-active {
    background: #dc2626;
    color: white;
}

@media (max-width: 800px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}
