/*!
 * Custom spacing overrides for KTN Accounting ERP
 * Applies globally to tighten vertical rhythm across the application.
 */

/* General line-height adjustments */
body,
p,
li,
a,
label,
.form-label {
    line-height: 1.4;
}

body {
    background-color: #f4f6f9;
}

[data-bs-theme="dark"] body {
    background-color: #151521;
    color: #e1e3ea;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu {
    background-color: rgba(31, 31, 47, 0.95);
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .table thead th {
    color: #f5f5f5;
}

[data-bs-theme="dark"] .table tbody td {
    color: #d9d9e5;
}

[data-bs-theme="dark"] .btn {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .breadcrumb .breadcrumb-item,
[data-bs-theme="dark"] .list-group .list-group-item {
    color: #d9d9e5;
}

/* Reduce default Bootstrap row gutters */
.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.75rem;
}

/* Compact table rows */
.table > :not(caption) > * > * {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.table thead th,
.table tbody td {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    line-height: 1.3;
}

.table thead tr,
.table tbody tr {
    border-spacing: 0;
}

/* Tighten menu and navigation links */
.menu .menu-item > .menu-link,
.menu .menu-sub .menu-item > .menu-link,
.nav .nav-link,
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    line-height: 1.35;
}

.menu .menu-item > .menu-link,
.menu .menu-sub .menu-item > .menu-link,
.nav .nav-link {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Compact link lists */
.list-group .list-group-item,
.breadcrumb .breadcrumb-item {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    line-height: 1.35;
}

/* Compact button sizing */
.btn {
    padding: 0.45rem 1rem;
    line-height: 1.2;
    border-radius: 0.55rem;
    font-size: 0.95rem;
}

.btn-sm,
.btn.btn-sm {
    padding: 0.35rem 0.75rem;
    line-height: 1.2;
    font-size: 0.9rem;
}

