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;
}

.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;
}

.dashboard-page {
    padding-bottom: 40px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border: 1px solid #e5eefb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

    .dashboard-hero h1 {
        font-weight: 800;
        letter-spacing: -.03em;
        margin-bottom: 6px;
    }

.dashboard-eyebrow {
    color: #1b6ec2;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-stat-card {
    display: block;
    height: 100%;
    padding: 22px;
    border-radius: 22px;
    color: #111827;
    text-decoration: none;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    transition: all .18s ease;
}

    .dashboard-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
        color: #111827;
    }

    .dashboard-stat-card span {
        color: #6b7280;
        font-size: .9rem;
    }

    .dashboard-stat-card strong {
        display: block;
        font-size: 2.3rem;
        line-height: 1.1;
        margin: 8px 0;
    }

    .dashboard-stat-card small {
        color: #6b7280;
    }

.stat-total {
    border-left: 5px solid #1b6ec2;
}

.stat-open {
    border-left: 5px solid #f59e0b;
}

.stat-resolved {
    border-left: 5px solid #16a34a;
}

.stat-critical {
    border-left: 5px solid #dc2626;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

    .dashboard-card-header h5 {
        margin: 0;
        font-weight: 800;
    }

    .dashboard-card-header p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: .9rem;
    }

.dashboard-bars {
    display: grid;
    gap: 18px;
}

.dashboard-bar-item span {
    color: #374151;
    font-weight: 600;
}

.dashboard-bar-item .progress {
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    margin-top: 8px;
}

.dashboard-bar-item .progress-bar {
    border-radius: 999px;
}

.priority-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .priority-grid div {
        padding: 18px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #edf2f7;
    }

    .priority-grid span {
        display: block;
        color: #6b7280;
        font-size: .9rem;
    }

    .priority-grid strong {
        font-size: 1.8rem;
    }

    .priority-grid .critical {
        background: #fff5f5;
        border-color: #fecaca;
    }

.dashboard-ring {
    width: 160px;
    height: 160px;
    margin-inline: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#16a34a 0deg, #16a34a calc(var(--value, 0) * 3.6deg), #e5e7eb 0deg);
    position: relative;
}

    .dashboard-ring::after {
        content: "";
        position: absolute;
        width: 118px;
        height: 118px;
        border-radius: 50%;
        background: #fff;
    }

.ring-value {
    position: relative;
    z-index: 1;
    text-align: center;
}

    .ring-value strong {
        display: block;
        font-size: 1.6rem;
    }

    .ring-value span {
        color: #6b7280;
    }

.quick-actions {
    display: grid;
    gap: 10px;
}

    .quick-actions a {
        text-decoration: none;
        padding: 14px 16px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        color: #1f2937;
        font-weight: 600;
    }

        .quick-actions a:hover {
            background: #eef5ff;
            color: #1b6ec2;
        }

.empty-state {
    padding: 32px;
    border-radius: 18px;
    background: #f8fafc;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions {
        width: 100%;
    }

        .dashboard-actions .btn {
            flex: 1;
        }
}

.stat-waiting {
    border-left: 5px solid #7c3aed;
}

.stat-action {
    border-left: 5px solid #ea580c;
}

.dashboard-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #1b6ec2, #60a5fa);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(27, 110, 194, .22);
}

.dashboard-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1b6ec2, #60a5fa);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 800;
}
.page-navigation-toolbar {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.04);
}

.org-unit-badge {
    display: inline-block;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #212529;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.875rem;
}
