/* Custom styles for the Details page */

/* Consistent card styling for all sections */
.tab-pane .card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.tab-pane .card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.tab-pane .card-body {
    padding: 1.25rem;
}

/* Consistent table styling */
.tab-pane .table {
    margin-bottom: 0;
    width: 100%;
}

.tab-pane .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom-width: 2px;
    padding: 0.75rem;
}

.tab-pane .table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Disable fixed height - let each card have its natural height */
/* Following the user's preference to keep everything stacked vertically */

/* Consistent headers */
.tab-pane .card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

/* Consistent buttons in tables */
.tab-pane .table .btn {
    margin: 0.1rem;
}

.tab-pane .table-responsive {
    min-height: auto;
    overflow-x: auto;
}

/* View-only indicator styling */
.view-only-indicator {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Consistent form styling */
.tab-pane form .form-group {
    margin-bottom: 1rem;
}

.tab-pane form label {
    font-weight: 500;
}

/* Consistent modal styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Make all tables in osobno and poslovno tabs consistent */
#osobno .table, #poslovno .table {
    border-collapse: collapse;
    font-size: 0.9rem;
}

#osobno .table th, #poslovno .table th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

#osobno .table-striped tbody tr:nth-of-type(odd),
#poslovno .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Consistent action buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.765625rem;
}

/* Consistent card headers */
#osobno .card-title, #poslovno .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

/* Ensuring cards have same corner radius */
#osobno .card, #poslovno .card {
    border-radius: 0.5rem;
    overflow: hidden;
}
