/* IMED360 complete screen compositions — existing brand, existing controls, existing data. */
:root { --imed-space: 24px; --imed-control-height: 44px; --imed-panel-shadow: 0 6px 24px rgb(26 42 91 / 5%); }
.imed-app { font-size: 15px; color: var(--imed-text); }
.imed-app .content-wrapper { padding: 32px; background: #f3f7fc; }
.imed-app .main-header { min-height: 72px; padding-inline: 20px; gap: 16px; background: #fff; }
.imed-app .main-header > .navbar-nav { flex: 0 0 auto; }
.imed-topbar-brand { display: flex; align-items: baseline; color: var(--imed-navy); font-size: 20px; font-weight: 750; letter-spacing: -.7px; }
.imed-topbar-brand strong { color: var(--imed-blue); font-weight: 750; }
.imed-topbar-identity { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; padding-inline-start: 20px; border-inline-start: 1px solid var(--imed-border); font-size: 14px; font-weight: 600; color: var(--imed-navy); }
.imed-topbar-identity i { font-size: 27px; color: var(--imed-blue); }
.imed-app .main-sidebar { background: var(--imed-navy); }
.imed-app .brand-link { min-height: 72px; height: 72px; padding-inline: 22px; gap: 12px; }
.imed-app .brand-image { width: 40px; height: 40px; max-height: 40px; margin: 0; padding: 2px; border-radius: 9px; }
.imed-app .brand-text { font-size: 20px; font-weight: 700 !important; }
.imed-app .sidebar { padding-inline: 14px; }
.imed-app .sidebar .user-panel { padding-block: 20px !important; margin-bottom: 16px !important; }
.imed-app .sidebar .user-panel .info { padding: 0 8px; }
.imed-app .nav-sidebar > .nav-item { margin-bottom: 4px; }
.imed-app .nav-sidebar .nav-link { padding: 12px !important; font-size: 14px; border: 1px solid transparent; border-radius: 8px !important; }
.imed-app .nav-sidebar .nav-link.active { border-color: rgb(125 200 232 / 24%); }
.imed-app .nav-sidebar .nav-icon { width: 20px; margin-inline: 0 10px; opacity: .9; }
.imed-app .nav-treeview { margin-block: 4px 10px; margin-inline-start: 18px; }
.imed-app .nav-treeview .nav-link { padding: 9px 10px !important; font-size: 13px; }
.imed-app .nav-sidebar .menu-open > .nav-link:not(.active) { color: #fff; background: #ffffff0e; }
.imed-app .main-footer { min-height: 54px; background: #fff; padding-inline: 32px; }
.imed-page { padding-top: 0; }
.imed-page-heading { position: relative; padding-block: 4px 22px; margin-bottom: 24px; border-bottom: 1px solid #dce6f0; }
.imed-page-heading h1 { font-size: clamp(24px,2.2vw,30px); font-weight: 700; letter-spacing: -.035em; }
.imed-page-heading::before { content: ''; display: block; width: 4px; height: 27px; background: var(--imed-blue); border-radius: 4px; margin-inline-end: 12px; }
.imed-page-heading h1 { margin-inline-end: auto; }
.imed-page .imed-page-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.imed-page .imed-page-toolbar > br { display: none; }
.imed-page .imed-page-toolbar .btn { margin: 0; }
.imed-app .btn { min-height: 40px; border-radius: 7px; padding: 9px 16px; font-weight: 650; font-size: 14px; }
.imed-app .btn-primary { box-shadow: 0 3px 9px #2e6fb41a; }
.imed-app .btn-success { box-shadow: 0 3px 9px #19875412; }
.imed-app .btn-danger { box-shadow: none; }
.imed-app .btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.imed-app .btn:hover { filter: brightness(.97); }
.imed-app .btn:active { filter: brightness(.93); }
.imed-field-label { display: block; margin: 0 0 8px; color: var(--imed-navy); font-size: 13px; font-weight: 650; line-height: 1.4; text-align: start; }
.imed-app .imed-field-label + .form-control,.imed-app .imed-field-label + select { margin-top: 0; }
.imed-app .form-control,.imed-app .custom-select { min-height: var(--imed-control-height); height: auto; padding: 10px 12px; font-size: 14px; line-height: 1.5; background: #fbfdff; border-color: #d9e4f0; border-radius: 7px; }
.imed-app input.form-control::placeholder,.imed-app textarea.form-control::placeholder { color: #7c899f; opacity: 1; }
.imed-app .form-control:hover:not(:disabled):not(:focus) { border-color: #adbed3; }
.imed-app textarea.form-control { min-height: 120px; resize: vertical; }
.imed-app select.form-control[multiple] { min-height: 160px; }
.imed-app .select2-container--default .select2-selection--single { min-height: 44px; background: #fbfdff; border-color: #d9e4f0; }
.imed-app .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; font-size: 14px; }
.imed-app .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.imed-app .select2-container--default.select2-container--focus .select2-selection { border-color: var(--imed-blue); box-shadow: var(--imed-focus); }
.imed-app .select2-dropdown { border-color: var(--imed-border); box-shadow: var(--imed-panel-shadow); border-radius: 7px; }
.imed-app .select2-search__field { border-radius: 5px; }
.imed-form-panel { padding: 30px !important; border: 1px solid var(--imed-border); background: #fff; border-radius: 14px; box-shadow: var(--imed-panel-shadow); }
.imed-page--selector { max-width: 960px; }
.imed-panel-title { margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid var(--imed-border); text-align: start; font-size: 22px; font-weight: 700; color: var(--imed-navy); }
.imed-form-panel > div > div[align=center] { text-align: start; }
.imed-form-panel .modal-body { padding: 0; margin-bottom: 20px; }
.imed-form-panel .modal-body:has(>.form-control) { margin-bottom: 20px; }
.imed-form-panel form > br,.imed-form-panel .modal-body > br { display: block; line-height: 0; height: 8px; }
.imed-form-panel .modal-footer { display: flex; justify-content: flex-end; padding: 22px 0 0; margin-top: 26px; gap: 10px; border-top: 1px solid var(--imed-border); }
.imed-form-panel input[type=file].form-control { border: 1px dashed #b7cce1; background: #f4f9ff; padding: 12px; min-height: 58px; }
.imed-form-panel input[type=file]::file-selector-button { background: #fff; border: 1px solid var(--imed-border); padding: 7px 12px; color: var(--imed-blue); font-weight: 600; }
.imed-table-surface { width: 100%; min-width: 0; max-width: 100%; margin-block: 8px 24px; background: #fff; border: 1px solid var(--imed-border); border-radius: 12px; box-shadow: var(--imed-panel-shadow); overflow-x: auto; scrollbar-width: thin; }
.imed-table-surface > .dataTables_wrapper { padding: 18px 20px; border: 0; box-shadow: none; border-radius: 12px; overflow: visible; }
.imed-table-surface > table { margin-bottom: 0; }
.imed-app .table thead th { background: #edf4fc; color: var(--imed-navy); font-size: 12px; font-weight: 700; letter-spacing: .015em; padding: 15px 16px; border-bottom: 1px solid #dce6f0; border-top: 0; }
.imed-app .table tbody td { background: #fff; padding: 15px 16px; font-size: 14px; border-color: #e7eef6; }
.imed-app .table tbody tr:nth-child(even) td { background: #f9fbfe; }
.imed-app .table tbody tr:hover td { background: #f0f7ff; }
.imed-app .table-bordered td,.imed-app .table-bordered th { border-inline: 0; }
.imed-app .table tbody .btn { min-height: 32px; padding: 6px 10px; font-size: 12px; margin: 2px; }
.imed-app .table tfoot th { background: #f3f7fc; padding: 13px 16px; font-size: 13px; }
.imed-app .table .dataTables_empty { padding: 48px 20px; text-align: center; color: var(--imed-muted); }
.imed-app .dataTables_wrapper .row:first-child { padding-bottom: 14px; gap: 8px 0; }
.imed-app .dataTables_wrapper .row:last-child { padding-top: 14px; align-items: center; }
.imed-app .dataTables_wrapper .dataTables_length label,.imed-app .dataTables_wrapper .dataTables_filter label { font-size: 13px; color: var(--imed-muted); font-weight: 400; }
.imed-app .dataTables_wrapper .dataTables_filter input { border-color: var(--imed-border); border-radius: 7px; padding: 8px 12px; min-height: 38px; }
.imed-app .pagination { gap: 4px; }
.imed-app .page-link { min-width: 34px; text-align: center; border-radius: 6px !important; font-size: 13px; border-color: #e0e8f1; }
.imed-page--detail > table > tbody > tr { grid-template-columns: minmax(320px,.8fr) minmax(0,1.4fr); }
.imed-page--detail > table > tbody > tr > td:first-of-type { padding: 26px; box-shadow: var(--imed-panel-shadow); scrollbar-gutter: stable; }
.imed-page--detail > table > tbody > tr > td:last-of-type { padding: 20px; background: #e7eff8; border-color: #d5e1ef; }
.imed-page--detail form .row { margin-bottom: 20px; }
.imed-page--detail form .col-form-label { color: var(--imed-navy); font-size: 13px; font-weight: 600; }
.imed-page--detail form .row:last-child { padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--imed-border); }
.imed-page--detail form .row:last-child .btn { width: 100%; min-height: 44px; }
.imed-page--detail td img { box-shadow: 0 3px 12px #1a2a5b12; border: 1px solid #dce6f0; }
.imed-page--profile { max-width: 1140px; }
.imed-page--profile .card { overflow: hidden; border-color: #dce6f0; }
.imed-page--profile .card-header { padding: 14px 20px !important; background: #f9fbfe; }
.imed-page--profile .card-body { padding: 32px; }
.imed-page--profile .form-group { margin-bottom: 24px; }
.imed-page--profile .nav-pills .nav-link.active { background: #e8f4fc; color: var(--imed-blue); font-weight: 650; border-radius: 7px; }
.imed-page--dashboard { min-height: calc(100dvh - 210px); display: grid; align-content: center; position: relative; isolation: isolate; padding: 36px; border-radius: 18px; background: #eaf3fc; border: 1px solid #d7e5f4; overflow: hidden; }
.imed-page--dashboard::before { content: ''; position: absolute; z-index: -1; width: 460px; height: 460px; border: 1px solid #bfd9ef; border-radius: 50%; inset-block-start: -180px; inset-inline-end: -140px; box-shadow: 0 0 0 60px #e2effb,0 0 0 120px #edf5fc; }
.imed-page--dashboard > .center { width: min(75%,520px); padding: 38px; background: #fff; box-shadow: 0 15px 50px #1a2a5b0b; border: 1px solid #d8e5f1; border-radius: 18px; }
.imed-page--dashboard .imed-page-heading { border: 0; padding: 0; margin: 0; }
.imed-page--dashboard #subscriptionExpiryModal { isolation: auto; }
.imed-app .modal-content { border-radius: 14px; overflow: hidden; }
.imed-app .modal-header { padding: 20px 24px; background: #f7faff; border-bottom-color: var(--imed-border); }
.imed-app .modal-body { padding: 26px; }
.imed-app .modal-body .imed-field-label { margin-top: 4px; }
.imed-app .modal-footer { background: #fafcff; padding: 16px 24px; gap: 6px; }
.imed-app .modal-header .close { align-self: flex-start; padding: 4px 8px; margin: -4px -4px -4px auto; border-radius: 6px; }
.imed-app[dir=rtl] .modal-header .close { margin-inline: auto -4px; }
.imed-app .modal .form-group { margin-bottom: 22px; }
.imed-module--inbox .table td { line-height: 1.7; }
.imed-module--inbox textarea { min-height: 160px; }
.imed-module--users select[multiple],.imed-module--users .select2-selection--multiple { min-height: 120px; }
.imed-module--contract .table td a:not(.btn),.imed-module--statement .table td a:not(.btn) { display: inline-flex; align-items: center; padding: 5px 12px; background: #e8f4fc; color: var(--imed-blue); border-radius: 5px; font-weight: 600; }
.imed-page--settings { min-height: 190px; }
/* Public website: existing copy and imagery in a complete healthcare SaaS composition. */
.imed-public .site-header .bar { min-height: 88px; padding-block: 12px; }
.imed-public .hero { isolation: isolate; padding-block: 72px 48px; gap: 40px 56px; }
.imed-public .hero::before { content: ''; position: absolute; z-index: -1; inset-block: 0 70px; width: 100vw; inset-inline-start: 50%; transform: translateX(50%); background: #f0f7ff; border-bottom: 1px solid #e1ecf8; }
.imed-public[dir=ltr] .hero::before { transform: translateX(-50%); }
.imed-public .hero .intro h2 { margin-bottom: 24px; font-size: clamp(34px,3.9vw,54px); line-height: 1.35; letter-spacing: -.035em; }
.imed-public .hero .intro h2 span { color: var(--imed-blue); }
.imed-public .hero .intro > p { font-size: 18px; line-height: 1.95; max-width: 570px; color: #52617a; }
.imed-public .hero .actions { gap: 12px; margin-top: 28px; }
.imed-public .hero .actions .btn { min-height: 48px; padding-inline: 24px; }
.imed-public .hero > .imed-hero-media { padding: 12px; border: 1px solid #d0e2f5; border-radius: 22px; background: #fff; box-shadow: 0 18px 48px #1a2a5b0d; }
.imed-public .hero > .imed-hero-media .card-surface { border: 0; padding: 0; box-shadow: none; }
.imed-public .hero img { height: 370px !important; border-radius: 14px !important; }
.imed-capability-strip { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.imed-public .imed-capability-strip > .card-surface { padding: 0; border: 0; background: transparent; box-shadow: none; }
.imed-public .imed-capability-strip .product-list { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.imed-public .imed-capability-strip .product { display: flex; padding: 24px 18px; gap: 12px; background: #fff; border: 1px solid #dce8f4; border-radius: 12px; box-shadow: 0 4px 16px #1a2a5b05; }
.imed-public .imed-capability-strip .product i { width: 42px; height: 42px; flex-basis: 42px; background: #eaf4ff; color: var(--imed-blue); }
.imed-public .imed-capability-strip .product h4 { font-size: 16px; margin-bottom: 5px; }
.imed-public .imed-capability-strip .product p { font-size: 13px; line-height: 1.65; }
.imed-public .section-header h3 { font-size: 36px; letter-spacing: -.03em; }
.imed-public .section-header > p { font-size: 17px; line-height: 1.8; }
.imed-public #aboutUs { border-radius: 0; padding-block: 76px; }
.imed-public #aboutUs .card-surface { border: 1px solid #ffffff38; padding: 28px; border-radius: 12px; }
.imed-public #aboutUs .card-surface > i { display: inline-flex; width: 44px; height: 44px; justify-content: center; align-items: center; background: #e8f4fc; border-radius: 10px; font-size: 20px !important; }
.imed-public #aboutUs .card-surface h4 { font-size: 22px; margin-bottom: 10px; }
.imed-public #servicesHome { padding-block: 80px; background: #f4f8fd; border-radius: 0; }
.imed-public #servicesHome .card-surface { position: relative; padding: 32px; border: 1px solid #dce7f3; border-top: 3px solid var(--imed-blue); border-radius: 13px; }
.imed-public #servicesHome .card-surface > i { width: 52px; height: 52px; background: #e8f4fc; color: var(--imed-blue) !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 23px !important; }
.imed-public #servicesHome .card-surface .muted { color: #60718b; font-size: 16px; line-height: 1.8; }
.imed-public #servicesHome .card-surface .btn { margin-top: 8px; background: #f7fbff; }
.imed-public .client-card { padding: 24px; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.imed-public .client-logo { max-height: 100px; object-fit: contain; }
.imed-public #contactHome { border-radius: 0; padding-block: 70px; }
.imed-public .contact-card { padding: 32px 20px; background: #fff; border-color: #d6e5f4; }
.imed-public .contact-card h4 { font-size: 21px; color: var(--imed-navy); }
.imed-public .footer { padding-block: 32px; }
/* Authentication uses the same brand panel while preserving the original complete forms. */
.imed-auth.imed-auth-standalone { display: grid; grid-template-columns: minmax(300px,.95fr) minmax(400px,1.05fr); gap: 0; padding: 0; position: relative; isolation: isolate; }
.imed-auth.imed-auth-standalone::before { content: ''; position: fixed; inset-block: 0; inset-inline-start: 0; width: 47.5%; background: url('/img/imedlogo.jpg') center / 210px no-repeat,var(--imed-navy); z-index: -1; }
.imed-auth.imed-auth-standalone::after { content: ''; position: fixed; inset-inline-start: 6%; inset-block-start: 12%; width: 160px; height: 160px; border: 1px solid #ffffff1a; border-radius: 50%; box-shadow: 0 0 0 46px #ffffff05,0 0 0 92px #ffffff04; z-index: -1; pointer-events: none; }
.imed-auth.imed-auth-standalone > .box { grid-column: 2; width: min(440px,calc(100% - 64px)); max-width: 440px; margin: 40px 32px; justify-self: center; border-radius: 14px; box-shadow: 0 10px 40px #1a2a5b08; }
.imed-auth .bg-element { opacity: 0; pointer-events: none; }
.imed-auth .box > .container { padding: 40px; }
.imed-auth .top { margin-bottom: 30px; }
.imed-auth .logo { width: 88px; height: 88px; }
.imed-auth header { font-size: 29px; margin-bottom: 8px; }
.imed-auth .input-field { margin-bottom: 22px; }
.imed-auth .input-field:has(.imed-field-label) > i { top: 43px; }
.imed-auth .input-field .input { height: 48px; font-size: 14px; background: #f9fcff; }
.imed-auth .submit { min-height: 46px; font-weight: 650; font-size: 14px; }
.imed-auth .footer { padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--imed-border); font-size: 11px; }
.imed-auth #app > main:has(.imed-page--authentication) { position: relative; isolation: isolate; min-height: calc(100dvh - 72px); padding-inline: 44% 28px; }
.imed-auth #app > main:has(.imed-page--authentication)::before { content: ''; position: fixed; z-index: -1; inset-block: 72px 0; inset-inline-start: 0; width: 40%; background: url('/img/imedlogo.jpg') center / 190px no-repeat,var(--imed-navy); }
.imed-auth .imed-page--authentication { max-width: 560px; padding-block: 32px; }
.imed-auth .imed-page--authentication .imed-page-heading { border: 0; padding: 0; margin-bottom: 24px; }
.imed-auth .imed-page--authentication .imed-page-heading::before { display: none; }
.imed-auth .imed-page--authentication .imed-page-heading h1 { margin-inline: 0; font-size: 28px; }
.imed-auth .imed-page--authentication .card-body { padding: 30px; }
.imed-auth .imed-page--authentication form .row { margin-bottom: 20px !important; }
.imed-auth .imed-page--authentication .imed-auth-logo { width: 80px; margin-block: 0 24px; }
@media(min-width:1450px) {
 .imed-app .content-wrapper { padding: 36px 40px; }
 .imed-page--detail > table > tbody > tr { grid-template-columns: minmax(340px,.7fr) minmax(0,1.5fr); }
}
@media(max-width:1100px) {
 .imed-app .content-wrapper { padding: 24px; }
 .imed-page--detail > table > tbody > tr { grid-template-columns: minmax(280px,1fr) minmax(0,1.2fr); }
 .imed-public .hero { grid-template-columns: 1fr 1fr; gap: 32px; }
 .imed-public .hero .intro h2 { font-size: 40px; }
 .imed-public .hero img { height: 340px !important; }
 .imed-public .imed-capability-strip .product { padding: 20px 12px; flex-direction: column; align-items: flex-start; }
}
@media(max-width:900px) {
 .imed-public .hero { grid-template-columns: 1fr; padding-block: 40px; }
 .imed-public .hero::before { inset-block-end: 50px; }
 .imed-public .hero > .imed-hero-media { max-width: 600px; width: 100%; justify-self: center; }
 .imed-public .imed-capability-strip .product-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .imed-public .imed-capability-strip .product { flex-direction: row; align-items: center; padding: 20px; }
 .imed-auth.imed-auth-standalone { display: flex; padding: 28px 20px; }
 .imed-auth.imed-auth-standalone::before,.imed-auth.imed-auth-standalone::after { display: none; }
 .imed-auth.imed-auth-standalone > .box { width: min(100%,440px); margin: 0; }
 .imed-auth #app > main:has(.imed-page--authentication) { padding-inline: 20px; }
 .imed-auth #app > main:has(.imed-page--authentication)::before { display: none; }
}
@media(max-width:767.98px) {
 .imed-app .content-wrapper { padding: 20px 14px; }
 .imed-app .main-header { min-height: 64px; padding-inline: 10px; gap: 8px; }
 .imed-topbar-identity { padding-inline-start: 12px; font-size: 12px; gap: 7px; }
 .imed-topbar-brand { font-size: 18px; }
 .imed-form-panel { padding: 22px 18px !important; }
 .imed-page-heading { margin-bottom: 20px; padding-bottom: 18px; }
 .imed-page--detail > table > tbody > tr { display: flex; }
 .imed-page--detail > table > tbody > tr > td:first-of-type { padding: 22px; }
 .imed-page--detail > table > tbody > tr > td:last-of-type { padding: 12px; }
 .imed-page--profile .card-body { padding: 24px 20px; }
 .imed-table-surface > .dataTables_wrapper { padding: 14px; }
 .imed-page--dashboard { min-height: 55vh; padding: 20px; }
 .imed-page--dashboard > .center { width: 100%; padding: 24px; }
 .imed-app .main-footer { padding-inline: 16px; }
 .imed-app .modal-dialog { max-width: calc(100% - 24px); margin: 12px; }
 .imed-app .modal-body { padding: 20px; }
}
@media(max-width:540px) {
 .imed-public .site-header .bar { min-height: 78px; }
 .imed-public .hero .intro h2 { font-size: 33px; }
 .imed-public .hero .intro > p { font-size: 16px; }
 .imed-public .hero img { height: 260px !important; }
 .imed-public .imed-capability-strip .product { padding: 18px 12px; gap: 10px; align-items: flex-start; flex-direction: column; }
 .imed-public .imed-capability-strip .product h4 { font-size: 15px; }
 .imed-public .imed-capability-strip .product p { font-size: 12px; }
 .imed-public .imed-capability-strip .product i { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
 .imed-public #aboutUs,.imed-public #servicesHome,.imed-public #contactHome { padding-block: 48px; }
 .imed-public .section-header h3 { font-size: 29px; }
 .imed-public .section-header > p { font-size: 15px; }
 .imed-public .client-card { padding: 16px; min-height: 115px; }
 .imed-public .client-logo { max-height: 80px; }
 .imed-auth .box > .container { padding: 32px 24px; }
 .imed-auth .imed-page--authentication .card-body { padding: 26px 22px; }
}
@media print {
 .imed-app .content-wrapper { background: #fff; padding: 0; }
 .imed-topbar-brand,.imed-topbar-identity { display: none; }
 .imed-table-surface { overflow: visible; box-shadow: none; border-radius: 0; }
 .imed-page--detail > table > tbody > tr > td:first-of-type { position: static !important; height: auto !important; overflow: visible !important; }
}
.imed-field { min-width: 0; width: 100%; text-align: start; }
.imed-field > .select2-container { width: 100% !important; max-width: 100%; }
.imed-field .invalid-feedback { margin-top: 7px; font-size: 12px; }
.imed-form-panel form:has(> .modal-body ~ .modal-body) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.imed-form-panel form:has(> .modal-body ~ .modal-body) > .modal-body { margin: 0; }
.imed-form-panel form:has(> .modal-body ~ .modal-body) > br { display: none; }
.imed-form-panel form:has(> .modal-body ~ .modal-body) > .modal-footer { grid-column: 1 / -1; margin-top: 0; }
.imed-form-panel .modal-body:has(> div ~ div) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.imed-form-panel .modal-body:has(> div ~ div) > br { display: none; }
.imed-form-panel .modal-body > div:has(textarea) { grid-column: 1 / -1; }
.imed-form-panel .modal-body .imed-field-label { margin-top: 0; }
.imed-form-panel .modal-body > div[style*="margin"] { margin-inline: 0 !important; }
.imed-form-panel .modal-body > div > br { display: none; }
.imed-public main { overflow-x: clip; }
@media(max-width:767.98px) {
 .imed-form-panel form:has(> .modal-body ~ .modal-body),.imed-form-panel .modal-body:has(> div ~ div) { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
.imed-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; color: #45607e; background: #edf3f8; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.imed-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.imed-status[data-status="مقبولة"],.imed-status[data-status="مسددة"],.imed-status[data-status="Paid"],.imed-status[data-status="Approved"] { color: #16846b; background: #e7f6ef; }
.imed-status[data-status="معلقة"],.imed-status[data-status="تحتاج موافقة"],.imed-status[data-status="Pending"] { color: #a76517; background: #fff4df; }
.imed-status[data-status="مرفوضة"],.imed-status[data-status="محذوفة"],.imed-status[data-status="Rejected"] { color: #b44051; background: #fcedf0; }
.imed-app .form-check-input,.imed-app input[type=checkbox],.imed-app input[type=radio] { accent-color: var(--imed-blue); }
.imed-app .form-control.is-invalid { border-color: #dc3545; }
.imed-app .form-control.is-invalid:focus { box-shadow: 0 0 0 3px #dc35451a; }
.imed-app .form-control.is-valid { border-color: #198754; }
.imed-app .form-control[readonly]:hover { border-color: var(--imed-border); }
.imed-app.sidebar-collapse .brand-link { padding-inline: 16px; }
.imed-topbar-identity { min-width: 0; }
.imed-topbar-identity > span { overflow-wrap: anywhere; }
@media(max-width:575.98px) {
 .imed-topbar-identity { max-width: 58%; }
}

/* Keep selector spacing independent of dialog padding, and long content reachable. */
.imed-app .imed-form-panel .modal-body { padding: 0; }
.imed-app .imed-form-panel .modal-footer { padding: 22px 0 0; background: transparent; }
.imed-app .modal-dialog-scrollable .modal-body { overscroll-behavior: contain; }
.imed-app .modal .select2-container { max-width: 100%; }
.imed-app .imed-table-surface:focus-within { border-color: #a9c5e2; }
.imed-auth .input:focus-visible { outline: 0; border-color: var(--imed-blue); box-shadow: var(--imed-focus); }
.imed-app .nav-sidebar .nav-link p { white-space: normal; overflow-wrap: anywhere; }
.imed-app .nav-sidebar .nav-link { min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
 .imed-public *, .imed-auth *, .imed-app * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
 .imed-public .fade-in { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
 .imed-app .modal-dialog { margin: 12px; }
 .imed-app .modal-header,.imed-app .modal-body { padding: 18px; }
 .imed-app .modal-footer { padding: 14px 18px; }
 .imed-app .modal-footer .btn { flex: 1 1 auto; }
 .imed-app .imed-form-panel { padding: 22px 18px !important; }
}
