:root {
    --header-blue: #9ed6f2;
    --nav-height: 30px;
}

body {
    background: #f1f3f5;
    color: #212529;
}

.app-header {
    background: var(--header-blue);
    border-bottom: 1px solid #79b8d7;
}

.app-title {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    padding-top: 8px;
}

.app-meta {
    font-size: 14px;
    line-height: 1.25;
}

.app-author {
    text-align: right;
    font-size: 14px;
    padding-bottom: 7px;
}

.app-nav {
    padding: 4px 0;
    background: rgba(0, 0, 0, .08);
}

.nav-button {
    height: 30px;
    min-width: 105px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nav-button:hover {
    color: white;
    filter: brightness(1.15);
}

.nav-sr {
    background: #064a87;
}

.nav-home {
    background: #111;
}

.nav-cabinets {
    background: #238636;
}

.cabinet-card,
.card {
    border-radius: 10px;
    overflow: hidden;
}

.cabinet-code {
    font-size: 1.4rem;
    color: #0d6efd;
}

.drawer-grid {
    display: grid;
    gap: 7px;
    overflow-x: auto;
}

.drawer-box {
    min-height: 66px;
    padding: 5px;
    border: 1px solid #adb5bd;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #212529;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}

.drawer-box:hover {
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.drawer-box i {
    font-size: 18px;
}

.drawer-box.empty {
    background: #fff;
}

.drawer-box.filled {
    background: #c8f7d0;
    border-color: #72c77d;
}

.drawer-box.blocked {
    background: #ffc9c9;
    border-color: #e57373;
}

.search-form {
    max-width: 420px;
    width: 100%;
}

.compact-label {
    font-size: .75rem;
    margin-bottom: 2px;
}

.short-input {
    max-width: 80px;
}

.icon-button {
    border: 0;
    background: transparent;
    padding: 2px 6px;
    font-size: 1.15rem;
    line-height: 1;
}

.save-icon {
    color: #198754;
}

.edit-icon {
    color: #0d6efd;
    text-decoration: none;
}

.delete-icon {
    color: #dc3545;
}

.icon-button:hover {
    filter: brightness(.75);
}

@media (max-width: 576px) {
    .app-title {
        font-size: 18px;
    }

    .app-meta,
    .app-author {
        font-size: 12px;
    }

    .nav-button {
        flex: 1 1 30%;
        min-width: 0;
    }

    .drawer-box {
        min-height: 58px;
        font-size: 9px;
    }
}
