/* =========================================================
   Brand Variables & Utilities
   ========================================================= */
:root {
    --primary: #007236;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #e3342f;
    --light: #f8f9fa;
    --dark: #343a40;
}
.bg-green {
    background-color: #007236 !important;
}
.font-green {
    color: #007236 !important;
}

/* =========================================================
   Buttons
   ========================================================= */
/* --- Primary Button --- */
.btn-primary {
    color: #fff;
    background-color: #007236;
    border-color: #007236;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #00592a;
    border-color: #00592a;
    color: #fff;
}
.btn-primary:disabled, .btn-primary.disabled {
    color: #fff;
    background-color: #007236;
    border-color: #007236;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
/* --- Warning Button --- */
.btn-warning {
    color: #1f2d3d;
    background-color: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-warning:hover, .btn-warning:focus {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #1f2d3d;
}
.btn-warning:disabled, .btn-warning.disabled {
    color: #1f2d3d;
    background-color: #ffc107;
    border-color: #ffc107;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
/* --- Danger Button --- */
.btn-danger {
    color: #fff;
    background-color: #e3342f;
    border-color: #e3342f;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-danger:hover, .btn-danger:focus {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}
.btn-danger:disabled, .btn-danger.disabled {
    color: #fff;
    background-color: #e3342f;
    border-color: #e3342f;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
/* --- Info Button --- */
.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-info:hover, .btn-info:focus {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}
.btn-info:disabled, .btn-info.disabled {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
/* --- Default Button --- */
.btn-default {
    background-color: #f4f4f4;
    color: #444;
    border-color: #ddd;
}
.btn-default:hover, .btn-default:focus, .btn-default:active {
    background-color: #e7e7e7;
    color: #444;
    border-color: #ddd;
}
.btn-default:disabled, .btn-default.disabled {
    background-color: #f4f4f4;
    color: #444;
    border-color: #ddd;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
/* --- Success Button --- */
.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-success:hover, .btn-success:focus {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}
.btn-success:disabled, .btn-success.disabled {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
    opacity: 0.65;
    box-shadow: none;
    pointer-events: none;
}
.btn-link {
    font-weight: 400;
    color: #007236;
    background-color: transparent;
}

/* =========================================================
   Auth Pages (Login / Register / Reset / Forgot Password)
   ========================================================= */
/* Keep Spacious Custom Styling Only for Login, Register, Reset, and Forgot Password Pages */
.login-box .form-control {
    height: auto !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 0.25rem !important;
    border: 1px solid #ced4da !important;
    background-color: #e9ecef !important;
}
.login-box .form-control:focus {
    border-color: #76d33e !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 211, 62, 0.25) !important;
}

/* =========================================================
   Show Page Toolbar + Previous/Next (show.blade.php pattern)
   ========================================================= */
/* The action-buttons .col grows to fill the row by default, pushing the
   Previous/Next .dropdown onto its own line. Shrink it to content width
   and push Previous/Next to the far right on the same row instead. */
.row:has(.dropdown) {
    flex-wrap: nowrap !important;
}
.row:has(.dropdown) > .col {
    flex: 0 0 auto !important;
    width: auto !important;
}
.row:has(.dropdown) > .dropdown {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
}
