/*
 * Classic theme, Laravel side: rules the Blade port needs on top of cmsa1's own CSS (Bootstrap 2.3.2 + main.css).
 *
 * 1. Port rules for markup cmsa1 builds differently.
 * 2. Bridge: the handful of Bootstrap 5 utility classes that arena views (and converted copies of them) use, given
 *    Bootstrap 2 equivalents, so a view that is not converted yet still lays out sensibly inside the classic layout.
 *    Not a full Bootstrap 5 port; anything bigger belongs in a classic view override.
 */

/* 1. Port ------------------------------------------------------------------------------------------------------- */

/* cmsa1 wraps every page in <form class="form-horizontal"> (Bootstrap 2: form { margin: 0 0 20px }); the port uses a
   div because the pages carry their own forms. */
.classic-page { margin: 0 0 20px; }

/* cmsa1 long text inputs carry style="width:90%" */
.controls .input-wide { width: 90%; }
.controls textarea.input-wide { height: 100px; }

/* classic datatable footer is rendered by Blade for server-side paging (pager links are real links here) */
.dataTables_paginate a { cursor: pointer; }
.dataTables_paginate a:not([href]) { cursor: default; }

/* 2. Bridge (Bootstrap 5 utilities -> Bootstrap 2 look) ------------------------------------------------------------ */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.float-end { float: right; } .float-start { float: left; }
.text-end { text-align: right; } .text-center { text-align: center; } .text-start { text-align: left; }
.fw-semibold, .fw-bold { font-weight: bold; } .fw-normal { font-weight: normal; }
.small, small { font-size: 85%; }
.text-danger { color: #b94a48; } .text-success { color: #468847; } .text-secondary { color: #999; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px !important; } .mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px !important; } .mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; } .mt-4 { margin-top: 24px !important; }
.ms-1 { margin-left: 4px; } .ms-2 { margin-left: 8px; } .me-1 { margin-right: 4px; } .me-2 { margin-right: 8px; }
.p-0 { padding: 0 !important; } .p-2 { padding: 8px; } .p-3 { padding: 16px; }
.w-100 { width: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.table-sm th, .table-sm td { padding: 4px 5px; }
.btn-sm { padding: 2px 10px; font-size: 11.9px; border-radius: 3px; }
.btn-outline-primary, .btn-outline-secondary { }
.alert-danger { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; }
.alert-warning { }
/* arena .row / .col-* grids: stack the columns (Bootstrap 2 uses .row-fluid / .spanN) */
.classic-page .row > [class*="col-"] { margin-bottom: 10px; }
.classic-page .row { margin-left: 0; }
/* arena label-over-control forms */
.form-label { display: block; font-weight: bold; }
.form-text { display: block; color: #999; font-style: italic; font-size: 11px; }
.form-check { padding-left: 20px; margin-bottom: 4px; }
.form-check-input { float: left; margin-left: -20px !important; }
/* arena cards: plain sections */
.card { margin-bottom: 15px; }
.card-header .card-title, .card-header h5 { font-family: georgia, times, serif; font-size: 22px; line-height: 30px; color: #5d160b; font-weight: normal; border-bottom: 1px solid #eee; margin: 0 0 10px; }
.card-body { padding: 0; }
.controls input[readonly].input-mini { background:#fff; color:#999; width:40px; }
.section-content table select { width: auto; }

/* --- public pages area --- */
/* cmsa1 main.css sets form { margin-bottom: 0 } after Bootstrap, so the page form has no bottom margin: every
   classic page sat 20px taller than cmsa1 above the footer. */
.classic-page { margin-bottom: 0; }
/* --- end public pages area --- */

/* public pages part 2: <x-classic.datatable> wraps its top row in a GET form (form.classic-dt-form), so classic's
   ".dataTables_wrapper>.row-fluid" rules (gray search/length bar, datatables.css) need the form step too */
.dataTables_wrapper>form.classic-dt-form>.row-fluid{background:#f5f5f5}
.dataTables_wrapper>form.classic-dt-form>.row-fluid>.span6{position:relative;padding-bottom:2px}
.dataTables_wrapper>form.classic-dt-form>.row-fluid .pagination{margin-bottom:0;margin-right:5px}
