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;
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 14px;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #1f2937;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.btn-login {
    background-color: #2f5d34;
    border-color: #2f5d34;
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px;
}

    .btn-login:hover {
        background-color: #24492a;
        border-color: #24492a;
        color: #ffffff;
    }

.login-card .form-control {
    border-radius: 10px;
    padding: 10px 12px;
}
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
}

.sidebar {
    width: 260px;
    background: #1f2937;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-logo {
    width: 90px;
    height: auto;
    margin-bottom: 12px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-section {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.menu-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #f8fafc;
    text-decoration: none;
    transition: 0.2s ease;
}

    .menu-item:hover {
        background-color: #374151;
        color: #ffffff;
    }

.menu-child {
    padding-left: 20px;
    font-size: 0.95rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    color: #cbd5e1;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

    .content-topbar h4 {
        margin: 0;
        color: #1f2937;
        font-weight: 600;
    }

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 10px;
}

.topbar-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.topbar-value {
    font-size: 0.90rem;
    color: #111827;
}

.content-body {
    padding: 24px;
}
.organigrama-tree {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.org-node {
    margin-left: 22px;
    border-left: 2px solid #cbd5e1;
    padding-left: 14px;
    margin-bottom: 12px;
}

.org-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    display: inline-block;
    min-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.org-children {
    margin-top: 10px;
}