/* Theme for app and guest pages (non-login) */
*{
box-sizing:border-box;
}

body.app-shell{
margin:0;
padding:0;
font-family:"Figtree", Arial, Helvetica, sans-serif;
color:#1f2937;
background:#eef3fb;
position:relative;
min-height:100vh;
overflow-x:hidden;
--sysmed-card-radius:22px;
--sysmed-card-shadow:0 18px 38px rgba(15,23,42,0.10);
--sysmed-card-shadow-hover:0 24px 48px rgba(15,23,42,0.14);
--sysmed-card-border:rgba(77,163,255,0.14);
--sysmed-input-height:46px;
--sysmed-btn-primary-start:#2f89e0;
--sysmed-btn-primary-end:#4da3ff;
--sysmed-btn-primary-shadow:rgba(47,137,224,0.28);
--sysmed-btn-secondary-bg:#ffffff;
--sysmed-btn-secondary-border:#d4e1f2;
--sysmed-btn-secondary-text:#1e3a5f;
--sysmed-btn-danger-start:#dc4c64;
--sysmed-btn-danger-end:#f87171;
--sysmed-btn-danger-shadow:rgba(220,76,100,0.24);
--sysmed-btn-radius:14px;
--sysmed-btn-height:44px;
--glass-bg:rgba(255,255,255,0.72);
--glass-border:rgba(255,255,255,0.58);
--glass-blur:blur(22px) saturate(1.55);
--glass-shadow:0 26px 70px rgba(15,23,42,0.26), inset 0 1px 0 rgba(255,255,255,0.58);
--text-primary:#0f172a;
--text-secondary:#475569;
}

html, body.app-shell{
width:100%;
min-height:100%;
}

/* Soft gradient + pattern */
body.app-shell::before{
content:"";
position:fixed;
inset:0;
z-index:-1;
background:
radial-gradient(600px 400px at 10% 0%, rgba(77,163,255,0.20), transparent 60%),
radial-gradient(700px 500px at 90% 10%, rgba(46,139,192,0.18), transparent 60%),
linear-gradient(180deg, #eef3fb 0%, #f8fbff 60%, #ffffff 100%);
}

.app-shell a{
color:inherit;
text-decoration:none;
}

.app-shell a:hover{
color:#2f89e0;
}

/* Page spacing */
.app-shell main{
padding:14px 0 30px;
}

.app-shell .min-h-screen{
background:transparent;
}

/* Sidebar layout */
.app-shell .app-layout{
display:flex;
min-height:100vh;
width:100%;
margin:0;
padding:0;
align-items:stretch;
}

.app-shell .sidebar{
width:244px;
min-width:244px;
background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,250,255,0.96));
padding:18px 16px 16px;
box-shadow:14px 0 34px rgba(15,23,42,0.08);
position:sticky;
top:0;
height:100vh;
display:flex;
flex-direction:column;
backdrop-filter:blur(14px);
border-right:1px solid rgba(148,163,184,0.12);
overflow:hidden;
}

.app-shell .sidebar-header{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:10px;
padding:10px 8px 14px;
margin-bottom:8px;
border-bottom:1px solid rgba(214,226,242,0.9);
}

.app-shell .sidebar-actions{
display:flex;
align-items:center;
gap:8px;
flex:0 0 auto;
}

.app-shell .theme-toggle-btn{
position:fixed;
left:22px;
bottom:22px;
z-index:55;
width:46px;
height:46px;
display:inline-flex;
align-items:center;
justify-content:center;
padding:0;
border-radius:14px;
border:1px solid #d6e2f2;
background:rgba(255,255,255,0.92);
color:#1e3a5f;
font-size:12px;
font-weight:800;
line-height:1;
box-shadow:0 10px 20px rgba(47,137,224,0.12);
cursor:pointer;
transition:transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.app-shell .theme-toggle-btn:hover{
transform:translateY(-1px);
background:#eef5ff;
border-color:#bfd3ee;
}

.app-shell .theme-toggle-btn:focus-visible{
outline:none;
box-shadow:0 0 0 4px rgba(77,163,255,0.22);
}

.app-shell .theme-toggle-btn span:first-child{
display:inline-flex;
align-items:center;
justify-content:center;
width:26px;
height:26px;
border-radius:9px;
background:#eaf4ff;
color:#2563eb;
font-size:16px;
line-height:1;
}

.app-shell .guest-theme-toggle{
z-index:55;
}

.app-shell .brand-lockup{
display:flex;
flex-direction:column;
gap:4px;
}

.app-shell .brand-kicker{
font-size:11px;
font-weight:800;
letter-spacing:0.12em;
text-transform:uppercase;
color:#7b8ca0;
}

.app-shell .sidebar .logo{
font-size:28px;
line-height:1;
letter-spacing:-0.04em;
color:#2f89e0;
font-weight:800;
margin:0;
}

.app-shell .sidebar .menu{
list-style:none;
padding:8px 2px 0 0;
margin:0;
display:flex;
flex-direction:column;
gap:8px;
flex:1;
min-height:0;
overflow-y:auto;
overflow-x:hidden;
scrollbar-width:thin;
scrollbar-color:#b9cde9 transparent;
}

.app-shell .sidebar .menu::-webkit-scrollbar{
width:8px;
}

.app-shell .sidebar .menu::-webkit-scrollbar-thumb{
background:#c7d8ee;
border-radius:999px;
}

.app-shell .sidebar .menu::-webkit-scrollbar-track{
background:transparent;
}

.app-shell .sidebar .menu li{
position:relative;
padding:0;
margin-bottom:0;
cursor:pointer;
border-radius:14px;
overflow:visible;
}

.app-shell .sidebar .menu li.active{
background:transparent;
box-shadow:none;
}

.app-shell .sidebar .menu a{
position:relative;
display:flex;
align-items:center;
justify-content:flex-start;
min-height:44px;
padding:0 14px;
line-height:1;
text-decoration:none;
color:#244367;
font-size:13px;
font-weight:700;
letter-spacing:0.01em;
white-space:nowrap;
border:1px solid transparent;
border-radius:13px;
background:transparent;
transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-shell .sidebar .menu li:hover a{
background:#eef5ff;
border-color:#d9e6f8;
color:#153a63;
box-shadow:none;
}

.app-shell .sidebar .menu li.active a,
.app-shell .sidebar .menu li.active:hover a{
background:linear-gradient(135deg, #3f79d8, #5d97f3);
border-color:transparent;
color:#ffffff;
box-shadow:0 12px 22px rgba(61,120,216,0.26);
}

.app-shell .sidebar .menu li.active a::before{
content:"";
position:absolute;
left:10px;
top:10px;
bottom:10px;
width:4px;
border-radius:999px;
background:linear-gradient(180deg, #93c5fd, #ffffff);
}

.app-shell .content{
flex:1;
min-width:0;
padding:26px 34px 42px;
}

.app-shell .sidebar-footer{
margin-top:auto;
padding-top:12px;
}

.app-shell .sidebar-user-card{
display:flex;
flex-direction:column;
gap:4px;
padding:12px 12px 11px;
border-radius:16px;
background:linear-gradient(180deg, #ffffff, #f5f9ff);
border:1px solid #dbe7f6;
box-shadow:0 14px 28px rgba(47,137,224,0.08);
}

.app-shell .sidebar-user-label{
font-size:11px;
font-weight:800;
letter-spacing:0.12em;
text-transform:uppercase;
color:#7b8ca0;
}

.app-shell .sidebar-user-card strong{
font-size:14px;
color:#0f172a;
}

.app-shell .sidebar-user-card span{
font-size:12px;
color:#51657d;
}

/* Force full width inside content */
.app-shell .content > *{
width:100%;
}

.app-shell header{
margin-bottom:10px;
}

.app-shell header > div{
position:relative;
padding:0 !important;
}

.app-shell header > div::before{
content:none;
}

.app-shell .content [class*="max-w-"]{
max-width:100% !important;
}

.app-shell .content .mx-auto{
margin-left:0 !important;
margin-right:0 !important;
}

.app-shell .content .px-4,
.app-shell .content .sm\:px-6,
.app-shell .content .lg\:px-8{
padding-left:0 !important;
padding-right:0 !important;
}

/* Cards */
.app-shell .bg-white{
background:#ffffff;
}

.app-shell .rounded-lg,
.app-shell .rounded-xl,
.app-shell .sm\:rounded-lg{
border-radius:var(--sysmed-card-radius) !important;
}

.app-shell .shadow,
.app-shell .shadow-sm,
.app-shell .shadow-md{
box-shadow:var(--sysmed-card-shadow) !important;
}

.app-shell .ring-1{
border:1px solid var(--sysmed-card-border) !important;
}

.app-shell .content .rounded-xl.bg-white,
.app-shell .content .overflow-hidden.rounded-xl.bg-white{
position:relative;
overflow:hidden;
background:linear-gradient(180deg, rgba(255,255,255,0.97), #ffffff 65%, #fbfdff 100%);
box-shadow:var(--sysmed-card-shadow) !important;
}

.app-shell .content .rounded-xl.bg-white::before,
.app-shell .content .overflow-hidden.rounded-xl.bg-white::before{
content:"";
position:absolute;
inset:0 0 auto 0;
height:1px;
background:linear-gradient(90deg, rgba(77,163,255,0), rgba(77,163,255,0.28), rgba(77,163,255,0));
pointer-events:none;
}

.app-shell .bg-white:hover,
.app-shell .content .rounded-xl.bg-white:hover,
.app-shell .content .overflow-hidden.rounded-xl.bg-white:hover{
transform:translateY(-2px);
box-shadow:var(--sysmed-card-shadow-hover) !important;
transition:transform 0.2s ease, box-shadow 0.2s ease;
}

/* Inputs */
.app-shell input,
.app-shell select,
.app-shell textarea{
border:1px solid #d6e2f2;
border-radius:16px;
padding:12px 14px;
font-size:14px;
background:#ffffff;
box-shadow:0 10px 22px rgba(15,23,42,0.06);
transition:0.2s ease;
color:#17324f;
}

.app-shell select{
appearance:none;
-webkit-appearance:none;
-moz-appearance:none;
cursor:pointer;
padding-right:44px;
background-image:
  linear-gradient(45deg, transparent 50%, #5d97f3 50%),
  linear-gradient(135deg, #5d97f3 50%, transparent 50%),
  linear-gradient(180deg, rgba(77,163,255,0.14), rgba(77,163,255,0.03));
background-position:
  calc(100% - 20px) 52%,
  calc(100% - 14px) 52%,
  calc(100% - 38px) 50%;
background-size:6px 6px, 6px 6px, 26px 26px;
background-repeat:no-repeat;
font-weight:600;
letter-spacing:0.01em;
}

.app-shell select:hover{
border-color:#b8cde8;
box-shadow:0 12px 26px rgba(47,137,224,0.12);
}

.app-shell select option{
  background:#f8fbff;
  color:#17324f;
  font-weight:600;
}

.app-shell select option:hover,
.app-shell select option:checked{
  background:#dbeafe;
  color:#0f172a;
}

/* Ensure every select follows the same polished style in all views */
.app-shell .content select,
.app-shell form select,
.app-shell .rounded-xl select{
  border-radius:16px !important;
  border:1px solid #7fb2ef !important;
  background-color:#f8fbff !important;
  color:#1e3a5f !important;
  box-shadow:0 10px 22px rgba(15,23,42,0.06) !important;
  font-weight:700;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus{
outline:none;
border-color:#4da3ff;
box-shadow:0 0 0 4px rgba(77,163,255,0.18), 0 14px 28px rgba(77,163,255,0.10);
background:#fcfeff;
}

.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-shell select{
min-height:var(--sysmed-input-height);
}

.app-shell textarea{
min-height:120px;
resize:vertical;
}

.app-shell input::placeholder,
.app-shell textarea::placeholder{
color:#8aa0b8;
}

.app-shell .content label,
.app-shell .content .text-xs.font-semibold.uppercase.tracking-wide.text-gray-500{
display:block;
font-size:11px;
font-weight:800;
letter-spacing:0.08em;
text-transform:uppercase;
color:#6b7e94 !important;
}

.app-shell .content .text-xs.font-semibold.uppercase.tracking-wide.text-gray-500{
margin-bottom:8px;
}

/* Buttons */
.app-shell .sysmed-btn,
.app-shell .action-btn,
.app-shell .content form button:not(.password-toggle):not(.settings-tab):not(.tab-button):not(.modal-btn){
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:var(--sysmed-btn-height);
padding:10px 18px;
border-radius:var(--sysmed-btn-radius);
border:1px solid transparent;
font-size:14px;
font-weight:700;
line-height:1.1;
letter-spacing:0.01em;
text-decoration:none;
cursor:pointer;
transition:transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
background:linear-gradient(135deg, var(--sysmed-btn-primary-start), var(--sysmed-btn-primary-end));
color:#ffffff;
box-shadow:0 12px 26px var(--sysmed-btn-primary-shadow);
}

.app-shell .sysmed-btn:hover,
.app-shell .action-btn:hover,
.app-shell .content form button:not(.password-toggle):not(.settings-tab):not(.tab-button):not(.modal-btn):hover{
transform:translateY(-1px);
box-shadow:0 16px 30px rgba(47,137,224,0.24);
}

.app-shell .sysmed-btn:focus-visible,
.app-shell .action-btn:focus-visible,
.app-shell .content form button:not(.password-toggle):not(.settings-tab):not(.tab-button):not(.modal-btn):focus-visible,
.app-shell .modal-btn:focus-visible,
.app-shell .settings-btn:focus-visible{
outline:none;
box-shadow:0 0 0 4px rgba(77,163,255,0.22);
}

.app-shell .sysmed-btn:disabled,
.app-shell .action-btn:disabled,
.app-shell .content form button:not(.password-toggle):not(.settings-tab):not(.tab-button):not(.modal-btn):disabled{
opacity:0.62;
cursor:not-allowed;
transform:none;
box-shadow:none;
}

.app-shell .sysmed-btn-primary,
.app-shell .action-btn-primary,
.app-shell a.rounded-lg.bg-slate-900{
background:linear-gradient(135deg, #3f79d8 0%, #5d97f3 100%) !important;
color:#ffffff !important;
box-shadow:0 14px 28px rgba(61,120,216,0.24);
}

.app-shell .sysmed-btn-secondary,
.app-shell .action-btn-ghost,
.app-shell .sysmed-btn-muted{
background:var(--sysmed-btn-secondary-bg) !important;
color:var(--sysmed-btn-secondary-text) !important;
border-color:var(--sysmed-btn-secondary-border) !important;
box-shadow:0 10px 22px rgba(47,137,224,0.12);
}

.app-shell .sysmed-btn-secondary:hover,
.app-shell .action-btn-ghost:hover,
.app-shell .sysmed-btn-muted:hover{
background:#f5f9ff !important;
color:#15314f !important;
border-color:#b9cde8 !important;
}

.app-shell .sysmed-btn-danger,
.app-shell .danger-btn,
.app-shell .logout-btn,
.app-shell .logout-btn-danger{
background:linear-gradient(135deg, var(--sysmed-btn-danger-start), var(--sysmed-btn-danger-end)) !important;
color:#ffffff !important;
border-color:transparent !important;
box-shadow:0 12px 24px var(--sysmed-btn-danger-shadow);
}

.app-shell .sysmed-btn-danger:hover,
.app-shell .danger-btn:hover,
.app-shell .logout-btn:hover,
.app-shell .logout-btn-danger:hover{
box-shadow:0 16px 30px rgba(220,76,100,0.24) !important;
}

.app-shell .sysmed-btn-sm{
min-height:36px;
padding:8px 14px;
font-size:13px;
border-radius:12px;
}

.app-shell .sysmed-btn-icon{
min-width:44px;
width:44px;
padding:0;
border-radius:14px;
font-size:20px;
}

.app-shell .sysmed-btn-table{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:36px;
padding:8px 14px;
border-radius:12px;
font-size:13px;
font-weight:700;
text-decoration:none;
border:1px solid #d4e1f2;
background:#ffffff;
color:#1e3a5f !important;
box-shadow:0 10px 20px rgba(47,137,224,0.10);
transition:transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.app-shell .sysmed-btn-table:hover{
transform:translateY(-1px);
background:#f5f9ff;
border-color:#b9cde8;
color:#15314f !important;
}

.app-shell .border{
border:1px solid rgba(77,163,255,0.2) !important;
}

.app-shell .border-slate-300{
border-color:rgba(100,116,139,0.35) !important;
}

/* Tables */
.app-shell table{
width:100%;
border-collapse:collapse;
}

.app-shell th,
.app-shell td{
padding:12px;
border-bottom:1px solid #eef2f7;
text-align:left;
font-size:14px;
}

.app-shell thead{
background:linear-gradient(135deg, #f8fbff, #eef5ff);
}

.app-shell .content thead.bg-gray-50{
background:linear-gradient(135deg, #f8fbff, #eef5ff) !important;
}

.app-shell .content thead.text-left.text-xs.uppercase.tracking-wide.text-gray-500 th{
font-size:11px;
font-weight:800;
letter-spacing:0.08em;
text-transform:uppercase;
color:#6b7e94 !important;
padding-top:14px;
padding-bottom:14px;
}

.app-shell .content tbody.divide-y.divide-gray-100.bg-white tr{
transition:background 0.16s ease, transform 0.16s ease;
}

.app-shell .content tbody.divide-y.divide-gray-100.bg-white tr:hover{
background:#f9fbff;
}

.app-shell .content .border-b.border-gray-100:last-child{
border-bottom:none !important;
padding-bottom:0;
}

.app-shell .content dl > div{
align-items:flex-start;
padding:10px 0;
}

.app-shell .content dl > div dt{
font-weight:700;
color:#334155;
}

.app-shell .content dl > div dd{
color:#0f172a;
text-align:right;
}

.app-shell .content h3.text-base.font-semibold.text-slate-900{
font-size:18px;
letter-spacing:-0.02em;
color:#11345f;
}

.app-shell .content .text-xs.text-gray-500{
color:#7b8ca0 !important;
}

.app-shell .content h2.text-xl.font-semibold.text-gray-800{
font-size:28px;
line-height:1.08;
letter-spacing:-0.04em;
color:#0f172a !important;
}

.app-shell .content p.text-sm.text-gray-500{
font-size:14px;
line-height:1.55;
}

.app-shell .sysmed-page-header{
position:relative;
padding:2px 2px 0;
}

.app-shell .sysmed-page-header-copy{
display:flex;
flex-direction:column;
gap:6px;
max-width:760px;
}

.app-shell .sysmed-page-header-actions{
justify-content:flex-end;
align-self:flex-start;
}

/* Text colors */
.app-shell .text-gray-600,
.app-shell .text-gray-500{
color:#5f6b7a !important;
}

.app-shell .text-gray-900{
color:#1f2937 !important;
}

.app-shell .bg-gray-100,
.app-shell .bg-gray-50{
background:transparent !important;
}

/* Pills and tabs */
.app-shell .rounded-lg.bg-slate-900{
box-shadow:0 14px 30px rgba(15,23,42,0.24);
}

/* Alerts */
.app-shell .bg-emerald-50{
background:linear-gradient(135deg, #ecfdf3, #f7fffb) !important;
}

.app-shell .border-emerald-200{
border-color:#b7f0cf !important;
}

/* Subtle separators */
.app-shell .border-gray-100{
border-color:#eef2f7 !important;
}

/* Links inside cards */
.app-shell .bg-white a{
color:#2f89e0;
}

.app-shell .bg-white a:hover{
color:#1f6fb6;
}

/* CRUD pages */
.app-shell .content .py-10{
padding-top:18px !important;
padding-bottom:34px !important;
}

.app-shell .content .py-10 > [class*="max-w-"]{
display:flex;
flex-direction:column;
gap:22px;
}

.app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100{
display:block;
margin-bottom:0 !important;
padding:0 !important;
border-radius:0 !important;
background:transparent !important;
border:none !important;
box-shadow:none !important;
}

.app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 form{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:12px;
}

.app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 input[name="search"]{
flex:1 1 320px;
min-width:0;
height:46px;
max-height:46px;
align-self:center;
background:#fbfdff;
}

.app-shell .content .overflow-hidden.rounded-xl.bg-white.shadow-sm.ring-1.ring-gray-100{
border-radius:26px !important;
border:1px solid rgba(214,226,242,0.9) !important;
box-shadow:0 20px 42px rgba(15,23,42,0.08) !important;
}

.app-shell .content .border-t.border-gray-100.px-6.py-4{
background:linear-gradient(180deg, rgba(248,251,255,0.96), rgba(255,255,255,0.98));
}

.app-shell .content .overflow-x-auto{
overflow-x:auto;
overflow-y:hidden;
}

.app-shell .content .overflow-x-auto::-webkit-scrollbar{
height:10px;
}

.app-shell .content .overflow-x-auto::-webkit-scrollbar-thumb{
background:#b8cbe6;
border-radius:999px;
}

.app-shell .content table.min-w-full{
table-layout:fixed;
}

.app-shell .content table th,
.app-shell .content table td{
vertical-align:top;
overflow-wrap:anywhere;
word-break:break-word;
}

.app-shell .content table td .flex.items-center.gap-3{
flex-wrap:wrap;
}

.app-shell .content .sysmed-table-actions{
display:flex;
flex-direction:row;
align-items:center;
justify-content:flex-start;
gap:10px;
min-width:0;
flex-wrap:nowrap;
}

.app-shell .content .sysmed-table-actions > a,
.app-shell .content .sysmed-table-actions > form,
.app-shell .content .sysmed-table-actions > form > button{
width:112px;
min-width:112px;
}

.app-shell .content .sysmed-table-actions .sysmed-btn-sm{
min-height:42px;
justify-content:center;
}

@media (max-width: 900px){
  .app-shell .content .sysmed-table-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .app-shell .content .sysmed-table-actions > a,
  .app-shell .content .sysmed-table-actions > form,
  .app-shell .content .sysmed-table-actions > form > button{
    width:100%;
    min-width:0;
  }
}

.app-shell .content nav[role="navigation"]{
display:flex;
justify-content:space-between;
gap:12px;
flex-wrap:wrap;
align-items:center;
}

.app-shell .content nav[role="navigation"] > div{
display:flex;
align-items:center;
gap:8px;
flex-wrap:wrap;
}

/* Keep Laravel responsive pagination behavior (hide mobile prev/next block on desktop layouts) */
.app-shell .content nav[role="navigation"] > div.hidden{
  display:none !important;
}

@media (min-width: 640px){
  .app-shell .content nav[role="navigation"] > div[class*="sm:flex"]{
    display:flex !important;
  }
}

/* Pagination polish */
.app-shell .content nav[role="navigation"]{
  padding-top:2px;
}

.app-shell .content nav[role="navigation"] p{
  margin:0;
  font-size:13px;
  color:#60748c;
}

.app-shell .content nav[role="navigation"] .relative.inline-flex{
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 20px rgba(47,137,224,0.10);
}

.app-shell .content nav[role="navigation"] a,
.app-shell .content nav[role="navigation"] span[aria-current="page"] > span,
.app-shell .content nav[role="navigation"] > div > a{
  min-width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid #d4e1f2;
  background:#ffffff;
  color:#29486d;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  line-height:1;
  transition:background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.app-shell .content nav[role="navigation"] a:hover{
  background:#f5f9ff;
  border-color:#b8cde8;
  color:#1d3e66;
  transform:translateY(-1px);
}

.app-shell .content nav[role="navigation"] span[aria-current="page"] > span{
  background:linear-gradient(135deg, #3f79d8 0%, #5d97f3 100%);
  border-color:transparent;
  color:#ffffff;
  box-shadow:0 10px 18px rgba(61,120,216,0.24);
}

.app-shell .content nav[role="navigation"] span[aria-disabled="true"] span,
.app-shell .content nav[role="navigation"] span[aria-disabled="true"]{
  background:#f8fbff;
  color:#9ab0c7;
  border-color:#dbe7f6;
  cursor:not-allowed;
}

/* Responsive */
@media (max-width: 1100px){
  .app-shell .app-layout{flex-direction:column;}
  .app-shell .sidebar{
    width:100%;
    min-width:0;
    height:auto;
    position:relative;
    top:auto;
    padding:16px 18px 12px;
    box-shadow:0 8px 18px rgba(31,41,55,0.08);
    border-right:none;
    border-bottom:1px solid rgba(148,163,184,0.12);
  }
  .app-shell .sidebar-header{
    padding:6px 4px 12px;
  }
  .app-shell .sidebar .menu{
    flex-direction:row;
    flex-wrap:nowrap;
    flex:initial;
    min-height:auto;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-top:10px;
    padding-bottom:4px;
    padding-right:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .app-shell .sidebar .menu::-webkit-scrollbar{
    display:none;
  }
  .app-shell .sidebar .menu li{
    flex:0 0 auto;
    white-space:nowrap;
  }
  .app-shell .sidebar .menu a{
    min-height:42px;
    padding:0 16px;
    border-radius:15px;
  }
  .app-shell .sidebar-footer{
    display:none;
  }
  .app-shell .content{
    padding:18px 24px 32px;
  }
}

@media (max-width: 900px){
  .app-shell .sidebar{
    padding:14px 14px 10px;
  }
  .app-shell .sidebar-header{
    padding:6px 4px 10px;
  }
  .app-shell .content{padding:16px 18px 28px;}
}

@media (max-width: 520px){
  .app-shell .sidebar{padding:12px 10px 8px;}
  .app-shell .content{padding:12px 14px 24px;}
  .app-shell .sysmed-page-header-actions{
    width:100%;
    justify-content:flex-start;
  }
  .app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100{
    padding:12px !important;
  }
  .app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 form{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 44px;
    align-items:center;
    gap:10px;
  }
  .app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 input[name="search"]{
    grid-column:1 / -1;
    display:block;
    width:100% !important;
    min-height:46px;
    height:46px;
    margin:0;
    padding:10px 14px;
    border-radius:16px;
    box-shadow:0 8px 18px rgba(15,23,42,0.05);
  }
  .app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 button[type="submit"]{
    grid-column:1 / 2;
    width:100% !important;
    min-width:0;
    margin:0;
  }
  .app-shell .content .mb-6.rounded-xl.bg-white.p-4.shadow-sm.ring-1.ring-gray-100 .sysmed-btn-icon{
    grid-column:2 / 3;
    width:44px !important;
    min-width:44px;
    height:44px;
    min-height:44px;
    margin:0;
  }
  .app-shell .content{
    padding:10px 10px 22px;
  }
  .app-shell header > div::before{
    inset:-6px -8px;
    border-radius:22px;
  }
  .app-shell .content .py-10 > [class*="max-w-"]{
    gap:16px;
  }
  .app-shell .content .overflow-hidden.rounded-xl.bg-white.shadow-sm.ring-1.ring-gray-100{
    border-radius:22px !important;
  }
}

@media (max-width: 520px){
  .app-shell .sidebar .menu{
    gap:8px;
    padding-top:8px;
    padding-bottom:2px;
  }
  .app-shell .sidebar .menu::-webkit-scrollbar{height:6px;}
  .app-shell .sidebar .menu::-webkit-scrollbar-thumb{background:#cfe1f7;border-radius:999px;}
  .app-shell .content h2.text-xl.font-semibold.text-gray-800{
    font-size:22px;
  }
  .app-shell .sidebar .menu a{
    min-height:40px;
    padding:0 14px;
    font-size:12px;
  }
  .app-shell .content table.min-w-full{
    table-layout:auto;
    min-width:760px;
  }
}

/* Fix search/submit button sizing */
.app-shell .content button[type="submit"]:not(.rounded-full):not(.password-toggle):not(.settings-tab):not(.tab-button):not(.modal-btn){
  min-width:118px;
}

/* Logout button style (sidebar) */
.app-shell .sidebar form button[type="submit"]{
  width:100%;
  min-width:0;
}

/* Logout button icon */
.app-shell .sidebar form button[type="submit"]{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.app-shell .sidebar form button[type="submit"]::before{
  content:none;
  font-size:16px;
  line-height:1;
}

/* Logout button (shared) */
.app-shell .logout-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.app-shell .logout-btn::before{content:none;}

/* Danger/logout button override (no icon) */
.app-shell .danger-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.app-shell .danger-btn::before{content:none !important;}

/* Settings button as pill */
.app-shell .settings-btn{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef3fb;
  border:1px solid #d6e2f2;
}

.app-shell .settings-btn:hover{
  transform:none;
  background:#dfeafe;
}

/* Logout button (new class to bust cache) */
.logout-btn-danger{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.logout-btn-danger::before{content:none !important;}

/* Settings gear button */
.app-shell .settings-btn{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,0.92);
  border:1px solid #d6e2f2;
  color:#2563eb;
  font-size:18px;
  box-shadow:0 10px 20px rgba(47,137,224,0.12);
}

.app-shell .settings-btn:hover{
  transform:translateY(-1px);
  background:#eef5ff;
  border-color:#bfd3ee;
}

/* Header action button alignment */
.app-shell header .flex.items-center.justify-between{
  align-items:flex-start;
  gap:16px;
}

.app-shell header a.rounded-lg.bg-slate-900{
  align-self:flex-start;
  margin-top:2px;
}

/* Toasts */
.app-shell .toast{
  position:fixed;
  right:24px;
  top:24px;
  z-index:50;
  background:#0f172a;
  color:#fff;
  border-radius:16px;
  padding:14px 18px;
  box-shadow:0 18px 40px rgba(15,23,42,0.25);
  min-width:260px;
  max-width:360px;
  opacity:0;
  transform:translateY(-8px);
  transition:0.25s ease;
}

.app-shell .toast.show{
  opacity:1;
  transform:translateY(0);
}

.app-shell .toast-success{
  background:linear-gradient(135deg, #0f172a, #1f2937);
}

.app-shell .toast-title{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#cbd5f5;
}

.app-shell .toast-body{
  margin-top:6px;
  font-size:14px;
  color:#f8fafc;
}

/* Modal confirm */
.app-shell .modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.30);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:60;
  padding:24px;
  opacity:1;
  transition:opacity 0.24s ease, backdrop-filter 0.24s ease, -webkit-backdrop-filter 0.24s ease;
}

.app-shell .modal{
  width:100%;
  max-width:438px;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--glass-shadow);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  opacity:0;
  transform:scale(0.95) translateY(8px);
  animation:sysmedModalPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color:var(--text-primary);
  overflow:hidden;
  position:relative;
}

.app-shell .modal::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.04) 46%, rgba(255,255,255,0.18)),
    radial-gradient(180px 90px at 18% 0%, rgba(255,255,255,0.28), transparent 70%);
  opacity:0.78;
}

.app-shell .modal > *{
  position:relative;
  z-index:1;
}

.app-shell .modal-title{
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--text-primary);
}

.app-shell .modal-body{
  margin-top:12px;
  font-size:14px;
  line-height:1.65;
  color:var(--text-secondary);
}

.app-shell .modal-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin-top:22px;
}

.app-shell .modal-btn{
  border:1px solid transparent;
  border-radius:14px;
  min-height:44px;
  min-width:92px;
  padding:10px 18px;
  font-weight:800;
  cursor:pointer;
  font-size:13px;
  letter-spacing:0.01em;
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.app-shell .modal-cancel{
  background:rgba(0,0,0,0.05);
  color:var(--text-primary);
  border-color:var(--glass-border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.32);
}

.app-shell .modal-confirm{
  background:linear-gradient(135deg, #f43f5e, #e11d48);
  color:#ffffff;
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 12px 24px rgba(225,29,72,0.22), inset 0 1px 0 rgba(255,255,255,0.24);
}

.app-shell .modal-cancel:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.18);
  border-color:rgba(255,255,255,0.62);
}

.app-shell .modal-confirm:hover{
  transform:translateY(-1px);
  filter:saturate(1.05);
  box-shadow:0 8px 20px rgba(225,29,72,0.35), inset 0 1px 0 rgba(255,255,255,0.26);
}

.app-shell .modal-btn:active{
  transform:translateY(0) scale(0.98);
}

.app-shell .modal-backdrop[hidden]{
  display:none !important;
}

@keyframes sysmedModalPop{
  from{
    opacity:0;
    transform:scale(0.95) translateY(8px);
  }
  to{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

@media (max-width:520px){
  .app-shell .modal-backdrop{
    align-items:flex-end;
    padding:16px;
  }

  .app-shell .modal{
    max-width:none;
    padding:22px;
    border-radius:20px;
  }

  .app-shell .modal-actions{
    width:100%;
    justify-content:stretch;
  }

  .app-shell .modal-btn{
    flex:1 1 0;
    min-width:0;
  }
}

/* Header action buttons */
.app-shell .action-btn{
min-height:42px;
border-radius:14px;
font-size:13px;
letter-spacing:0.01em;
}

.app-shell .evento-show-header .sysmed-page-header-actions{
  align-items:center;
}

.app-shell .evento-id-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #d4e1f2;
  background:#ffffff;
  color:#2b4263;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.05em;
  box-shadow:0 8px 16px rgba(47,137,224,0.10);
}

/* Documents */
.app-shell .documentos-toolbar{
  padding:14px !important;
  border-radius:24px !important;
  background:rgba(255,255,255,0.94) !important;
}

.app-shell .documentos-toolbar-form{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) auto auto;
  gap:10px;
  align-items:center;
}

.app-shell .documentos-search{
  width:100% !important;
  height:44px;
  min-height:44px !important;
  box-shadow:none !important;
  background:#fbfdff;
}

.app-shell .documentos-toolbar:hover{
  transform:none !important;
}

.app-shell .documentos-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

.app-shell .documento-card{
  min-height:210px;
  display:flex;
  flex-direction:column;
  padding:22px !important;
  border-radius:24px !important;
  overflow:hidden;
}

.app-shell .documento-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.app-shell .documento-card-title{
  display:block;
  color:#1f7fdf !important;
  font-size:15px;
  line-height:1.25;
}

.app-shell .documento-card-meta{
  font-size:11px;
  letter-spacing:0.03em;
}

.app-shell .documento-badge{
  margin-top:-4px;
  border:1px solid rgba(77,163,255,0.14);
  white-space:nowrap;
}

.app-shell .documento-card-description{
  min-height:44px;
  line-height:1.55;
}

.app-shell .documento-card-actions{
  margin-top:auto !important;
  padding-top:18px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  align-items:stretch;
}

.app-shell .documento-card-actions .sysmed-btn-sm{
  min-height:38px;
  width:100%;
  justify-content:center;
  border-radius:12px;
  font-weight:700;
  letter-spacing:0.01em;
  box-shadow:0 8px 18px rgba(15,23,42,0.10);
}

.app-shell .documento-card-actions .sysmed-btn-sm:hover{
  box-shadow:0 12px 24px rgba(15,23,42,0.14);
}

.app-shell .documento-card-actions .documento-action{
  position:relative;
  overflow:hidden;
}

.app-shell .documento-card-actions .documento-action::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .38s ease;
  pointer-events:none;
}

.app-shell .documento-card-actions .documento-action:hover::after{
  transform:translateX(120%);
}

.app-shell .documento-card-actions .documento-action-primary{
  box-shadow:0 10px 22px rgba(47,137,224,0.24);
}

.app-shell .documento-card-actions .documento-action-secondary{
  background:rgba(255,255,255,0.72) !important;
  border-color:#cfe1f7 !important;
}

.app-shell .documento-card-actions .documento-action-accent{
  background:linear-gradient(135deg, #0f766e, #14b8a6) !important;
  border-color:transparent !important;
  color:#ffffff !important;
  box-shadow:0 10px 22px rgba(15,118,110,0.26);
}

.app-shell .documento-card-actions .documento-action-ghost{
  background:rgba(241,245,255,0.8) !important;
}

@media (max-width: 520px){
  .app-shell .documento-card-actions{
    grid-template-columns:1fr;
  }
}

/* User registration */
.app-shell .register-panel{
  max-width:880px;
  margin:0 auto;
}

.app-shell .register-panel:hover{
  transform:none !important;
}

.app-shell .register-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:20px;
  margin-bottom:20px;
  border-bottom:1px solid #edf3fb;
}

.app-shell .register-kicker{
  display:block;
  margin-bottom:8px;
  color:#6b7e94;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.11em;
  text-transform:uppercase;
}

.app-shell .register-panel h3{
  margin:0;
  color:#11345f;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-0.03em;
}

.app-shell .register-panel p{
  margin-top:8px;
  color:#60748c;
  line-height:1.55;
}

.app-shell .register-icon{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:18px;
  background:linear-gradient(135deg, #3f79d8, #5d97f3);
  color:#ffffff;
  font-size:22px;
  font-weight:800;
  box-shadow:0 14px 28px rgba(61,120,216,0.24);
}

.app-shell .register-form{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.app-shell .register-form > div{
  min-width:0;
}

.app-shell .register-form label{
  margin-bottom:8px;
}

.app-shell .register-form input,
.app-shell .register-form select{
  width:100%;
}

.app-shell .register-form .field-help{
  margin-top:7px;
  font-size:12px;
  color:#71839a;
}

.app-shell .register-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:8px;
}

.app-shell .register-form .error-text{
  margin-top:7px;
  color:#be123c;
  font-size:13px;
  font-weight:700;
}

/* Event form checklist */
.app-shell .evento-checklist{
  scroll-margin-top:24px;
}

.app-shell .evento-check-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  transition:background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-shell a.evento-check-item:hover{
  transform:translateY(-1px);
  background:#f8fbff;
}

.app-shell .evento-check-dot{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:999px;
  border:2px solid #c7d7ea;
  background:#ffffff;
}

.app-shell .evento-check-item.is-complete{
  background:linear-gradient(135deg, #ecfdf3, #ffffff);
  border-color:#b7f0cf !important;
}

.app-shell .evento-check-item.is-complete .evento-check-dot{
  border-color:#22c55e;
  background:#22c55e;
}

.app-shell .evento-check-item.is-complete .evento-check-dot::before{
  content:"";
  width:9px;
  height:5px;
  border-left:2px solid #ffffff;
  border-bottom:2px solid #ffffff;
  transform:rotate(-45deg) translate(1px, -1px);
}

.app-shell .evento-wizard-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px !important;
  border-radius:24px !important;
  background:linear-gradient(180deg, #ffffff, #f8fbff) !important;
  border:1px solid rgba(148,163,184,0.16) !important;
}

.app-shell .evento-stepper{
  align-items:stretch;
}

.app-shell .evento-step-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  border:1px solid #d6e7fb !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#29486d;
  box-shadow:0 10px 20px rgba(47,137,224,0.08) !important;
  text-align:center;
}

.app-shell .evento-step-pill.is-active{
  border-color:#93c5fd !important;
  background:linear-gradient(135deg, #2f89e0, #5d97f3) !important;
  color:#ffffff;
  box-shadow:0 14px 28px rgba(47,137,224,0.24) !important;
}

.app-shell .evento-step-pill.is-complete{
  background:#ecfdf3 !important;
  border-color:#b7f0cf !important;
  color:#166534;
}

.app-shell .evento-step-pill.is-active .evento-check-dot{
  border-color:#ffffff;
}

.app-shell .evento-step{
  padding:0 !important;
  overflow:hidden;
  border-radius:26px !important;
}

.app-shell .evento-wizard .evento-wizard-header:hover,
.app-shell .evento-wizard .evento-step:hover,
.app-shell .evento-wizard .evento-ocr-card:hover{
  transform:none !important;
}

.app-shell .evento-step-title{
  display:flex;
  align-items:center;
  gap:14px;
  padding:22px 24px 18px;
  border-bottom:1px solid #edf3fb;
  background:linear-gradient(180deg, #ffffff, #f9fbff);
}

.app-shell .evento-step-number{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:14px;
  background:#eaf4ff;
  color:#1d74c9;
  font-size:13px;
  font-weight:800;
}

.app-shell .evento-ocr-card{
  margin:22px 24px 0 !important;
  border-radius:22px !important;
  box-shadow:0 12px 28px rgba(47,137,224,0.08) !important;
}

.app-shell .evento-ocr-header{
  padding:18px 20px !important;
  background:linear-gradient(135deg, #eef7ff, #ffffff) !important;
}

.app-shell .evento-ocr-grid{
  padding:18px !important;
  gap:12px !important;
}

.app-shell .evento-ocr-side{
  padding:16px !important;
  border-radius:18px !important;
  background:#fbfdff !important;
}

.app-shell .evento-ocr-side .sysmed-btn{
  min-height:36px;
  padding:8px 14px;
  font-size:12px;
}

.app-shell .evento-ocr-status{
  padding:14px 18px !important;
  background:#f8fbff !important;
}

.app-shell .evento-patient-fields{
  padding:22px 24px 24px;
  gap:18px !important;
}

.app-shell .evento-event-fields{
  padding:24px;
  gap:18px !important;
  background:
    linear-gradient(180deg, rgba(248,251,255,0.72), rgba(255,255,255,0.96));
}

.app-shell .evento-patient-fields > div,
.app-shell .evento-event-fields > div{
  min-width:0;
}

.app-shell .evento-step [data-flow-group],
.app-shell .evento-step [data-flow-shell]{
  display:none !important;
}

.app-shell .evento-step [data-flow-group].is-flow-group-active{
  display:grid !important;
}

.app-shell .evento-step [data-flow-shell].is-flow-shell-active{
  display:block !important;
}

.app-shell .evento-step [data-flow-field]{
  display:none !important;
}

.app-shell .evento-step [data-flow-field].is-flow-active{
  display:block !important;
  width:100%;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  animation:eventoFieldIn 0.22s ease both;
}

.app-shell .evento-step [data-flow-field].is-flow-active:not(.evento-ocr-card){
  padding:22px !important;
  border:1px solid rgba(147,197,253,0.9) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow:0 18px 38px rgba(47,137,224,0.13) !important;
}

.app-shell .evento-step [data-flow-field].is-flow-active label{
  margin-bottom:12px;
  font-size:12px;
  color:#56708d !important;
}

.app-shell .evento-step [data-flow-field].is-flow-active input:not([type="file"]),
.app-shell .evento-step [data-flow-field].is-flow-active select,
.app-shell .evento-step [data-flow-field].is-flow-active textarea{
  min-height:58px;
  border-radius:18px;
  font-size:16px;
  color:#0f2f52;
  background:#ffffff;
}

.app-shell .evento-step [data-flow-field].is-flow-active textarea{
  min-height:180px;
}

@keyframes eventoFieldIn{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.app-shell .evento-patient-fields > div:not(.md\:col-span-2),
.app-shell .evento-event-fields > div:not(.md\:col-span-2){
  padding:14px;
  border:1px solid rgba(214,226,242,0.78);
  border-radius:18px;
  background:rgba(255,255,255,0.76);
  box-shadow:0 10px 22px rgba(47,137,224,0.05);
}

.app-shell .evento-patient-fields > div.md\:col-span-2,
.app-shell .evento-event-fields > div.md\:col-span-2{
  padding:14px;
  border:1px solid rgba(214,226,242,0.78);
  border-radius:18px;
  background:rgba(255,255,255,0.76);
  box-shadow:0 10px 22px rgba(47,137,224,0.05);
}

.app-shell .evento-patient-fields label,
.app-shell .evento-event-fields label{
  margin-bottom:8px;
  color:#72849a !important;
}

.app-shell .evento-patient-fields input,
.app-shell .evento-patient-fields select,
.app-shell .evento-patient-fields textarea,
.app-shell .evento-event-fields input,
.app-shell .evento-event-fields select,
.app-shell .evento-event-fields textarea{
  width:100%;
  box-shadow:none;
  background:#fbfdff;
  border-color:#cfe0f3;
}

.app-shell .evento-patient-fields select,
.app-shell .evento-event-fields select,
.app-shell .evento-step [data-flow-field].is-flow-active select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5d97f3 50%),
    linear-gradient(135deg, #5d97f3 50%, transparent 50%),
    linear-gradient(180deg, rgba(77,163,255,0.14), rgba(77,163,255,0.03));
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%,
    calc(100% - 38px) 50%;
  background-size:6px 6px, 6px 6px, 26px 26px;
  background-repeat:no-repeat;
}

.app-shell .evento-event-fields textarea{
  min-height:104px;
  line-height:1.55;
}

.app-shell .evento-file-input{
  min-height:50px;
  padding:9px 10px;
  cursor:pointer;
  color:#526982;
}

.app-shell .evento-file-input::file-selector-button{
  min-height:32px;
  margin-right:12px;
  padding:7px 12px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg, #eaf4ff, #f7fbff);
  color:#1d5f9f;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}

.app-shell .evento-field-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d4e1f2;
  background:#ffffff;
  color:#526982;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 8px 16px rgba(47,137,224,0.08);
}

.app-shell .evento-wizard > .mt-6.flex.items-center.justify-between{
  position:sticky;
  bottom:0;
  z-index:8;
  margin:24px -6px -6px;
  padding:14px;
  border:1px solid rgba(214,226,242,0.86);
  border-radius:22px;
  background:rgba(248,251,255,0.94);
  box-shadow:0 -12px 30px rgba(15,23,42,0.08);
  backdrop-filter:blur(12px);
}

.app-shell .signature-pad{
  width:100%;
  min-height:360px;
  display:block;
  border-radius:18px;
  background:#ffffff;
  touch-action:none;
}

.app-shell .floating-event-btn{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:45;
  width:62px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg, #2563eb, #4da3ff);
  color:#ffffff !important;
  font-size:36px;
  font-weight:600;
  line-height:1;
  box-shadow:0 20px 42px rgba(37,99,235,0.34);
  border:1px solid rgba(255,255,255,0.5);
  text-decoration:none;
}

.app-shell .floating-event-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 48px rgba(37,99,235,0.42);
}

@media (max-width: 720px){
  .app-shell .evento-wizard-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .app-shell .evento-stepper{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .app-shell .evento-step-title{
    align-items:flex-start;
    padding:18px;
  }

  .app-shell .evento-ocr-card{
    margin:18px 16px 0 !important;
  }

  .app-shell .evento-patient-fields{
    padding:18px 16px 20px;
  }

  .app-shell .evento-event-fields{
    padding:18px 16px 20px;
  }

  .app-shell .evento-step [data-flow-field].is-flow-active:not(.evento-ocr-card){
    padding:18px !important;
    border-radius:22px !important;
  }

  .app-shell .evento-step [data-flow-field].is-flow-active input:not([type="file"]),
  .app-shell .evento-step [data-flow-field].is-flow-active select,
  .app-shell .evento-step [data-flow-field].is-flow-active textarea{
    min-height:54px;
    font-size:15px;
  }

  .app-shell .evento-step [data-flow-field].is-flow-active textarea{
    min-height:150px;
  }

  .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    margin-left:0;
    margin-right:0;
    padding:12px;
    border-radius:20px;
  }

  .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between > div{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    width:100%;
  }

  .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between > div > .evento-field-counter,
  .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between > div > a{
    grid-column:1 / -1;
  }

  .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between .sysmed-btn{
    width:100%;
  }

  .app-shell .signature-pad{
    min-height:300px;
  }

  .app-shell .floating-event-btn{
    right:18px;
    bottom:18px;
    width:58px;
    height:58px;
  }

  .app-shell .theme-toggle-btn{
    left:14px;
    bottom:14px;
    min-width:44px;
    height:44px;
    width:44px;
  }
}

@media (max-width: 980px){
  .app-shell .documentos-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .app-shell .register-panel-head{
    flex-direction:column;
  }

  .app-shell .register-form{
    grid-template-columns:1fr;
  }

  .app-shell .register-actions{
    flex-direction:column-reverse;
  }

  .app-shell .register-actions .sysmed-btn{
    width:100%;
  }

  .app-shell .documentos-toolbar-form{
    grid-template-columns:1fr;
  }

  .app-shell .documentos-toolbar-form .sysmed-btn{
    width:100%;
  }

  .app-shell .documentos-grid{
    grid-template-columns:1fr;
  }
}

/* Dark mode */
html.sysmed-dark body.app-shell{
  color:#dbeafe;
  background:#08111f;
  --sysmed-card-shadow:0 18px 42px rgba(0,0,0,0.34);
  --sysmed-card-shadow-hover:0 24px 54px rgba(0,0,0,0.42);
  --sysmed-card-border:rgba(96,165,250,0.18);
  --sysmed-btn-secondary-bg:#111d2f;
  --sysmed-btn-secondary-border:#263b55;
  --sysmed-btn-secondary-text:#d7e8ff;
  --sysmed-btn-primary-shadow:rgba(37,99,235,0.32);
  --glass-bg:rgba(17,29,47,0.76);
  --glass-border:rgba(148,163,184,0.22);
  --glass-shadow:0 28px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  --text-primary:#f8fbff;
  --text-secondary:#cbd5e1;
}

html.sysmed-dark body.app-shell::before{
  background:
    radial-gradient(680px 440px at 8% 0%, rgba(37,99,235,0.24), transparent 60%),
    radial-gradient(720px 500px at 92% 12%, rgba(14,165,233,0.16), transparent 62%),
    linear-gradient(180deg, #08111f 0%, #0b1626 58%, #101827 100%);
}

html.sysmed-dark .app-shell .sidebar{
  background:linear-gradient(180deg, rgba(13,24,40,0.98), rgba(10,18,31,0.97));
  border-right-color:rgba(96,165,250,0.14);
  box-shadow:14px 0 34px rgba(0,0,0,0.32);
}

html.sysmed-dark .app-shell .sidebar-header{
  border-bottom-color:rgba(96,165,250,0.14);
}

html.sysmed-dark .app-shell .brand-kicker,
html.sysmed-dark .app-shell .sidebar-user-label,
html.sysmed-dark .app-shell .text-gray-500,
html.sysmed-dark .app-shell .text-gray-600,
html.sysmed-dark .app-shell .text-xs.text-gray-500,
html.sysmed-dark .app-shell .content p.text-sm.text-gray-500,
html.sysmed-dark .app-shell .documento-card-meta{
  color:#8ea6c4 !important;
}

html.sysmed-dark .app-shell .sidebar .logo,
html.sysmed-dark .app-shell a:hover,
html.sysmed-dark .app-shell .bg-white a,
html.sysmed-dark .app-shell .documento-card-title{
  color:#60a5fa !important;
}

html.sysmed-dark .app-shell .settings-btn,
html.sysmed-dark .app-shell .theme-toggle-btn{
  background:#101d30;
  border-color:#263b55;
  color:#d7e8ff;
  box-shadow:0 12px 24px rgba(0,0,0,0.24);
}

html.sysmed-dark .app-shell .settings-btn:hover,
html.sysmed-dark .app-shell .theme-toggle-btn:hover{
  background:#14243a;
  border-color:#36577a;
}

html.sysmed-dark .app-shell .theme-toggle-btn span:first-child{
  background:#1d4ed8;
  color:#eff6ff;
}

html.sysmed-dark .app-shell .sidebar-user-card,
html.sysmed-dark .app-shell .bg-white,
html.sysmed-dark .app-shell .content .rounded-xl.bg-white,
html.sysmed-dark .app-shell .content .overflow-hidden.rounded-xl.bg-white,
html.sysmed-dark .app-shell .documentos-toolbar,
html.sysmed-dark .app-shell .documento-card,
html.sysmed-dark .app-shell .rounded-lg.bg-white{
  background:linear-gradient(180deg, rgba(17,29,47,0.98), rgba(12,22,37,0.98)) !important;
  border-color:rgba(96,165,250,0.16) !important;
  color:#dbeafe;
}

html.sysmed-dark .app-shell .content .rounded-xl.bg-white::before,
html.sysmed-dark .app-shell .content .overflow-hidden.rounded-xl.bg-white::before{
  background:linear-gradient(90deg, rgba(96,165,250,0), rgba(96,165,250,0.32), rgba(96,165,250,0));
}

html.sysmed-dark .app-shell .sidebar-user-card strong,
html.sysmed-dark .app-shell .content h2.text-xl.font-semibold.text-gray-800,
html.sysmed-dark .app-shell .content h3.text-base.font-semibold.text-slate-900,
html.sysmed-dark .app-shell .text-gray-900,
html.sysmed-dark .app-shell .text-slate-900,
html.sysmed-dark .app-shell .text-slate-950,
html.sysmed-dark .app-shell .font-medium.text-slate-900,
html.sysmed-dark .app-shell .font-semibold.text-slate-900,
html.sysmed-dark .app-shell dl > div dd{
  color:#f8fbff !important;
}

html.sysmed-dark .app-shell .sidebar-user-card span,
html.sysmed-dark .app-shell .text-slate-700,
html.sysmed-dark .app-shell .text-slate-600,
html.sysmed-dark .app-shell dl > div dt,
html.sysmed-dark .app-shell td,
html.sysmed-dark .app-shell .px-6.py-4.text-gray-600{
  color:#bfd3eb !important;
}

html.sysmed-dark .app-shell input,
html.sysmed-dark .app-shell select,
html.sysmed-dark .app-shell textarea,
html.sysmed-dark .app-shell .documentos-search{
  background:#0b1626 !important;
  border-color:#2c4563 !important;
  color:#eaf4ff !important;
  box-shadow:0 10px 24px rgba(0,0,0,0.24);
}

html.sysmed-dark .app-shell select{
  background-image:
    linear-gradient(45deg, transparent 50%, #93c5fd 50%),
    linear-gradient(135deg, #93c5fd 50%, transparent 50%),
    linear-gradient(180deg, rgba(96,165,250,0.20), rgba(96,165,250,0.05));
}

html.sysmed-dark .app-shell select option{
  background:#0f1b2e;
  color:#e2ecff;
}

html.sysmed-dark .app-shell select option:hover,
html.sysmed-dark .app-shell select option:checked{
  background:#1d3557;
  color:#ffffff;
}

html.sysmed-dark .app-shell .content select,
html.sysmed-dark .app-shell form select,
html.sysmed-dark .app-shell .rounded-xl select{
  border-color:#60a5fa !important;
  background-color:#0c1b2e !important;
  color:#eaf4ff !important;
  box-shadow:0 10px 24px rgba(0,0,0,0.24) !important;
}

html.sysmed-dark .app-shell input:focus,
html.sysmed-dark .app-shell select:focus,
html.sysmed-dark .app-shell textarea:focus{
  border-color:#60a5fa !important;
  background:#0d1b2d !important;
  box-shadow:0 0 0 4px rgba(96,165,250,0.18), 0 14px 28px rgba(0,0,0,0.18);
}

html.sysmed-dark .app-shell input::placeholder,
html.sysmed-dark .app-shell textarea::placeholder{
  color:#7189a8;
}

html.sysmed-dark .app-shell .content label,
html.sysmed-dark .app-shell .content .text-xs.font-semibold.uppercase.tracking-wide.text-gray-500{
  color:#91a9c7 !important;
}

html.sysmed-dark .app-shell thead,
html.sysmed-dark .app-shell .content thead.bg-gray-50{
  background:linear-gradient(135deg, #101d30, #132740) !important;
}

html.sysmed-dark .app-shell th,
html.sysmed-dark .app-shell td,
html.sysmed-dark .app-shell .border-gray-100,
html.sysmed-dark .app-shell .border-b.border-gray-100,
html.sysmed-dark .app-shell .border-t.border-gray-100.px-6.py-4{
  border-color:#20344d !important;
}

html.sysmed-dark .app-shell .content tbody.divide-y.divide-gray-100.bg-white tr:hover{
  background:#132238;
}

html.sysmed-dark .app-shell .content .border-t.border-gray-100.px-6.py-4,
html.sysmed-dark .app-shell .bg-gray-50,
html.sysmed-dark .app-shell .bg-gray-100{
  background:#101d30 !important;
}

html.sysmed-dark .app-shell .sysmed-btn-secondary,
html.sysmed-dark .app-shell .action-btn-ghost,
html.sysmed-dark .app-shell .sysmed-btn-muted,
html.sysmed-dark .app-shell .sysmed-btn-table,
html.sysmed-dark .app-shell .evento-field-counter{
  background:#111d2f !important;
  border-color:#263b55 !important;
  color:#d7e8ff !important;
  box-shadow:0 10px 22px rgba(0,0,0,0.22);
}

html.sysmed-dark .app-shell .sysmed-btn-secondary:hover,
html.sysmed-dark .app-shell .action-btn-ghost:hover,
html.sysmed-dark .app-shell .sysmed-btn-muted:hover,
html.sysmed-dark .app-shell .sysmed-btn-table:hover{
  background:#172840 !important;
  border-color:#36577a !important;
  color:#f8fbff !important;
}

html.sysmed-dark .app-shell .modal-backdrop{
  background:rgba(2,6,23,0.42);
}

html.sysmed-dark .app-shell .modal{
  background:var(--glass-bg);
  border-color:var(--glass-border);
  box-shadow:var(--glass-shadow);
  color:var(--text-primary);
}

html.sysmed-dark .app-shell .modal::before{
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02) 48%, rgba(96,165,250,0.10)),
    radial-gradient(180px 90px at 18% 0%, rgba(255,255,255,0.10), transparent 70%);
}

html.sysmed-dark .app-shell .modal-title{
  color:var(--text-primary);
}

html.sysmed-dark .app-shell .modal-body{
  color:var(--text-secondary);
}

html.sysmed-dark .app-shell .modal-cancel{
  background:rgba(255,255,255,0.06);
  border-color:var(--glass-border);
  color:var(--text-primary);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
}

html.sysmed-dark .app-shell .modal-cancel:hover{
  background:rgba(255,255,255,0.11);
  border-color:rgba(148,163,184,0.34);
}

html.sysmed-dark .app-shell .toast,
html.sysmed-dark .app-shell .toast-success{
  background:linear-gradient(135deg, #0b1626, #172840);
  border:1px solid rgba(96,165,250,0.16);
}

html.sysmed-dark .app-shell .evento-wizard-header,
html.sysmed-dark .app-shell .evento-step-title,
html.sysmed-dark .app-shell .evento-ocr-header,
html.sysmed-dark .app-shell .evento-ocr-status,
html.sysmed-dark .app-shell .evento-event-fields,
html.sysmed-dark .app-shell .evento-wizard > .mt-6.flex.items-center.justify-between{
  background:linear-gradient(180deg, #111d2f, #0d1a2b) !important;
  border-color:#263b55 !important;
}

html.sysmed-dark .app-shell .evento-step-number,
html.sysmed-dark .app-shell .evento-check-dot,
html.sysmed-dark .app-shell .evento-file-input::file-selector-button{
  background:#172f4f;
  color:#bfdbfe;
  border-color:#315a83;
}

html.sysmed-dark .app-shell .evento-step-pill{
  background:#111d2f !important;
  border-color:#263b55 !important;
  color:#cfe2fa;
  box-shadow:0 10px 20px rgba(0,0,0,0.22) !important;
}

html.sysmed-dark .app-shell .evento-step-pill.is-complete{
  background:#0f2d24 !important;
  border-color:#166047 !important;
  color:#86efac;
}

html.sysmed-dark .app-shell .evento-ocr-side,
html.sysmed-dark .app-shell .evento-patient-fields > div:not(.md\:col-span-2),
html.sysmed-dark .app-shell .evento-event-fields > div:not(.md\:col-span-2),
html.sysmed-dark .app-shell .evento-patient-fields > div.md\:col-span-2,
html.sysmed-dark .app-shell .evento-event-fields > div.md\:col-span-2,
html.sysmed-dark .app-shell .evento-step [data-flow-field].is-flow-active:not(.evento-ocr-card){
  background:linear-gradient(180deg, #111d2f, #0d1a2b) !important;
  border-color:#2c4563 !important;
  box-shadow:0 18px 38px rgba(0,0,0,0.28) !important;
}

html.sysmed-dark .app-shell .evento-step [data-flow-field].is-flow-active input:not([type="file"]),
html.sysmed-dark .app-shell .evento-step [data-flow-field].is-flow-active select,
html.sysmed-dark .app-shell .evento-step [data-flow-field].is-flow-active textarea,
html.sysmed-dark .app-shell .evento-patient-fields input,
html.sysmed-dark .app-shell .evento-patient-fields select,
html.sysmed-dark .app-shell .evento-patient-fields textarea,
html.sysmed-dark .app-shell .evento-event-fields input,
html.sysmed-dark .app-shell .evento-event-fields select,
html.sysmed-dark .app-shell .evento-event-fields textarea{
  background:#0b1626 !important;
  border-color:#2c4563 !important;
  color:#eaf4ff !important;
}

html.sysmed-dark .app-shell .evento-patient-fields select,
html.sysmed-dark .app-shell .evento-event-fields select,
html.sysmed-dark .app-shell .evento-step [data-flow-field].is-flow-active select{
  background-image:
    linear-gradient(45deg, transparent 50%, #93c5fd 50%),
    linear-gradient(135deg, #93c5fd 50%, transparent 50%),
    linear-gradient(180deg, rgba(96,165,250,0.20), rgba(96,165,250,0.05));
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%,
    calc(100% - 38px) 50%;
  background-size:6px 6px, 6px 6px, 26px 26px;
  background-repeat:no-repeat;
}

html.sysmed-dark .app-shell .signature-pad{
  background:#f8fafc;
}

html.sysmed-dark .app-shell .bg-emerald-50{
  background:linear-gradient(135deg, #0f2d24, #10261f) !important;
}

html.sysmed-dark .app-shell .border-emerald-200{
  border-color:#166047 !important;
}

html.sysmed-dark .app-shell .bg-blue-50,
html.sysmed-dark .app-shell .bg-blue-100,
html.sysmed-dark .app-shell .bg-slate-50,
html.sysmed-dark .app-shell .bg-slate-100,
html.sysmed-dark .app-shell .bg-slate-200{
  background:#132740 !important;
}

html.sysmed-dark .app-shell .text-blue-700,
html.sysmed-dark .app-shell .text-blue-800,
html.sysmed-dark .app-shell .text-slate-500{
  color:#a8cfff !important;
}

html.sysmed-dark .app-shell .register-panel-head{
  border-bottom-color:#20344d;
}

html.sysmed-dark .app-shell .register-kicker,
html.sysmed-dark .app-shell .register-panel p,
html.sysmed-dark .app-shell .register-form .field-help{
  color:#9fb5cf;
}

html.sysmed-dark .app-shell .register-panel h3{
  color:#f8fbff;
}

@media (max-width: 1100px){
  html.sysmed-dark .app-shell .sidebar{
    border-bottom-color:rgba(96,165,250,0.14);
  }
}

html.sysmed-large-text body.app-shell{
  font-size:19px;
}

html.sysmed-large-text .app-shell input,
html.sysmed-large-text .app-shell select,
html.sysmed-large-text .app-shell textarea,
html.sysmed-large-text .app-shell td,
html.sysmed-large-text .app-shell p{
  font-size:1.12rem;
  line-height:1.7;
}

html.sysmed-large-text .app-shell input,
html.sysmed-large-text .app-shell select,
html.sysmed-large-text .app-shell textarea,
html.sysmed-large-text .app-shell .sysmed-btn{
  min-height:54px;
}

html.sysmed-high-contrast .app-shell .bg-white,
html.sysmed-high-contrast .app-shell .rounded-xl,
html.sysmed-high-contrast .app-shell input,
html.sysmed-high-contrast .app-shell select,
html.sysmed-high-contrast .app-shell textarea,
html.sysmed-high-contrast .app-shell .sysmed-btn,
html.sysmed-high-contrast .app-shell .evento-step-pill{
  border-width:2px !important;
}

html.sysmed-high-contrast body.app-shell::before{
  background:#ffffff !important;
}

html.sysmed-high-contrast.sysmed-dark body.app-shell::before{
  background:#000000 !important;
}

html.sysmed-high-contrast .app-shell .content .rounded-xl.bg-white,
html.sysmed-high-contrast .app-shell .content .overflow-hidden.rounded-xl.bg-white,
html.sysmed-high-contrast .app-shell .sidebar,
html.sysmed-high-contrast .app-shell .register-panel{
  box-shadow:none !important;
}

html.sysmed-high-contrast .app-shell h2,
html.sysmed-high-contrast .app-shell h3,
html.sysmed-high-contrast .app-shell .font-medium.text-slate-900,
html.sysmed-high-contrast .app-shell .font-semibold.text-slate-900{
  text-decoration:underline;
  text-underline-offset:4px;
}

html.sysmed-high-contrast .app-shell input:focus,
html.sysmed-high-contrast .app-shell select:focus,
html.sysmed-high-contrast .app-shell textarea:focus,
html.sysmed-high-contrast .app-shell button:focus-visible,
html.sysmed-high-contrast .app-shell a:focus-visible{
  outline:3px solid #60a5fa;
  outline-offset:2px;
}

html.sysmed-reduce-motion *,
html.sysmed-reduce-motion *::before,
html.sysmed-reduce-motion *::after{
  animation:none !important;
  transition:none !important;
  scroll-behavior:auto !important;
}

html.sysmed-color-deuteranopia .app-shell{
  --sysmed-btn-primary-start:#1d4ed8;
  --sysmed-btn-primary-end:#38bdf8;
  --sysmed-btn-danger-start:#b45309;
  --sysmed-btn-danger-end:#f59e0b;
}

html.sysmed-color-protanopia .app-shell{
  --sysmed-btn-primary-start:#0f766e;
  --sysmed-btn-primary-end:#2dd4bf;
  --sysmed-btn-danger-start:#6d28d9;
  --sysmed-btn-danger-end:#a78bfa;
}

html.sysmed-color-tritanopia .app-shell{
  --sysmed-btn-primary-start:#6d28d9;
  --sysmed-btn-primary-end:#c084fc;
  --sysmed-btn-danger-start:#be123c;
  --sysmed-btn-danger-end:#fb7185;
}

html.sysmed-color-monochrome .app-shell{
  --sysmed-btn-primary-start:#334155;
  --sysmed-btn-primary-end:#64748b;
  --sysmed-btn-danger-start:#404040;
  --sysmed-btn-danger-end:#737373;
}

html[class*="sysmed-color-"] .app-shell .sysmed-btn-primary,
html[class*="sysmed-color-"] .app-shell .action-btn-primary,
html[class*="sysmed-color-"] .app-shell .floating-event-btn,
html[class*="sysmed-color-"] .app-shell .register-icon{
  background:linear-gradient(135deg, var(--sysmed-btn-primary-start), var(--sysmed-btn-primary-end)) !important;
}

html[class*="sysmed-color-"] .app-shell .sysmed-btn-danger,
html[class*="sysmed-color-"] .app-shell .danger-btn,
html[class*="sysmed-color-"] .app-shell .logout-btn,
html[class*="sysmed-color-"] .app-shell .logout-btn-danger{
  background:linear-gradient(135deg, var(--sysmed-btn-danger-start), var(--sysmed-btn-danger-end)) !important;
}

html[class*="sysmed-color-"] .app-shell .sysmed-btn-primary::before,
html[class*="sysmed-color-"] .app-shell .sysmed-btn-danger::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
  box-shadow:0 0 0 2px rgba(255,255,255,0.42);
}

html.sysmed-color-monochrome .app-shell{
  filter:grayscale(0.92);
}
