﻿.btn-xs {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
    min-width: 30px;
    height: 30px;
    line-height: 22px;
}

.table td {
    vertical-align: middle;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 13px;
}

/* ===========================
   Professional Grid Buttons
=========================== */

.table td,
.table th {
    vertical-align: middle;
}

.table .btn {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 6px;
}

.table .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/*==========================================
    SkillERP Enterprise Theme
==========================================*/

body {
    background: #f4f6f9;
    font-size: 14px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header */

.content-header {
    padding: 15px 20px;
}

    .content-header h3 {
        font-size: 24px;
        font-weight: 600;
        color: #2c3e50;
    }

/* Cards */

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    font-weight: 600;
    font-size: 16px;
}

.card-footer {
    background: #ffffff;
}

/* Buttons */

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-success {
    background: #16a34a;
}

.btn-warning {
    color: #fff;
}

.btn-danger {
    background: #dc2626;
}

/* Card header actions: every master/form page uses these actions on a blue
   header, so keep the buttons readable instead of inheriting white header text. */
.card.card-primary > .card-header .card-tools,
.card-header.bg-primary .card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.card.card-primary > .card-header .card-tools .btn,
.card-header.bg-primary .card-tools .btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .9);
    color: #173b8f !important;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(7, 28, 77, .2);
}

.card.card-primary > .card-header .card-tools .btn:hover,
.card-header.bg-primary .card-tools .btn:hover {
    background: #eaf2ff;
    border-color: #ffffff;
    color: #0f2d72 !important;
    transform: translateY(-1px);
}

.card.card-primary > .card-header .card-tools .btn:focus-visible,
.card-header.bg-primary .card-tools .btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}

.card.card-primary > .card-header .card-tools .btn:disabled,
.card.card-primary > .card-header .card-tools .btn.disabled,
.card-header.bg-primary .card-tools .btn:disabled,
.card-header.bg-primary .card-tools .btn.disabled {
    background: #dce4f3;
    border-color: #dce4f3;
    color: #6c7890 !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 575.98px) {
    .card.card-primary > .card-header .card-tools,
    .card-header.bg-primary .card-tools {
        clear: both;
        margin-top: 10px;
        justify-content: flex-start;
    }
}

/* Forms */

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #d9dee7;
    height: 40px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #2563eb;
        box-shadow: none;
    }

/* Labels */

label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Tables */

.table {
    margin-bottom: 0;
}

    .table thead th {
        background: #f8fafc;
        color: #374151;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }

    .table tbody tr:hover {
        background: #f5f9ff;
    }

/* Badges */

.badge-success {
    background: #16a34a;
}

.badge-danger {
    background: #dc2626;
}

/* Sidebar */

.main-sidebar {
    background: #1f2937 !important;
}

.nav-sidebar .nav-link {
    color: #d1d5db;
    border-radius: 6px;
    margin: 2px 10px;
}

    .nav-sidebar .nav-link:hover {
        background: #2563eb;
        color: white;
    }

    .nav-sidebar .nav-link.active {
        background: #2563eb;
        color: white;
    }

/* Navbar */

.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Footer */

.main-footer {
    font-size: 13px;
    text-align: center;
}

/* Sidebar Section Headings */
.nav-header {
    color: #9ca3af !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    padding-left: 15px;
}

.nav-sidebar .nav-link {
    padding: 10px 15px;
    font-size: 14px;
}

    .nav-sidebar .nav-link p {
        margin: 0;
    }

    /* Active Sidebar */

    .nav-sidebar .nav-link.active {
        background: #2563eb !important;
        color: #fff !important;
        border-radius: 6px;
    }

.menu-open > .nav-link {
    background: #1e40af !important;
    color: #fff !important;
}

.nav-treeview .nav-link {
    padding-left: 30px;
}
