:root {
    --eprms-green: #198754;
    --eprms-green-dark: #146c43;
    --eprms-green-light: #e9f7ef;

    --eprms-blue: #0d6efd;
    --eprms-red: #dc3545;
    --eprms-orange: #f59f00;

    --text-dark: #26332d;
    --text: #4f5b55;
    --text-light: #8a9690;

    --border: #198754;
    --border-light: #edf1ee;

    --background: #f4f7f5;
    --white: #ffffff;

    --radius: 8px;
    --radius-large: 12px;

    --shadow:
        0 4px 18px rgba(0, 0, 0, 0.07);

    --shadow-hover:
        0 8px 25px rgba(0, 0, 0, 0.11);

    /* theme colours of the components; dark values in the block below */
    --page-top: #f7faf8;
    --page-bottom: #f1f5f3;
    --surface: #ffffff;
    --surface-alt: #f7f9f8;
    --surface-foot: #fbfcfc;
    --surface-bar: #f6f8f7;
    --surface-muted: #f1f4f2;
    --surface-hover: #f7fbf9;
    --surface-hover-strong: #f3f8f5;
    --line: #dfe5e2;
    --line-soft: #edf1ef;
    --line-rail: #e3e9e6;
    --line-dashed: #c3cdc8;
    --label: #53615b;
    --menu-text: #56615b;
    --text-strong: #333333;
    --text-faint: #b3bcb7;
    --placeholder: #a9b3ae;
    --field-border: #ccd5d1;
    --field-text: #344054;
    --accent: var(--eprms-green);
    --accent-strong: var(--eprms-green-dark);
    --accent-line: #d4ebdc;
    --danger-bg: #fff5f5;
    --danger-bg-hover: #fce8e8;
    --danger-line: #f0d4d4;
    --danger-line-hover: #e6b8b8;
    --danger-text: #c0392b;
    --danger-text-hover: #a93226;
    --warn-bg: #fff4d6;
    --warn-text: #7a5a00;
    --female-bg: #fbeff6;
    --female-text: #9c2f6d;
    --male-bg: #eef4ff;
    --male-text: #0a3d8f;
    --allergy-bg: #fffafa;
    --allergy-line: #f1c9cd;
    --allergy-text: #b02a37;
    /* tooth chart (dental note) */
    --tooth-line: #9aa8a1;
    --tooth-crown: #ffffff;
    --tooth-hover-line: #b9d9c6;
    --tooth-planned-line: #a86f00;
    --tooth-planned-root: #fff6e0;
    --tooth-planned-crown: #ffd98a;
    --tooth-done-line: #146c43;
    --tooth-done-root: #e9f7ef;
    --tooth-done-crown: #a9dcbd;
    --tooth-missing: #eef1ef;
    --tooth-missing-line: #7d8a84;
}

/* Dark theme: html[data-theme="dark"], set by the theme script in _inc/inc_header.php.
   Only the colours change; the green buttons keep their light-mode colours. */
:root[data-theme="dark"] {
    color-scheme: dark;

    --eprms-green-light: #1a3328;
    --eprms-blue: #4d94ff;

    --text-dark: #e4ebe7;
    --text: #c2ccc7;
    --text-light: #8d9a94;
    --text-strong: #e4ebe7;
    --text-faint: #5e6b65;
    --placeholder: #6b7872;

    --border: #2a5c43;
    --border-light: #26302c;
    --background: #0f1513;
    --white: #171e1b;

    --shadow: 0 4px 18px rgba(0, 0, 0, .35);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, .45);

    --page-top: #111816;
    --page-bottom: #0d1311;
    --surface: #171e1b;
    --surface-alt: #1c2420;
    --surface-foot: #1a221e;
    --surface-bar: #1c2420;
    --surface-muted: #232c28;
    --surface-hover: #1e2823;
    --surface-hover-strong: #213029;
    --line: #2b3632;
    --line-soft: #242e2a;
    --line-rail: #2f3a35;
    --line-dashed: #3c4843;
    --label: #9aa8a1;
    --menu-text: #b9c4bf;
    --field-border: #36433d;
    --field-text: #dfe6e2;
    --accent: #4cc38a;
    --accent-strong: #6fd3a2;
    --accent-line: #2a5c43;
    --danger-bg: #2b1a1c;
    --danger-bg-hover: #3a2024;
    --danger-line: #55292e;
    --danger-line-hover: #74333a;
    --danger-text: #ff8c94;
    --danger-text-hover: #ffadb3;
    --warn-bg: #3a2f12;
    --warn-text: #f2cd6b;
    --female-bg: #3a1e2e;
    --female-text: #f3a6d0;
    --male-bg: #1a2a45;
    --male-text: #a3c4ff;
    --allergy-bg: #261718;
    --allergy-line: #5a2a30;
    --allergy-text: #ff8c94;
    --tooth-line: #75837d;
    --tooth-crown: #34403b;
    --tooth-hover-line: #2a5c43;
    --tooth-planned-line: #f0b44c;
    --tooth-planned-root: #3a2f12;
    --tooth-planned-crown: #b98516;
    --tooth-done-line: #4cc38a;
    --tooth-done-root: #183526;
    --tooth-done-crown: #2f8a5c;
    --tooth-missing: transparent;
    --tooth-missing-line: #75837d;
}


html {
    scroll-behavior: smooth;
}




body {
    min-width: 1000px;

    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    line-height: 1.5;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            var(--page-top) 0%,
            var(--page-bottom) 100%
        );
}

body.login		{ background: none; padding-top: 100px; background: url('../images/header.png') top left repeat-x; }

.clear:after 			{ content: "."; display: block; height: 0; overflow:hidden; clear: both; visibility: hidden; }
.clean-margin			{ margin: 0px !important; }
.clean-padding			{ padding: 0px !important; }
ul.standard.clean-padding	{ padding: 0 0 0 16px !important;}
ol.standard.clean-padding	{ padding: 0 0 0 22px !important;}

.hidden     	 	{ display: block; }
.display     		{ display: block; }
.half			{ width: 48% !important; }
.trio			{ width: 31% !important; }
.quad			{ width: 23% !important; }
.full			{ width: 100%; }

.size-40		{ width: 40px; }	
.size-60		{ width: 60px; }	
.size-80		{ width: 80px; }	
.size-120		{ width: 120px; }
.size-140		{ width: 140px; }
.size-150		{ width: 150px; }
.size-170		{ width: 170px; }
.size-180		{ width: 180px; }
.size-190		{ width: 190px; }
.size-200		{ width: 200px; }
.size-220		{ width: 220px; }
.size-250		{ width: 250px; }
.size-300		{ width: 300px; }
.size-400		{ width: 400px; }
.size-500		{ width: 500px; }

.fl			{ float: left; }
.fr			{ float: right; }
.fl-space		{ float: left; margin-right: 5px; }
.fr-space		{ float: right; margin-left: 5px; }
.fl-space2		{ float: left; margin-right: 10px; }
.fr-space2		{ float: right; margin-left: 10px; }

.bt-space0		{ margin-bottom: 0px !important; }
.bt-space5		{ margin-bottom: 5px !important; }
.bt-space10		{ margin-bottom: 10px !important; }
.bt-space15		{ margin-bottom: 15px !important; }
.bt-space20		{ margin-bottom: 20px !important; }
.bt-space30		{ margin-bottom: 30px !important; }
.bt-space40		{ margin-bottom: 40px !important; }

.ln-normal	{ line-height: normal !important; }
.ln-22		{ line-height: 22px !important; }
.left		{ text-align: left !important; }
.center		{ text-align: center !important; margin: auto !important; }
.right		{ text-align: right !important; }
.block		{ text-align: justify; }
img.block	{ display: block; }

a		{ color: #666666; text-decoration: none;}
a:hover		{ color: #666666; text-decoration: underline;}
strong		{ color: var(--text-strong); }
small		{ font-size: 11px; line-height: 14px; display: block; }
code		{ color: var(--text-strong); font-family: "Courier New",Courier,monospace,sans-serif; }
q		{ background:url("../images/quote.png") no-repeat 7px 8px #FFFFFF; color: var(--text-strong); display:block; font-family: "Times New Roman", arial; font-size: 14px; line-height: 18px; font-style: normal; min-height: 42px; padding: 10px 10px 10px 32px; quotes:"" ""; font-style:italic; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;}
q cite		{ color: #959595; display: block; font-size: 12px; padding-top: 5px; font-family: arial; }
del		{ color: #FF001C; text-decoration:line-through; }

.rule		{ padding-top: 2px; padding-bottom: 20px; background: url('../images/rule.gif') 0px 0px repeat-x; }
.rule2		{ padding-top: 4px; padding-bottom: 20px; background: url('../images/rule2.gif') 0px 0px repeat-x; }		
.sidebar .rule	{ padding-bottom: 15px; }
.cr-help	{ cursor: help; }


/*********************************/
/********** PAGE LAYOUT **********/
/*********************************/

.pagesize		{ width: 1000px; margin: 0px auto; text-align: left; }
/*.pagetop		{ width: 100%; min-width: 1000px; background-color: #eeeeee; border-bottom: 4px solid #55CC00; position: relative; z-index: 100; }*/
.pagetop {
    width: 100%;

    min-width: 1000px;

    position: relative;

    z-index: 100;

    background: var(--surface);

    border-bottom: 3px solid var(--eprms-green);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.06);
}

.head			{ padding: 0px 0px 0px 0px;}
.head_top		{ position: relative; min-height: 60px; }
.main			{ }
.main-wrap		{ width: 100%; padding-top: 15px; }
.page			{ padding-bottom: 50px; }
.logo			{ padding-top: 20px; }
.logo a			{ text-decoration: none; }
.logo .picture		{ float: left; margin: 20px 10px 20px 0; }
.logo .textlogo		{ float: left; font-size: 24px; color: #82A427; letter-spacing: +0.11em; padding: 30px 10px 25px 30px;}
.logo .title		{ display: block; font-family: arial; font-size: 30px; color: #FFFFFF; font-weight: bold; margin-top: 5px; letter-spacing: -0.02em; }
.logo .text		{ display: block; font-weight: bold; color: #FFFFFF; position: relative; top: -2px; }

.breadcrumb			{ width: 100%; height: 29px; background: url('../images/breadcrumb.png') top left repeat-x; }
.breadcrumb .bread-links	{ line-height: 26px; font-size: 11px; }
.breadcrumb li			{ float: left; margin-right: 5px; }
.breadcrumb li.first		{ padding-left: 16px; background: url('../images/ball_yellow_13.png') 0px 7px no-repeat; }
.breadcrumb li span		{ padding-left: 5px; }

/*** main menu ***/

.menu			{  }
.menu ul		{ font-size: 13px; }
.menu li		{ float: left; margin-right: 3px; padding-bottom: 5px; position: relative; }
.menu li a		{ display: block; line-height: 16px; padding: 7px 15px 7px 15px; background: url('../images/button_glas1.png') center center repeat-x #555555; color: #FFFFFF; text-decoration: none; font-weight: bold; text-shadow: 1px 1px 1px #000000; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.menu li a:hover	{ background: url('../images/button_glas1_ovr.png') center center repeat-x #666666; }

.menu li.active a	{ background: var(--surface); color: var(--text-strong); text-shadow: 1px 1px 1px #BBBBBB;}
.menu ul ul		{ display: none; font-size: 12px; width: 170px; position: absolute; top: 33px; left: 0px; background: url('../images/bck_white_95.png'); padding: 8px 0px 12px 0px; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; -moz-box-shadow: 1px 2px 2px #888888; -webkit-box-shadow: 1px 2px 2px #888888; box-shadow: 1px 2px 2px #888888; /* IE7 hack */ *border-right: 1px solid #BBBBBB; *border-bottom: 1px solid #BBBBBB; /* IE8 hack */border-right: 1px solid #BBBBBB\0/; border-bottom: 1px solid #BBBBBB\0/;}

.menu li:hover ul	{ }
.menu li:hover ul ul	{ display: none; position: absolute; top: -8px; left: 151px; }
.menu li li:hover ul	{ }

.menu li li		{ padding: 0px 0px 0px 0px; margin: 0px; float: none; }
.menu li li a		{ padding: 4px 12px 4px 22px !important; background: url('../images/arrow_sm_grey.gif') 12px 10px no-repeat !important; font-weight: normal; color: #959595!important; text-shadow: none !important; }
.menu li li a:hover		{ color: var(--text-strong)!important; background: url('../images/arrow_sm_black.gif') 12px 10px no-repeat !important; }

.menu li li:hover a		{ color: var(--text-strong)!important; background: url('../images/arrow_sm_black.gif') 12px 10px no-repeat !important; }
.menu li li:hover li a		{ color: #959595!important; background: url('../images/arrow_sm_grey.gif') 12px 10px no-repeat !important;}
.menu li li:hover li a:hover	{ color: var(--text-strong)!important; background: url('../images/arrow_sm_black.gif') 12px 10px no-repeat !important; }


.menu li li.active a	{ color: var(--text-strong)!important; background: url('../images/arrow_sm_black.gif') 12px 10px no-repeat !important; font-weight: bold; }
.menu li li.active li a		{ color: #959595!important; background: url('../images/arrow_sm_grey.gif') 12px 10px no-repeat !important; font-weight: normal; }
.menu li li.active li a:hover	{ color: var(--text-strong)!important; }
.menu li li li.active a		{ color: var(--text-strong)!important; background: url('../images/arrow_sm_black.gif') 12px 10px no-repeat !important; font-weight: bold; }



/* ---------------------------------------------------------
   MAIN MENU ---IEJ 
   --------------------------------------------------------- */
.menu ul {font-size: 13px;}
.menu li {float: left;margin-right: 5px;padding-bottom: 6px;position: relative;}
.menu li a {display: block;line-height: 20px;padding: 8px 15px;color: var(--menu-text);background: var(--surface);border: 1px solid transparent;border-radius: 7px;text-decoration: none;font-weight: 600;text-shadow: none;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;}
.menu li a:hover {color: var(--accent);background: var(--eprms-green-light);border-color: var(--accent-line);box-shadow: none;}
.menu li.active a {color: #ffffff;background:linear-gradient(135deg,var(--eprms-green),var(--eprms-green-dark));border-color: transparent;text-shadow: none;box-shadow:0 3px 8px rgba(25, 135, 84, .20);}

/*** header ***/
.header			{ background: url('../images/line.gif') bottom left repeat-x; margin-bottom: 30px; }
.header .links 		{ float: right; line-height: 24px; color: var(--text-strong); padding: 6px 0px 6px 0px; }
.header .links li	{ float: left; margin-left: 10px; }
.header .links .icon	{ display: block; width: 24px; height: 24px; float: left; margin-right: 5px; }
.header .links a	{ color: var(--text-strong); text-decoration: none; }
.header .links a:hover	{ color: #00A5C4; text-decoration: none; }

/* ---------------------------------------------------------
   TOP BUTTONS --- IEJ
   -------------------------------------------------------- */
.topbuts {position: absolute;top: 0;right: 0;}
.topbuts li {float: left;margin-left: 3px;font-size: 11px;font-weight: 600;}
.topbuts li a {display: block;padding: 5px 12px;color: #ffffff;background: var(--eprms-green);border-radius:0 0 5px 5px;transition: background .15s ease;}
.topbuts li a:hover {color: #ffffff;background: var(--eprms-green-dark);}
.topbuts li a.red {background: var(--eprms-red);}
.topbuts li a.red:hover {background: #b02a37;}

/* ---------------------------------------------------------
   USER AREA ---IEJ
   --------------------------------------------------------- */
.user {clear: both;float: right;padding-top: 20px;}
.user img.avatar {display: block;float: right;margin-left: 14px;padding: 3px;background: var(--surface);border: 1px solid var(--border);border-radius: 50%;box-shadow:0 2px 8px rgba(0, 0, 0, .08);}
.user-detail .name { color: var(--text-dark); font-size: 17px; font-weight: 600; padding: 2px 0 4px; }
.user-detail .text { color: var(--text-light); font-size: 11px; }
.user-detail a { color: var(--accent); font-weight: 600; }
.user-detail a:hover { color: var(--accent-strong); text-decoration: none; }


/*** main page contents ***/
h1			{ color: var(--text-strong); font-size: 30px; font-weight: normal; padding-top: 0px; margin-bottom: 10px; }
h1 a.label		{ color: #FFFFFF; text-decoration: none; background: url("../images/button_glas1.png") repeat-x center center #c0c0c0; display: inline-block; font-size: 11px;  padding: 2px 10px 2px 10px; position: relative; top: -12px; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;}
h1 a.label:hover	{ color: #FFFFFF; text-decoration: none; background-color: #00A5C4; } 
h2			{ color: var(--text-strong); font-size: 18px; font-weight: normal; padding-top: 0px; margin-bottom: 10px; }
h3			{ color: var(--text-strong); font-size: 18px; font-weight: bold; padding-top: 0px; margin-bottom: 10px; }
h4			{ color: var(--text-strong); font-size: 14px; font-weight: bold; padding-top: 0px; margin-bottom: 5px; }
h5			{ color: #959595; font-size: 14px; font-weight: bold; padding-top: 0px; margin-bottom: 5px; }
h6			{ color: var(--text-strong); font-size: 14px; font-weight: bold; padding-top: 0px; margin-bottom: 5px; padding-left: 1px; }

.page p			{ margin: 0px; padding-bottom: 20px; line-height: 16px; }
.page p.description	{ margin: 0px; padding-bottom: 5px; padding-top: 0px; font-size: 11px; line-height: 14px; }

.thumb			{ display: block; border: 1px solid #BBBBBB; padding: 3px; background: #FFFFFF; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
a .thumb		{ border: 1px solid #BBBBBB; }
a:hover .thumb		{ border: 1px solid #00A5C4; }
.size48			{ width: 48px; height: 48px; }
.size64			{ width: 64px; height: 64px; }
.size120		{ width: 120px; height: 120px; }


.code			{ background: url('../images/bck_white_90.png'); color: #00A5C4; font-family: "Courier New",Courier,monospace,sans-serif; font-size: 12px; padding: 2px 5px 3px 5px; margin-bottom: 5px; }
.code span		{ color: #ff001c; }

ul.standard		{ list-style-type: square; padding: 10px 0 20px 16px; }
ul.standard ul		{ list-style-type: square; padding: 5px 0 5px 16px; }

ol.standard		{ list-style-type: decimal; padding: 10px 0 20px 22px; }
ol.standard ol		{ list-style-type: lower-alpha; padding: 5px 0 5px 22px; }


/* tree list */

ul.tree					{ list-style-type: none; padding: 0px 0 20px 0px; }
ul.tree ul				{ padding-left: 5px; }
ul.tree li				{ line-height: 20px; padding: 0px 0px 0px 5px; }
ul.tree li span.item			{ padding-left: 20px; background: url('../images/ball_blue_16.png') 0px 2px no-repeat; font-weight: bold; display: block; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; cursor: pointer; }
ul.tree li li span.item			{ background: url('../images/ball_yellow_13.png') 2px 4px no-repeat; font-weight: normal; }
ul.tree li li li span.item		{ background: url('../images/ball_green_13.png') 2px 4px no-repeat; }
ul.tree li li li li span.item		{ background: url('../images/ball_purple_13.png') 2px 4px no-repeat; }
ul.tree li li li li li span.item	{ background: url('../images/ball_black_13.png') 2px 4px no-repeat; }
ul.tree li li li li li li span.item	{ background: url('../images/ball_red_13.png') 2px 4px no-repeat; }
ul.tree li li li li li li li span.item	{ background: url('../images/ball_grey_13.png') 2px 4px no-repeat; }
ul.tree li li 				{ padding-left: 10px !important; }
ul.tree li.tree-item-main		{ padding-left: 0px;}
ul.tree li.tree-item			{ padding-left: 0px;}

ul.tree ul				{ background: url('../images/tree_line.gif') 7px top no-repeat;}
ul.tree ul ul				{ background: none; }
ul.tree li.last ul			{ background: none; }

li.tree-item				{ background: url('../images/tree_simple.png') 0px 0px no-repeat; }
li.tree-item.last			{ background: url('../images/tree_simple_last.png') 0px 0px no-repeat; }
li.tree-item.parent			{ background: url('../images/tree_point.png') 0px 0px no-repeat; }
li.tree-item.parent.last		{ background: url('../images/tree_point_last.png') 0px 0px no-repeat; }


ul.space, ol.space	{ padding-bottom: 10px;}
.space li		{ padding-bottom: 10px; }

dl.standard		{ padding: 10px 0px 15px 0px; }
dl.standard dt		{ color: var(--text-strong); font-weight: bold; }
dl.standard dd		{ padding-bottom: 10px; }

.mark			{ background: #FFFFFF; color: var(--text-strong); display:block; padding: 10px 10px 0px 10px; margin-bottom: 15px; border: 1px solid #DDDDDD; border-bottom: 1px solid #CCCCCC; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.mark p			{ padding-bottom: 10px; }
.mark_blue		{ background: #FFF; color: var(--text-strong); display:block; padding: 10px 10px 0px 10px; margin-bottom: 15px; border: 1px solid #D7DEE4; border-bottom: 1px solid #C6CDD3; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.mark_blue p		{ padding-bottom: 10px; }


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button,
input.button,
input.submit {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 34px;

    padding: 7px 16px;

    border: 0;

    border-radius: 7px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--eprms-green),
            var(--eprms-green-dark)
        );

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 600;

    line-height: 18px;

    cursor: pointer;

    text-align: center;

    box-shadow:
        0 3px 7px rgba(25, 135, 84, .18);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}


.button:hover,
input.button:hover,
input.submit:hover {
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(25, 135, 84, .25);

    filter: brightness(1.04);
}


.button:active,
input.button:active,
input.submit:active {
    transform: translateY(0);
}


.button.green {
    background:
        linear-gradient(
            135deg,
            #198754,
            #146c43
        );
}


.button.red {
    background:
        linear-gradient(
            135deg,
            #dc3545,
            #b02a37
        );
}


.button.blue {
    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #0a58ca
        );
}


.button.grey {
    background:
        linear-gradient(
            135deg,
            #7c8781,
            #626b66
        );
}


/***************
**** COLUMNS ***
***************/

/* main columns */

.columns		{ width: 100%; }
.lastcol		{ margin-right: 0px !important; }
.col1-2			{ width: 484px; float: left; margin-right: 32px; }
.col1-3			{ width: 312px; float: left; margin-right: 32px; }
.col2-3			{ width: 656px; float: left; margin-right: 32px; }
.col1-4			{ width: 226px; float: left; margin-right: 32px; }
.col2-4			{ width: 484px; float: left; margin-right: 32px; }
.col3-4			{ width: 742px; float: left; margin-right: 32px; }

/* cols inside of main columns */

.col2-3 .col1-2		{ width: 312px; float: left; margin-right: 32px; }
.col2-3 .col1-3		{ width: 198px; float: left; margin-right: 31px; }
.col2-3 .col2-3		{ width: 427px; float: left; margin-right: 31px; }
.col3-4	.col1-3		{ width: 226px; float: left; margin-right: 32px; }
.col3-4	.col2-3		{ width: 484px; float: left; margin-right: 32px; }
.col3-4 .col1-4		{ width: 163px; float: left; margin-right: 30px; }
.col3-4 .col2-4		{ width: 356px; float: left; margin-right: 30px; }
.col3-4 .col3-4		{ width: 549px; float: left; margin-right: 30px; }

/* cols inside of fullboxes */

.content-box .col1-2	{ width: 468px; float: left; margin-right: 18px; }
.content-box .col1-3	{ width: 306px; float: left; margin-right: 18px; }
.content-box .col2-3	{ width: 630px; float: left; margin-right: 18px; }
.content-box .col1-4	{ width: 225px; float: left; margin-right: 18px; }
.content-box .col2-4	{ width: 468px; float: left; margin-right: 18px; }
.content-box .col3-4	{ width: 711px; float: left; margin-right: 18px; }

/* cols for boxes with sidebars */

.content-box .col1-2 .col1-2	{ width: 225px; float: left; margin-right: 18px; }
.content-box .col2-3 .col1-2	{ width: 306px; float: left; margin-right: 18px; }
.content-box .col3-4 .col1-2	{ width: 346px; float: left; margin-right: 19px; }
.content-box .col3-4 .col1-3	{ width: 225px; float: left; margin-right: 18px; }
.content-box .col3-4 .col2-3	{ width: 468px; float: left; margin-right: 18px; }

.sidebar1-2 .sidebar .col1-2	{ width: 214px; float: left; margin-right: 20px;}

/* cols for boxes(without sidebars only) inside of main columns */

.col1-2	.content-box .col1-2 	{ width: 210px; float: left; margin-right: 18px; }
.col2-3	.content-box .col1-2 	{ width: 296px; float: left; margin-right: 18px; }
.col2-3	.content-box .col1-3 	{ width: 192px; float: left; margin-right: 17px; }
.col2-3	.content-box .col2-3 	{ width: 401px; float: left; margin-right: 17px; }
.col2-4	.content-box .col1-2 	{ width: 210px; float: left; margin-right: 18px; }
.col3-4	.content-box .col1-2 	{ width: 339px; float: left; margin-right: 18px; }
.col3-4	.content-box .col1-3 	{ width: 220px; float: left; margin-right: 18px; }
.col3-4	.content-box .col2-3 	{ width: 458px; float: left; margin-right: 18px; }


/*******************************
**** DESIGN of content boxes ***
*******************************/
/*	---IEJ */
.content-box { margin-bottom: 25px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-large); box-shadow: var(--shadow);overflow: hidden; transition: box-shadow .2s ease;}
.content-box:hover { box-shadow: var(--shadow-hover); }
.content-box .box-header { min-height: 48px; position: relative; background: linear-gradient( 180deg,var(--surface) 0%,var(--surface-alt) 100%); border-bottom:1px solid var(--border);}
.content-box .box-body {background: var(--surface);border: 0;border-radius: 0;}
.content-box .box-wrap {padding:22px 22px 15px;}
.box-header h2 {margin-top: 20px;padding:12px 20px;color: var(--text-dark);font-size: 17px;font-weight: 600;background: none;}
.box-header .tabs {position: absolute; top: 9px;right: 12px;}
.box-header .tabs li		{ float: left; margin-left: 3px; font-size: 11px; line-height: 20px; font-weight: bold; }
.box-header .tabs li a {padding:5px 12px;color: var(--text);background: var(--surface-muted);border: 1px solid var(--border);border-radius: 6px;}
.box-header .tabs li a:hover {color: var(--accent);background: var(--surface);}
.box-header .tabs li.active a,.box-header .tabs li a.selected {color: #ffffff;background: var(--eprms-green);border-color: var(--eprms-green);}

/* sliding boxes and tabs */

.box-slide-head span.slide-but,
.box-slide-head td.slide-but span	{ display: block; text-indent: -9999px; width: 26px; height: 24px; background: url('../images/but_slide.png') center center no-repeat !important; cursor: pointer; }
.box-slide-head td.slide-but		{ background: none; }
td.box-slide-body 			{ background: #F0f0f0 !important; } 
.box-header.box-slide-head .slide-but	{ position: absolute; top: 7px; right: 5px; }
.box-header.box-slide-head .tabs	{ right: 36px; }

/* iconbar */

.content-box .iconbar		{ background: #e9e9e9 url('../images/bck_iconbar.png') top center repeat-x; height: 143px; overflow: hidden; }
.content-box .iconbar .box-wrap	{ background: url('../images/bck_iconbar_bottom.png') center bottom repeat-x; padding-top: 15px; padding-bottom: 25px; padding-left: 42px; padding-right: 42px; position: relative; overflow: hidden; height: 103px; }

.iconbar .jcarousel-list            { height: 100px; overflow: hidden; }
.iconbar .jcarousel-prev            { background: #f9f9f9; display: block; width: 20px; height: 40px; text-indent: -9999px; border: 1px solid #FFFFFF; border-left-width: 0px; position: absolute; top: 29px; left: -42px; -moz-border-radius: 0px 3px 3px 0px; -webkit-border-radius: 0px 3px 3px 0px; border-radius: 0px 3px 3px 0px; -moz-box-shadow: 2px 1px 4px #dddddd; -webkit-box-shadow: 2px 1px 4px #dddddd; box-shadow: 2px 1px 4px #dddddd; *border-right: 1px solid #DDDDDD; *border-bottom: 1px solid #DDDDDD;}
.iconbar .jcarousel-prev-disabled   { background: url('../images/arrowleft_iconbar_off.png') center center no-repeat #f9f9f9 !important; cursor: auto !important; }
.iconbar .jcarousel-prev            { background: url('../images/arrowleft_iconbar_act.png') center center no-repeat #f9f9f9; cursor: pointer; }
.iconbar .jcarousel-prev:hover      { background: url('../images/arrowleft_iconbar_ovr.png') center center no-repeat #ffffff;}

.iconbar .jcarousel-next			{ background: #f9f9f9; display: block; width: 20px; height: 40px; text-indent: -9999px; border: 1px solid #FFFFFF; border-right-width: 0px; position: absolute; top: 29px; right: -42px; -moz-border-radius: 3px 0px 0px 3px; -webkit-border-radius: 3px 0px 0px 3px; border-radius: 3px 0px 0px 3px; -moz-box-shadow: -2px 1px 4px #dddddd; -webkit-box-shadow: -2px 1px 4px #dddddd; box-shadow: -2px 1px 4px #dddddd; *border-left: 1px solid #DDDDDD; *border-bottom: 1px solid #DDDDDD;}
.iconbar .jcarousel-next-disabled	{ background: url('../images/arrowright_iconbar_off.png') center center no-repeat #f9f9f9 !important; cursor: auto !important; }
.iconbar .jcarousel-next            { background: url('../images/arrowright_iconbar_act.png') center center no-repeat #f9f9f9; cursor: pointer; }
.iconbar .jcarousel-next:hover      { background: url('../images/arrowright_iconbar_ovr.png') center center no-repeat #ffffff;}

.main-icons			{ margin: 0px; padding: 0px; }
.main-icons ul			{ width: 100%; }
.main-icons li			{ width: 120px; float: left; text-align: center; margin: 0px 5px 0px 5px; padding: 1px 0px 5px 0px; }
.main-icons li.active,
.main-icons li:hover		{ background: url('../images/bck_iconbar_ovr.png') center -15px no-repeat ; width: 118px; padding: 0px 0px 5px 0px; border: 1px solid #f3f3f3; border-bottom-width: 0px; -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; }
.main-icons a			{ color: var(--text-strong); text-decoration: none; display: block; padding-top: 14px; text-shadow:0px 1px 2px rgba(0, 0, 0, .25); }
.main-icons a:hover		{ color: #00A5C4; text-decoration: none; padding-top: 13px; text-shadow:0px 1px 10px rgba(255, 255, 255, 1.0); border: 1px solid #FFFFFF; border-bottom-width: 0px; -moz-border-radius: 4px 4px 0px 0px; -webkit-border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;  }
.main-icons li.active a		{ color: #47AB00; text-decoration: none; padding-top: 13px; text-shadow:0px 1px 1px rgba(71, 171, 0, .4); border: 1px solid #FFFFFF; border-bottom-width: 0px; -moz-border-radius: 4px 4px 0px 0px; -webkit-border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;  }
.main-icons .icon		{ display: block; width: 64px; height: 64px; margin: 0px auto; }
.main-icons .text		{ display: block; padding: 5px 0px 0px 0px; }

/* elements inside of content boxes */

.box-body p			{ margin: 0px; margin: 0px; padding-bottom: 20px; }

/*** sidebars ***/

.content-box .sidebar1-2		{ width: 100%; background: url('../images/bck_sidebar.png') 486px 0px repeat-y; margin-bottom: 10px;}
.content-box .sidebar1-2 .sidebar	{ width: 448px; float: right; padding: 10px 10px 15px 10px; }
.content-box .sidebar1-3		{ width: 100%; background: url('../images/bck_sidebar.png') 648px 0px repeat-y; margin-bottom: 10px;}
.content-box .sidebar1-3 .sidebar	{ width: 286px; float: right; padding: 10px 10px 15px 10px; }
.content-box .sidebar1-4		{ width: 100%; background: url('../images/bck_sidebar.png') 729px 0px repeat-y; margin-bottom: 10px;}
.content-box .sidebar1-4 .sidebar	{ width: 205px; float: right; padding: 10px 10px 15px 10px; }
/*
.sidemenu			{ width: 100%; }
.sidemenu ul.list		{ padding-bottom: 15px; line-height: 16px; }
.sidemenu ul.list li		{ margin-bottom: 3px; background: url('../images/ui-bg_glass_100_f6f6f6_1x400.png') left center repeat-x; border: 1px solid #DDDDDD; border-bottom: 1px solid #CCCCCC; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.sidemenu ul.list li:hover	{ background: #FFFFFF; }
.sidemenu ul.list a		{ color: #00A5C4; text-decoration: none; background: url('../images/arrow_sm_blue.gif') 7px 10px no-repeat; display: block; padding: 5px 5px 5px 17px; }
.sidemenu ul.list a:hover 	{ color: #00A5C4; text-decoration: none; background: url('../images/arrow_sm_blue.gif') 7px 10px no-repeat; }
.sidemenu ul.list li.active	{ background: #FFFFFF; }
.sidemenu ul.list li.active a	{ color: var(--text-strong); text-decoration: none; background: url('../images/arrow_sm_black.gif') 7px 10px no-repeat; font-weight: bold; }
.sidebar p			{ padding-bottom: 10px; }
*/

/**************
**** tables ***
**************/

table				{ width: 100%; margin: 0px; margin-bottom: 20px; }

table.basic			{ border-spacing: 0px; border-collapse: separate; border-top: 3px solid #cccccc; border-bottom: 1px solid #FFFFFF; line-height: 16px; }
table.basic caption		{ background: none #bbbbbb; color: #FFFFFF; font-size: 14px; padding: 5px 11px 5px 11px; text-align: center;}
table.basic tr:hover		{ background: #F5F5F5 !important; }
table.basic thead		{ color: var(--text-strong); }
table.basic th,
table.basic .title		{ border-top: 1px solid #FFFFFF; border-bottom: 1px solid #cccccc; font-weight: bold; padding: 3px 6px 3px 0px; white-space: nowrap; text-align: left; }
table.basic tbody th		{ }
table.basic td			{ background: none !important; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #cccccc; padding: 3px 8px 3px 0px !important; line-height: 16px !important; }
table.basic thead		{ border-top: 1px solid #FFFFFF; border-bottom: 1px solid #cccccc; padding: 3px 6px 3px 0px; white-space: nowrap; }
table.basic td p		{ padding-bottom: 3px; padding-top: 3px; }

/*table.style1			{ border: 5px solid #DDDDDD; }*/
table.style1 caption 		{ background: none #959595; color: #FFFFFF; font-size: 14px; padding: 5px 11px 5px 11px; text-align: left; }
table.style1 tr:hover		{ background: url('../images/bck_black_10.png'); }
table.style1 th			{ background: #DDDDDD; border-bottom: 1px solid #FFFFFF; line-height: 22px; padding: 4px 6px 4px 6px; color: var(--text-strong); white-space: nowrap; text-align: left; }
table.style1 thead th		{ padding-top: 2px; }
table.style1 thead td		{ background: #DDDDDD; border-bottom: 1px solid #FFFFFF; text-align: left; line-height: 22px; padding: 2px 6px 4px 6px; white-space: nowrap; }
table.style1 tbody th,
table.style1 tbody .title	{ background: url('../images/bck_black_5.png'); font-weight: bold; white-space: nowrap; color: #666666; }
table.style1 td			{ background: url('../images/bck_white_75.png'); border-bottom: 1px solid #DDDDDD; line-height: 26px; padding: 4px 6px 4px 6px; 	vertical-align: middle;}
table.style1 .icon16		{ margin-top: 3px; margin-bottom: 3px; }
table.style1 td.vcenter		{ vertical-align: middle; }
table.style1 td p		{ padding-bottom: 3px; padding-top: 3px; }

.chart-wrap table		{ border: 5px solid #DDDDDD; }
.chart-wrap caption 		{ background: none #959595; color: #FFFFFF; font-size: 14px; padding: 5px 11px 5px 11px; text-align: left; }
.chart-wrap tr:hover		{ background: url('../images/bck_black_10.png'); }
.chart-wrap th			{ background: #DDDDDD; border-bottom: 1px solid #FFFFFF; text-align: left; line-height: 22px; padding: 4px 6px 4px 6px; color: var(--text-strong); white-space: nowrap; }
.chart-wrap thead th		{ padding-top: 2px; }
.chart-wrap thead td		{ background: #DDDDDD; border-bottom: 1px solid #FFFFFF; text-align: left; line-height: 22px; padding: 2px 6px 4px 6px; white-space: nowrap; }
.chart-wrap tbody th		{ background: url('../images/bck_black_5.png'); font-weight: bold; white-space: nowrap; color: #666666; }
.chart-wrap td			{ background: url('../images/bck_white_75.png'); border-bottom: 1px solid #DDDDDD; line-height: 22px; padding: 4px 6px 4px 6px; }

table .vcenter			{ vertical-align: middle; }
table .full			{ width: 100%; }
table .value			{ color: #47AB00; }
table .nowrap			{ white-space: nowrap; }

/*** forms ***/

form				{ width: 100%; }
label				{ line-height: 22px; cursor: pointer; }
label:hover			{ color: var(--text-strong); }
input.checkbox			{ display: inline; position: relative; left: 1px; top: 1px; cursor: pointer;}
input.radio			{ display: inline; position: relative; top: 2px; left: -1px; }
input.text			{ display: inline; border: 1px solid #B8B8B8; font-size: 12px; font-family: arial; color: var(--text-strong); height: 16px; padding: 2px 4px 2px 4px; }
input.submit			{ display: inline; border-width: 0px; font-size: 11px; font-family: arial; color: #FFFFFF; font-weight: bold; cursor: pointer; background: url('../images/button_glas1.png') center center repeat-x #333333; padding: 3px 10px 3px 10px; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;}
input.form-file                 { display: inline; height: auto; font-size: 12px !important; }
select				{ display: inline; border: 1px solid #B8B8B8; font-size: 12px; font-family: arial; color: var(--text-strong); height: 22px; padding: 2px; }
textarea			{ display: inline; border: 1px solid #B8B8B8; font-size: 12px; font-family: arial; color: var(--text-strong); padding: 4px; border-radius: 4px; }
/* All text-type inputs and textareas: 4px corners */
input.text, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="date"], input[type="search"], input[type="url"], input:not([type]), textarea { border-radius: 4px; }

.form-label			{ display: block; width: 140px; }	/* 26.09.2026*/
.form-field			{ padding-bottom: 5px; }
span.required			{ color: #FF0000; font-weight: bold; }
label.error        		{ color: #FF0000; }

/*** page navigation ***/

.tab-footer		{ width: auto; padding-bottom: 10px; margin-top: -10px; }
.pager			{ font-size: 11px; line-height: 20px; }
.pager a		{ display: block; float: left; }
.pager .nav		{ display: block; float: left; }
.pager .nav a		{ width: 20px; height: 20px; border: 1px solid #dddddd; border-bottom: 1px solid #cccccc; }
.pager .nav a span	{ display: block; font-size: 0%; visibility: hidden; text-indent: -9999px; }
.pager a.first		{ background: url('../images/arrow_leftend_off.png') center center no-repeat; border-right-width: 0px; -moz-border-radius: 3px 0px 0px 3px; -webkit-border-radius: 3px 0px 0px 3px; border-radius: 3px 0px 0px 3px; }
.pager a.first:hover	{ background: url('../images/arrow_leftend_ovr.png') center center no-repeat; }
.pager a.previous	{ background: url('../images/arrow_left_off.png') center center no-repeat; border-left-width: 0px; -moz-border-radius: 0px 3px 3px 0px; -webkit-border-radius: 0px 3px 3px 0px; border-radius: 0px 3px 3px 0px; }
.pager a.previous:hover	{ background: url('../images/arrow_left_ovr.png') center center no-repeat; }
.pager a.last		{ background: url('../images/arrow_rightend_off.png') center center no-repeat; border-left-width: 0px; -moz-border-radius: 0px 3px 3px 0px; -webkit-border-radius: 0px 3px 3px 0px; border-radius: 0px 3px 3px 0px; }
.pager a.last:hover	{ background: url('../images/arrow_rightend_ovr.png') center center no-repeat; }
.pager a.next		{ background: url('../images/arrow_right_off.png') center center no-repeat; border-right-width: 0px; -moz-border-radius: 3px 0px 0px 3px; -webkit-border-radius: 3px 0px 0px 3px; border-radius: 3px 0px 0px 3px; }
.pager a.next:hover	{ background: url('../images/arrow_right_ovr.png') center center no-repeat; }
.pager .pages 		{ display: block; float: left; margin: 0px 4px 0px 4px; font-weight: bold; }
.pager .pages a		{ min-width: 20px; margin: 0px 1px 0px 1px; background: url("../images/button_glas2.png") repeat-x center center #EEEEEE; text-align: center; border: 1px solid #dddddd; border-bottom: 1px solid #cccccc; color: var(--text-strong); text-decoration: none; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.pager .pages a	span	{ padding: 0px 2px 0px 2px; }
.pager .pages a:hover	{ background: url('../images/bck_white_50.png'); color: #00A5C4; text-decoration: none; }
.pager .pages a.active	{ background: url('../images/page_active.gif'); color: #FFFFFF; text-decoration: none; font-weight: bold; border-width: 0px; line-height: 22px; min-width: 22px; }

/* ---------------------------------------------------------
   QUOTE   ---IEJ
   --------------------------------------------------------- */
q {
    display: block;
    min-height: 42px;
    padding: 12px 15px 12px 35px;
    color: var(--text);
    background:
        #f7faf8
        url("../images/quote.png")
        no-repeat 10px 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--eprms-green);
    border-radius: 7px;
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 13px;line-height: 20px;
}

q cite { display: block;padding-top: 7px;color: var(--text-light);font-size: 11px;}

/* ---------------------------------------------------------
   RULES   ---IEJ
   --------------------------------------------------------- */
.rule, .rule2 { padding-top: 5px;padding-bottom: 18px;
    background:
        linear-gradient(
            to right,
            transparent,
            var(--border),
            transparent
        )
        center center
        no-repeat;
    background-size: 100% 1px;
}

/* ---------------------------------------------------------
   FOOTER ---IEJ 
   --------------------------------------------------------- */
.footer {width: 100%;min-width: 1000px;padding:25px 0;color: #8b9690;background: var(--surface);border-top:1px solid var(--border);font-size: 12px;}
.footer strong { color: var(--text);}
.footer .copy a {color: var(--accent);font-weight: 600;}
.footer .copy a:hover {color: var(--accent-strong);}

/* *********************************************************************
 * DataTables Styles
 * *********************************************************************/

.dataTables_wrapper 						{ }
.dataTables_wrapper table					{ width: 100% !important; margin: 0px 0px 20px 0px; }
.dataTables_wrapper .dataTables_length 				{ float: left; margin: 0px 0px 15px 0px; }

.dataTables_wrapper .dataTables_filter 				{ float: right; margin: 0px 0px 15px 0px; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select			{ height: 28px; padding: 2px 8px; font: inherit; color: var(--text-dark); background: var(--surface); border: 1px solid #cccccc; border-radius: 6px; vertical-align: middle; box-sizing: border-box; }
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus		{ outline: none; border-color: var(--eprms-green); box-shadow: 0 0 0 3px rgba(25, 135, 84, .12); }
.dataTables_wrapper .dataTables_info				{ padding-top: 4px; color: var(--text-light); }

/* sorting arrows (DataTables 1.6 and 1.10 use the same classes) */
.datatable 							{ clear: both; }
.dataTables_wrapper thead th.sorting,
.dataTables_wrapper thead th.sorting_asc,
.dataTables_wrapper thead th.sorting_desc			{ cursor: pointer; }
.dataTables_wrapper thead th.sorting:after,
.dataTables_wrapper thead th.sorting_asc:after,
.dataTables_wrapper thead th.sorting_desc:after		{ padding-left: 6px; font-size: 10px; font-weight: normal; }
.dataTables_wrapper thead th.sorting:after			{ content: "\2195"; color: var(--text-faint); }
.dataTables_wrapper thead th.sorting_asc:after			{ content: "\25B2"; color: var(--accent); }
.dataTables_wrapper thead th.sorting_desc:after			{ content: "\25BC"; color: var(--accent); }

/* pagination = the tab buttons in .box-header .tabs (DataTables 1.6: .paginate_active, 1.10: .current / .disabled) */
.dataTables_wrapper .dataTables_paginate 			{ float: right; display: flex; gap: 4px; align-items: center; margin-top: -4px; padding-bottom: 10px; font-size: 12px; }
.dataTables_wrapper .dataTables_paginate span			{ display: contents; }
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_active	{ display: inline-block; box-sizing: border-box; min-width: 28px; height: 28px; padding: 0px 8px; line-height: 26px; text-align: center; font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover	{ color: var(--accent); background: var(--surface); text-decoration: none; }
.dataTables_wrapper .dataTables_paginate .paginate_active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover	{ color: #ffffff; background: var(--eprms-green); border-color: var(--eprms-green); cursor: default; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button_disabled	{ color: var(--text); background: var(--surface-muted); opacity: .45; cursor: default; }
.dataTables_wrapper .dataTables_paginate .first,
.dataTables_wrapper .dataTables_paginate .previous,
.dataTables_wrapper .dataTables_paginate .next,
.dataTables_wrapper .dataTables_paginate .last			{ font-size: 0; }
.dataTables_wrapper .dataTables_paginate .first:before,
.dataTables_wrapper .dataTables_paginate .previous:before,
.dataTables_wrapper .dataTables_paginate .next:before,
.dataTables_wrapper .dataTables_paginate .last:before		{ font-size: 15px; line-height: 24px; }
.dataTables_wrapper .dataTables_paginate .first:before		{ content: "\00AB"; }
.dataTables_wrapper .dataTables_paginate .previous:before	{ content: "\2039"; }
.dataTables_wrapper .dataTables_paginate .next:before		{ content: "\203A"; }
.dataTables_wrapper .dataTables_paginate .last:before		{ content: "\00BB"; }

/* *********************************************************************
 * Modal window
 * *********************************************************************/

.pagetop .modal-window,
.main .modal-window,
.footer .modal-window 		{ display: none; }
.modal-window 			{ width: auto; }
.modal-window p			{ padding-bottom: 20px; line-height: 16px; }
.modal-400			{ width: 400px; }
.modal-600			{ width: 600px; }
.modal-800			{ width: 800px; }
#fancybox-img			{ width: auto !important; }


/* *********************************************************************
 * WYSIWYG
 * *********************************************************************/

.jwysiwyg 	{ min-height: 200px; }
.tinymce 	{ min-height: 300px; }
.wysiwyg 	{ width: auto !important; margin-bottom: 20px; }
.wysiwyg iframe { width: 100% !important; }
.mceEditor	{ display: block; margin-bottom: 20px; }
.mceContentBody,
table.mceLayout { width: 100% !important; }


/* *********************************************************************
 * Quick edit
 * *********************************************************************/

.edit-field textarea 	{ width: 95% !important; }
.edit-field input 	{ width: auto !important; display: block; border: 1px solid #B8B8B8; font-size: 12px; font-family: arial; color: var(--text-strong); height: 16px; padding: 2px 4px 2px 4px; }
.long input 		{ width: 95% !important; }


/* *********************************************************************
 * Gallery
 * *********************************************************************/
 
.gallery	{ background: #FFFFFF; color: var(--text-strong); display:block; padding: 10px 10px 10px 10px; margin-bottom: 15px; border: 1px solid #DDDDDD; border-bottom: 1px solid #CCCCCC; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; }
.gallery li	{ display: inline-block; float: left; vertical-align: top; }

.gal-large li			{ width: 148px; margin: 5px 5px 0px 5px; padding-bottom: 10px; }
.gal-large .thumb		{ display: block; width: 140px; height: 140px; border: 1px solid #BBBBBB; padding: 3px; background: #FFFFFF; margin-bottom: 4px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;}
.gal-large .title		{ color: var(--text-strong); display: block; font-size: 11px; line-height: 18px; padding: 0px 6px 0px 6px; background: url('../images/ui-bg_glass_100_f6f6f6_1x400.png') left center repeat-x; border: 1px solid #DDDDDD; border-bottom: 1px solid #CCCCCC; text-align: center; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
.gal-large .title .wrap		{ display: block; white-space: nowrap; overflow: hidden; }
.gal-large li:hover .title	{ color: #FFFFFF; height: 20px; position: relative; border-width: 0px; padding: 0px; }
.gal-large li:hover .wrap	{ padding: 0px 6px 0px 6px; border: 1px solid #ffffff; min-width: 132px; overflow: visible; position: absolute; top: 0px; left: 0px; background: #333333; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }

.gal-small			{ padding: 8px; }
.gal-small li			{ width: 56px; margin: 3px 3px 0px 3px; padding-bottom: 5px; }
.gal-small .thumb		{ display: block; width: 48px; height: 48px; border: 1px solid #BBBBBB; padding: 3px; background: #FFFFFF; margin-bottom: 0px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;}

.gal-footer			{ padding-bottom: 20px; }


/* **************************
 * Custom contents
 * **************************/
 
/* links with icons */

.icon-links			{ margin-bottom: 10px; }
.icon-links li			{ padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #dddddd; }
.icon-links li.lastlnk		{ padding-bottom: 10px; margin-bottom: 0px; border-bottom-width: 0px; }
.icon-links .icon		{ width: 48px; height: 48px; float: left; background: url('../images/bck_icon48_dark.png') 0 0 no-repeat; padding: 6px; -moz-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;}
.icon-links a span		{ margin-left: 70px; display: block; font-size: 13px; padding-top: 6px; font-weight: bold; }
.icon-links a:hover span	{ text-decoration: underline; }
.icon-links p			{ margin-left: 70px; padding-bottom: 0px; padding-top: 5px;}

.input_form td { padding: 4px;}

/*---------------------------------------------------------------------------------------
/*	UPLOAD FILES ---IEJ 26.09.2026
/*---------------------------------------------------------------------------------------*/
.pdata-upload-header {padding: 0 !important;background: var(--surface);border: 0 !important;}
.pdata-upload-form { display: flex;flex-direction: column;align-items: stretch;gap: 10px;width: 420px;max-width: 100%;padding: 14px;box-sizing: border-box;background: var(--surface-alt);border: 1px solid var(--line);border-radius: 8px;box-shadow: 0 2px 6px rgba(0, 0, 0, .04);}

/* Datei */
.upload-field {display: flex;flex-direction: column;gap: 5px;width: 100%;}
.upload-field label {display: block;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.upload-field label i {margin-right: 5px;color: #198754;}
.upload-file input[type="file"] {width: 100%;height: 36px;padding: 6px 9px;box-sizing: border-box;background: var(--surface);border: 1px solid var(--field-border);border-radius: 6px;color: var(--label);font-family: "Segoe UI", Arial, sans-serif;font-size: 12px;}

/* Dokumenttyp */
.upload-type {width: 100%;}
.upload-type select {width: 100%;height: 36px;padding: 0 10px;box-sizing: border-box;background: var(--surface);border: 1px solid var(--field-border);border-radius: 6px;color: var(--field-text);font-family: "Segoe UI", Arial, sans-serif;font-size: 12px;}

/* Upload Button */
.upload-action {display: flex;justify-content: flex-end;width: 100%;}
.pdata-upload-button {height: 36px;min-width: 100px;padding: 0 16px;border: 1px solid #146c43;border-radius: 6px;background: #198754;color: #ffffff;font-family: "Segoe UI", Arial, sans-serif;font-size: 12px;font-weight: 600;cursor: pointer;box-shadow: 0 2px 4px rgba(25, 135, 84, .15);
    transition:
        background .15s ease,
        box-shadow .15s ease,
        transform .1s ease;
}

.pdata-upload-button:hover {background: #146c43;box-shadow: 0 4px 8px rgba(25, 135, 84, .20);transform: translateY(-1px);}
.pdata-upload-button i {margin-right: 6px;}

/* =========================================================
   ePRMS - Uploaded Files
   ========================================================= */

.pdata-file-row {
    background: var(--surface);
    transition:
        background-color .15s ease,
        box-shadow .15s ease;
}
.pdata-file-row:hover {background: var(--surface-hover);}

/* File name */
.pdata-file-name {padding: 9px 12px !important;vertical-align: middle !important;}
.pdata-file-name a {display: inline-flex;align-items: center;gap: 8px;color: #198754;font-size: 12px;font-weight: 500;text-decoration: none;}
.pdata-file-name a i {width: 20px;height: 20px;display: inline-flex;align-items: center;justify-content: center;background: #e9f7ef;border-radius: 5px;color: #198754;font-size: 11px;}
.pdata-file-name a:hover {color: #146c43;text-decoration: underline;}
.pdata-file-name a:hover i {background: #d9f2e3;}

/* File type */
.pdata-file-type {padding: 9px 12px !important;vertical-align: middle !important;}
.pdata-file-type a {display: inline-block;padding: 4px 9px;background: var(--surface-muted);border: 1px solid #e0e5e2;border-radius: 5px;color: var(--label);font-size: 11px;font-weight: 500;text-decoration: none;}
.pdata-file-type a:hover {background: #e9f7ef;border-color: #b9ddc8;color: #198754;}

/* Delete */
.pdata-file-delete {width: 40px;padding: 9px 8px !important;text-align: center;vertical-align: middle !important;}
.pdata-delete-button {width: 28px;height: 28px;display: inline-flex;align-items: center;justify-content: center;background: var(--danger-bg);border: 1px solid var(--danger-line);border-radius: 6px;color: var(--danger-text);text-decoration: none;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .1s ease;
}

.pdata-delete-button:hover { background: var(--danger-bg-hover);border-color: var(--danger-line-hover);color: var(--danger-text-hover);transform: translateY(-1px);}
.pdata-delete-button i { font-size: 12px;}
.pdata-files-header th {padding: 8px 12px !important;background: var(--surface-alt);border-bottom: 1px solid var(--line);color: #68756f;font-size: 10px;font-weight: 600;text-transform: uppercase;letter-spacing: .04em;}
.pdata-files-header th:last-child {width: 40px;}

/* =========================================================
   ePRMS - Surgical Intervention
   ========================================================= */
.surgical-table { width: 420px;border-collapse: separate !important;border-spacing: 0;background: var(--surface);border: 1px solid var(--line);border-radius: 8px;overflow: hidden;box-shadow: 0 2px 6px rgba(0, 0, 0, .04);}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.surgical-table thead th {padding: 10px 12px !important;background: var(--surface-alt);border-bottom: 1px solid var(--line);color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;text-align: left;}
.surgical-table thead th i {margin-right: 6px;color: #198754;}
.surgical-function-header {width: 70px;}

/* ---------------------------------------------------------
   Add row
   --------------------------------------------------------- */
.surgical-add-row {background: var(--surface-foot);}
.surgical-add-row td {padding: 10px 12px !important;border-bottom: 1px solid #e8ecea;}

/* ---------------------------------------------------------
   Select
   --------------------------------------------------------- */
.surgical-select {width: 100%;max-width: 360px;height: 36px;padding: 0 10px;box-sizing: border-box;background: var(--surface);border: 1px solid var(--field-border);border-radius: 6px;color: var(--field-text);font-family: "Segoe UI", Arial, sans-serif;font-size: 12px;cursor: pointer;transition:border-color .15s ease,box-shadow .15s ease;}
.surgical-select:hover {border-color: #198754;}
.surgical-select:focus {outline: none;border-color: #198754;box-shadow:0 0 0 3px rgba(25, 135, 84, .12);}

/* ---------------------------------------------------------
   Action column
   --------------------------------------------------------- */
.surgical-action {width: 70px;padding: 8px 10px !important;text-align: center;vertical-align: middle !important;}

/* ---------------------------------------------------------
   Add button
   --------------------------------------------------------- */
.surgical-add-button {height: 34px;min-width: 72px;padding: 0 12px;border: 1px solid #146c43;border-radius: 6px;background: #198754;color: #ffffff;font-family: "Segoe UI", Arial, sans-serif;font-size: 11px;font-weight: 600;cursor: pointer;box-shadow: 0 2px 4px rgba(25, 135, 84, .15);transition:background .15s ease,box-shadow .15s ease,transform .1s ease;}
.surgical-add-button i {margin-right: 5px;}
.surgical-add-button:hover {background: #146c43;box-shadow:0 4px 8px rgba(25, 135, 84, .20);transform: translateY(-1px);}
.surgical-add-button:active {transform: translateY(0);}

/* ---------------------------------------------------------
   Existing rows
   --------------------------------------------------------- */
.surgical-row {background: var(--surface);
    transition:
        background-color .15s ease;
}
.surgical-row:hover {background: var(--surface-hover);}
.surgical-row td {padding: 9px 12px !important;border-bottom: 1px solid var(--line-soft);}
.surgical-row:last-child td {border-bottom: 0;}

/* ---------------------------------------------------------
   Surgical name
   --------------------------------------------------------- */
.surgical-name {
    color: var(--field-text);

    font-size: 12px;
    font-weight: 500;
}
.surgical-name i {margin-right: 7px;color: #198754;font-size: 12px;}
/* ---------------------------------------------------------
   Delete button
   --------------------------------------------------------- */
.surgical-delete-button {width: 28px;height: 28px;display: inline-flex;align-items: center;justify-content: center;background: var(--danger-bg);border: 1px solid var(--danger-line);border-radius: 6px;color: var(--danger-text);text-decoration: none;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .1s ease;
}
.surgical-delete-button:hover {background: var(--danger-bg-hover);border-color: var(--danger-line-hover);color: var(--danger-text-hover);transform: translateY(-1px);}
.surgical-delete-button i {font-size: 12px;}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 500px) {
    .surgical-table {font-size: 11px;}
    .surgical-select {max-width: 100%;}
    .surgical-action { width: 60px; padding-left: 5px !important;padding-right: 5px !important;}
    .surgical-add-button { min-width: 60px;padding: 0 8px;}
    .surgical-add-button i {margin-right: 3px;}
}


/* ---------------------------------------------------------
   Patient timeline (adm_patient.php)
   --------------------------------------------------------- */
.eprms-timeline {width: 400px;box-sizing: border-box;background: var(--surface);border: 1px solid var(--line);border-radius: var(--radius);box-shadow: 0 2px 6px rgba(0, 0, 0, .04);overflow: hidden;}
.eprms-timeline {--tl-visit: var(--eprms-green);--tl-op: var(--eprms-blue);}
.eprms-timeline-head {display: flex;align-items: center;justify-content: space-between;gap: 10px;padding: 9px 12px;background: var(--surface-alt);border-bottom: 1px solid var(--line);}
.eprms-timeline-head h4 {margin: 0;padding: 0;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-timeline-count {display: inline-block;min-width: 18px;margin-left: 6px;padding: 0 6px;border-radius: 9px;background: var(--eprms-green-light);color: var(--accent-strong);font-size: 10px;font-weight: 600;line-height: 18px;text-align: center;letter-spacing: 0;}
.eprms-timeline-legend {display: flex;gap: 10px;margin: 0 !important;padding: 0;list-style: none;}
.eprms-timeline-legend li {display: flex;align-items: center;gap: 4px;color: var(--text-light);font-size: 10px;}
.eprms-timeline-legend li:before {content: "";width: 7px;height: 7px;border-radius: 50%;background: var(--tl-dot);}

.eprms-timeline .tl-visit {--tl-dot: var(--tl-visit);}
.eprms-timeline .tl-op {--tl-dot: var(--tl-op);}

.eprms-timeline-body {max-height: 250px;overflow-y: auto;padding: 6px 0;scrollbar-width: thin;scrollbar-color: var(--field-border) transparent;}
.eprms-timeline-empty {margin: 0;padding: 18px 12px;color: var(--text-light);font-style: italic;text-align: center;}

.eprms-timeline-list {position: relative;margin: 0 !important;padding: 0;list-style: none;}
.eprms-timeline-list li {position: relative;margin: 0;padding: 0 0 0 30px;}
/* rail: runs through the dots, stops at the first and last one */
.eprms-timeline-list li:before {content: "";position: absolute;left: 16px;top: 0;bottom: 0;width: 2px;background: var(--line-rail);}
.eprms-timeline-list li:first-child:before {top: 15px;}
.eprms-timeline-list li:last-child:before {bottom: auto;height: 15px;}
.eprms-timeline-list li:only-child:before {display: none;}
/* dot */
.eprms-timeline-list li:after {content: "";position: absolute;left: 12px;top: 11px;width: 10px;height: 10px;box-sizing: border-box;border-radius: 50%;background: var(--surface);border: 2px solid var(--tl-dot);box-shadow: 0 0 0 3px var(--surface);}

.eprms-timeline-list a {display: block;margin: 0 8px 0 0;padding: 6px 8px;border-radius: 6px;color: var(--text);text-decoration: none;transition: background-color .15s ease;}
.eprms-timeline-list a:hover {background: var(--surface-hover-strong);}
.eprms-timeline-list a:focus-visible {outline: none;box-shadow: 0 0 0 3px rgba(25, 135, 84, .18);}
.eprms-timeline-list li:hover:after {background: var(--tl-dot);}

.eprms-timeline .tl-meta {display: flex;align-items: center;gap: 8px;}
.eprms-timeline .tl-date {color: var(--text-dark);font-size: 12px;font-weight: 600;font-variant-numeric: tabular-nums;}
.eprms-timeline .tl-type {padding: 0 6px;border-radius: 4px;background: var(--surface-muted);color: var(--label);font-size: 10px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .03em;}
.eprms-timeline .tl-files {display: inline-flex;margin-left: auto;color: var(--text-light);}
.eprms-timeline a:hover .tl-files {color: var(--accent);}
.eprms-timeline .tl-note {display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;margin-top: 1px;color: var(--text);font-size: 12px;line-height: 1.4;}


/* ---------------------------------------------------------
   Patient field cards: MRN / Insurance, Pop-up Reminder (adm_patient.php)
   Same frame as .eprms-timeline
   --------------------------------------------------------- */
.eprms-field-card {display: flex;align-items: center;gap: 10px;width: 400px;box-sizing: border-box;margin: 0 0 15px;padding: 10px 12px;background: var(--surface);border: 1px solid var(--line);border-radius: var(--radius);box-shadow: 0 2px 6px rgba(0, 0, 0, .04);}
.eprms-field-label {margin: 0;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;white-space: nowrap;}
.eprms-field-mrn {margin-right: 6px;padding: 0 8px;border-radius: 4px;background: var(--eprms-green-light);color: var(--accent-strong);font-size: 12px;font-weight: 600;line-height: 24px;font-variant-numeric: tabular-nums;white-space: nowrap;}
.eprms-field-card .eprms-field-input {flex: 1;min-width: 0;height: 30px;box-sizing: border-box;padding: 0 8px;background: var(--surface);border: 1px solid var(--field-border);border-radius: 4px;color: var(--field-text);font-family: "Segoe UI", Arial, sans-serif;font-size: 12px;transition: border-color .15s ease, box-shadow .15s ease;}
.eprms-field-card .eprms-field-input:hover {border-color: var(--eprms-green);}
.eprms-field-card .eprms-field-input:focus {outline: none;border-color: var(--eprms-green);box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);}


/* ---------------------------------------------------------
   Patient questionnaire (pms_questionaire.php)
   Same card frame as .eprms-timeline / .eprms-field-card
   --------------------------------------------------------- */
.eprms-q {display: grid;gap: 16px;clear: both;}
.eprms-q-card {background: var(--surface);border: 1px solid var(--line);border-radius: var(--radius);box-shadow: 0 2px 6px rgba(0, 0, 0, .04);overflow: hidden;}
.eprms-q-head {display: flex;align-items: center;justify-content: space-between;gap: 10px;padding: 9px 14px;background: var(--surface-alt);border-bottom: 1px solid var(--line);}
.eprms-q-title {margin: 0;padding: 0;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-q-count {min-width: 18px;padding: 0 7px;border-radius: 9px;background: var(--surface-muted);color: var(--text-light);font-size: 10px;font-weight: 600;line-height: 18px;text-align: center;font-variant-numeric: tabular-nums;}
.eprms-q-count.has {background: var(--eprms-green-light);color: var(--accent-strong);}

/* Patient card */
.eprms-q-patient {display: flex;flex-wrap: wrap;align-items: center;gap: 10px 28px;padding: 12px 16px;}
.eprms-q-patient-name {color: var(--text-dark);font-size: 16px;font-weight: 600;}
.eprms-q-patient-name span {margin-left: 6px;color: var(--text-light);font-size: 13px;font-weight: 400;}
.eprms-q-facts {display: flex;flex-wrap: wrap;gap: 8px 22px;margin: 0;}
.eprms-q-facts div {display: flex;align-items: center;gap: 8px;}
.eprms-q-facts dt {color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-q-facts dd {margin: 0;color: var(--text-dark);font-weight: 600;font-variant-numeric: tabular-nums;}
.eprms-q-facts dd.eprms-q-pill {padding: 0 8px;border-radius: 4px;background: var(--eprms-green-light);color: var(--accent-strong);line-height: 24px;}
.eprms-q-facts .eprms-q-updated dd {color: var(--text-light);font-weight: 400;}
.eprms-q-patient .eprms-q-facts {flex: 1 1 auto;}
.eprms-q-facts .eprms-q-updated {margin-left: auto;}

/* Condition cards */
.eprms-q-groups {display: grid;grid-template-columns: repeat(3, minmax(0, 1fr));gap: 16px;align-items: start;}
.eprms-q-checks {display: grid;gap: 2px;padding: 8px;}
.eprms-q-check {position: relative;display: flex;align-items: center;gap: 10px;padding: 6px 8px;border-radius: 6px;color: var(--text-dark);font-size: 13px;cursor: pointer;user-select: none;transition: background-color .15s ease;}
.eprms-q-check:hover {background: var(--surface-hover-strong);}
.eprms-q-check input {position: absolute;opacity: 0;width: 1px;height: 1px;margin: 0;}
.eprms-q-box {flex: none;position: relative;width: 18px;height: 18px;box-sizing: border-box;border: 2px solid #b5c0bb;border-radius: 4px;background: var(--surface);transition: background-color .15s ease, border-color .15s ease;}
.eprms-q-check:hover .eprms-q-box {border-color: var(--eprms-green);}
.eprms-q-check input:checked + .eprms-q-box {background: var(--eprms-green);border-color: var(--eprms-green);}
.eprms-q-check input:checked + .eprms-q-box:after {content: "";position: absolute;left: 4px;top: 0;width: 5px;height: 10px;border: solid #ffffff;border-width: 0 2px 2px 0;transform: rotate(45deg);}
.eprms-q-check:has(input:checked) {background: var(--eprms-green-light);font-weight: 600;}
.eprms-q-check input:focus-visible + .eprms-q-box {box-shadow: 0 0 0 3px rgba(25, 135, 84, .2);}

/* Text questions */
.eprms-q-questions {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 1px;background: var(--line-soft);}
.eprms-q-question {display: grid;gap: 8px;align-content: start;padding: 14px 16px;background: var(--surface);}
.eprms-q-wide {grid-column: 1 / -1;}
.eprms-q-question-top {display: flex;align-items: center;justify-content: space-between;gap: 10px;min-height: 26px;}
.eprms-q-question-top > label:first-child {color: var(--text-dark);font-size: 13px;font-weight: 600;}
.eprms-q-question textarea {width: 100%;min-height: 64px;box-sizing: border-box;padding: 7px 9px;background: var(--surface);border: 1px solid var(--field-border);border-radius: 4px;color: var(--field-text);font: 12px/1.45 "Segoe UI", Arial, sans-serif;resize: vertical;transition: border-color .15s ease, box-shadow .15s ease;}
.eprms-q-question textarea:hover {border-color: var(--eprms-green);}
.eprms-q-question textarea:focus {outline: none;border-color: var(--eprms-green);box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);}
.eprms-q-question textarea::placeholder {color: var(--placeholder);}

/* Yes / No switch: one checkbox, two halves */
.eprms-q-yn {position: relative;display: inline-flex;flex: none;border: 1px solid var(--field-border);border-radius: 6px;overflow: hidden;cursor: pointer;user-select: none;}
.eprms-q-yn input {position: absolute;opacity: 0;width: 1px;height: 1px;margin: 0;}
.eprms-q-yn span {padding: 2px 12px;color: var(--text-light);font-size: 11px;font-weight: 600;line-height: 18px;transition: background-color .15s ease, color .15s ease;}
.eprms-q-yn input:not(:checked) ~ .no {background: var(--surface-muted);color: var(--label);}
.eprms-q-yn input:checked ~ .yes {background: var(--eprms-green);color: #ffffff;}
.eprms-q-yn:has(input:focus-visible) {box-shadow: 0 0 0 3px rgba(25, 135, 84, .2);}

/* Save bar */
.eprms-q-save {display: flex;align-items: center;justify-content: flex-end;gap: 14px;}
.eprms-q-summary {color: var(--text-light);font-size: 12px;}
.eprms-q-button {height: 36px;padding: 0 22px;border: 1px solid var(--eprms-green-dark);border-radius: 6px;background: var(--eprms-green);color: #ffffff;font: 600 12px "Segoe UI", Arial, sans-serif;letter-spacing: .02em;cursor: pointer;box-shadow: 0 2px 4px rgba(25, 135, 84, .15);transition: background-color .15s ease, transform .1s ease;}
.eprms-q-button:hover {background: var(--eprms-green-dark);transform: translateY(-1px);}
.eprms-q-button:focus-visible {outline: none;box-shadow: 0 0 0 3px rgba(25, 135, 84, .25);}
/* button labels stay on one line; next to a long hint (.eprms-note-foot is flex) the text wraps, not the button */
.eprms-q-button, .pdata-upload-button {white-space: nowrap;flex-shrink: 0;}
/* Font Awesome icon in front of a button label */
.eprms-q-button i, .eprms-confirm-buttons button i, button.button i {margin-right: 6px;}

@media (prefers-reduced-motion: reduce) {
    .eprms-q *, .eprms-q-button {transition: none !important;}
}


/* ---------------------------------------------------------
   Visit Note (pms_pdata.php)
   Reuses .eprms-q-card / -head / -title / -count / -button and the patient card
   from the questionnaire; form column 620px + 18px gap + attachments 420px = 1058px
   --------------------------------------------------------- */
.eprms-note {display: grid;gap: 16px;clear: both;}
.eprms-note-cols {display: grid;grid-template-columns: 620px 420px;gap: 18px;align-items: start;}

.eprms-note-chip {padding: 0 8px;border-radius: 9px;font-size: 10px;font-weight: 600;line-height: 18px;white-space: nowrap;}
.eprms-note-chip-new {background: var(--warn-bg);color: var(--warn-text);}
.eprms-note-chip-saved {background: var(--eprms-green-light);color: var(--accent-strong);}

/* Form card */
.eprms-note-body {display: grid;gap: 12px;padding: 14px 16px 16px;}
.eprms-note-row {display: grid;grid-template-columns: 180px 180px;gap: 12px;}
.eprms-note-field {display: grid;gap: 5px;}
.eprms-note-field label {margin: 0;color: var(--label);font-size: 11px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .03em;}
.eprms-note-field label b {color: var(--eprms-red);font-weight: 600;}
.eprms-note-field input.text,
.eprms-note-field textarea {width: 100%;box-sizing: border-box;background: var(--surface);border: 1px solid var(--field-border);border-radius: 4px;color: var(--field-text);font: 12px/1.45 "Segoe UI", Arial, sans-serif;transition: border-color .15s ease, box-shadow .15s ease;}
.eprms-note-field input.text {height: 34px;padding: 0 9px;font-variant-numeric: tabular-nums;}
.eprms-note-field textarea {min-height: 62px;padding: 7px 9px;resize: vertical;}
.eprms-note-field input.text:hover,
.eprms-note-field textarea:hover {border-color: var(--eprms-green);}
.eprms-note-field input.text:focus,
.eprms-note-field textarea:focus {outline: none;border-color: var(--eprms-green);box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);}
.eprms-note-foot {display: flex;align-items: center;justify-content: space-between;gap: 12px;padding: 12px 16px;background: var(--surface-foot);border-top: 1px solid var(--line-soft);}
.eprms-note-foot span {color: var(--text-light);font-size: 12px;}
.eprms-note-foot span b {color: var(--eprms-red);font-weight: 600;}

/* Attachments card */
.eprms-note-attach .success-notification {width: auto;margin: 12px 14px 0;}
.eprms-note-locked {display: flex;align-items: flex-start;gap: 10px;margin: 12px 14px 0;padding: 10px 12px;background: var(--surface);border: 1px dashed var(--line-dashed);border-radius: var(--radius);color: var(--label);font-size: 12px;line-height: 1.45;}
.eprms-note-locked svg {flex: none;width: 16px;height: 16px;margin-top: 1px;color: var(--text-light);}
.eprms-note-locked strong {color: var(--text-dark);font-weight: 600;}
.eprms-note-upload {display: grid;width: auto;box-sizing: border-box;gap: 10px;margin: 12px 14px;padding: 14px;background: var(--surface-alt);border: 1px solid var(--line);border-radius: var(--radius);}
.eprms-note-attach.is-locked .eprms-note-upload {opacity: .55;}
.eprms-note-attach.is-locked .eprms-note-upload * {cursor: not-allowed;}
.eprms-note-attach.is-locked .pdata-upload-button {background: #9fb5aa;border-color: #9fb5aa;box-shadow: none;transform: none;}
.eprms-note-files {margin: 0;padding: 0 0 6px;list-style: none;}
.eprms-note-files li {display: flex;align-items: center;gap: 10px;padding: 8px 14px;border-top: 1px solid var(--line-soft);}
.eprms-note-files li:hover {background: var(--surface-hover);}
.eprms-note-file-name {flex: 1;min-width: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: var(--accent);font-size: 12px;font-weight: 500;text-decoration: none;}
.eprms-note-file-name:hover {color: var(--accent-strong);text-decoration: underline;}
.eprms-note-file-type {padding: 3px 8px;background: var(--surface-muted);border: 1px solid #e0e5e2;border-radius: 5px;color: var(--label);font-size: 11px;white-space: nowrap;}
.eprms-note-empty {margin: 0;padding: 4px 14px 14px;color: var(--text-light);font-size: 12px;font-style: italic;}
.eprms-q-head + .eprms-note-empty {padding-top: 14px;}

/* Icon buttons (file delete, list actions) */
.eprms-note-icon {flex: none;width: 28px;height: 28px;display: inline-flex;align-items: center;justify-content: center;box-sizing: border-box;background: var(--surface);border: 1px solid var(--line);border-radius: 6px;color: var(--label);text-decoration: none;transition: border-color .15s ease, color .15s ease, background-color .15s ease;}
.eprms-note-icon:hover {border-color: var(--eprms-green);color: var(--accent);}
.eprms-note-icon.danger {background: var(--danger-bg);border-color: var(--danger-line);color: var(--danger-text);}
.eprms-note-icon.danger:hover {background: var(--danger-bg-hover);border-color: var(--danger-line-hover);color: var(--danger-text-hover);}
.eprms-note-icon svg {width: 14px;height: 14px;}
.eprms-note-icon:focus-visible {outline: none;box-shadow: 0 0 0 3px rgba(25, 135, 84, .2);}

/* List of visit notes */
.eprms-note-list-wrap {overflow-x: auto;}
.eprms-note-list {width: 100%;border-collapse: collapse;}
.eprms-note-list th {padding: 8px 14px;background: var(--surface);border-bottom: 1px solid var(--line);color: var(--label);font-size: 10px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .04em;text-align: left;white-space: nowrap;}
.eprms-note-list td {padding: 8px 14px;border-bottom: 1px solid var(--line-soft);font-size: 12px;line-height: 1.45;vertical-align: middle;}
.eprms-note-list tbody tr:last-child td {border-bottom: 0;}
.eprms-note-list tbody tr:hover {background: var(--surface-hover);}
.eprms-note-list tr.current {background: var(--eprms-green-light);}
.eprms-note-list tr.current:hover {background: var(--eprms-green-light);}
.eprms-note-list tr.current td:first-child {box-shadow: inset 3px 0 0 var(--eprms-green);}
.eprms-note-list td a {color: var(--text-dark);text-decoration: none;}
.eprms-note-list td a:hover {color: var(--accent);}
.eprms-note-list .date {font-weight: 600;font-variant-numeric: tabular-nums;white-space: nowrap;}
.eprms-note-list .num {text-align: right;font-variant-numeric: tabular-nums;white-space: nowrap;}
.eprms-note-clip {width: 14px;height: 14px;vertical-align: -2px;color: var(--text-light);}
.eprms-note-actions {display: flex;justify-content: flex-end;gap: 6px;}

@media (prefers-reduced-motion: reduce) {
    .eprms-note * {transition: none !important;}
}


/* ---------------------------------------------------------
   Operative Note (pms_odata.php): same layout as the Visit Note, plus
   section dividers, a two-column team grid and a stacked right column
   --------------------------------------------------------- */
.eprms-note-sep {display: flex;align-items: center;gap: 10px;margin-top: 4px;color: var(--text-light);font-size: 10px;font-weight: 600;text-transform: uppercase;letter-spacing: .06em;}
.eprms-note-sep:after {content: "";flex: 1;height: 1px;background: var(--line-soft);}
.eprms-note-body > .eprms-note-sep:first-child {margin-top: 0;}
.eprms-note-grid2 {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 12px;}
.eprms-note-side {display: grid;gap: 16px;align-content: start;}

.eprms-op-si-label {color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-op-si-row {display: flex;gap: 8px;}
.eprms-op-si-row .surgical-select {flex: 1;min-width: 0;max-width: none;height: 36px;border-radius: 4px;}
.eprms-op-si-row .pdata-upload-button {min-width: 72px;}
.eprms-note-attach.is-locked .eprms-op-si-add {opacity: .55;}
.eprms-note-attach.is-locked .eprms-op-si-add * {cursor: not-allowed;}
.eprms-op-si-abr {flex: none;padding: 1px 8px;border-radius: 4px;background: var(--eprms-green-light);color: var(--accent-strong);font-size: 11px;font-weight: 600;white-space: nowrap;}
.eprms-op-si-desc {flex: 1;min-width: 0;color: var(--text-dark);font-size: 12px;}


/* ---------------------------------------------------------
   Patient data (adm_patient.php, scat=detail): same layout as the Visit Note
   --------------------------------------------------------- */
.eprms-note-side .eprms-timeline {width: auto;}
.eprms-timeline-title {margin: 0;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-note-field-label {color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}

.eprms-note-field select.eprms-pt-select {width: 100%;height: 34px;box-sizing: border-box;padding: 0 9px;background: var(--surface);border: 1px solid var(--field-border);border-radius: 4px;color: var(--field-text);font: 12px "Segoe UI", Arial, sans-serif;transition: border-color .15s ease, box-shadow .15s ease;}
.eprms-note-field select.eprms-pt-select:hover {border-color: var(--eprms-green);}
.eprms-note-field select.eprms-pt-select:focus {outline: none;border-color: var(--eprms-green);box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);}
.eprms-note-field input::placeholder {color: var(--placeholder);}
.eprms-pt-age {margin-left: 6px;padding: 0 6px;border-radius: 9px;background: var(--surface-muted);color: var(--text-light);font-size: 10px;letter-spacing: 0;text-transform: none;}

/* Allergy field stands out, like the allergy banner */
.eprms-pt-allergy label {color: var(--allergy-text);}
.eprms-pt-allergy textarea {background: var(--allergy-bg);border-color: var(--allergy-line);}

/* jQuery Validate error labels inside the new fields */
.eprms-note-field label.error {color: var(--eprms-red);font-size: 11px;font-weight: 400;text-transform: none;letter-spacing: 0;}
.eprms-note-field input.error,
.eprms-note-field select.error {border-color: var(--eprms-red);}

/* Messages at the top of the right column */
.eprms-note-side .eprms-pt-message {width: auto;margin: 0;}
.eprms-pt-error .allergy-content:before {content: "Error";}

/* Record card */
.eprms-pt-mrn {display: flex;align-items: center;gap: 10px;min-height: 26px;}
.eprms-pt-mrn .eprms-q-pill {padding: 0 8px;border-radius: 4px;background: var(--eprms-green-light);color: var(--accent-strong);font-weight: 600;line-height: 24px;font-variant-numeric: tabular-nums;}
.eprms-pt-muted {color: var(--text-light);font-size: 12px;font-style: italic;}

/* Diagnoses + special tags side by side (2 x 520px + 18px = 1058px) */
.eprms-pt-lists {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 18px;align-items: start;}


/* ---------------------------------------------------------
   Patient list (dt_patient_list.php): card with toolbar, table and footer.
   Overrides the global DataTables styles only inside .eprms-pl
   --------------------------------------------------------- */
.eprms-pl .eprms-q-title {display: flex;align-items: center;gap: 8px;}
.eprms-pl-new {display: inline-flex;align-items: center;gap: 6px;height: 30px;padding: 0 14px;border: 1px solid var(--eprms-green-dark);border-radius: 6px;background: var(--eprms-green);color: #ffffff !important;font-size: 12px;font-weight: 600;text-decoration: none !important;box-shadow: 0 2px 4px rgba(25, 135, 84, .15);transition: background-color .15s ease, transform .1s ease;}
.eprms-pl-new:hover {background: var(--eprms-green-dark);transform: translateY(-1px);}
.eprms-pl-new svg {width: 13px;height: 13px;}

.eprms-pl .dataTables_wrapper {position: relative;}
.eprms-pl-toolbar {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px 16px;padding: 12px 14px;border-bottom: 1px solid var(--line);}
.eprms-pl .dataTables_wrapper .dataTables_filter,
.eprms-pl .dataTables_wrapper .dataTables_length {float: none;margin: 0;color: var(--text-light);font-size: 12px;}
.eprms-pl .dataTables_wrapper .dataTables_filter label,
.eprms-pl .dataTables_wrapper .dataTables_length label {display: flex;align-items: center;gap: 8px;margin: 0;line-height: normal;}
.eprms-pl .dataTables_wrapper .dataTables_filter input {width: 320px;height: 34px;padding: 0 10px 0 32px;border: 1px solid var(--field-border);border-radius: 4px;background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9690' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 14px 14px;font-size: 12px;}
.eprms-pl .dataTables_wrapper .dataTables_length select {height: 30px;border-radius: 4px;border-color: var(--field-border);}
.eprms-pl .dataTables_wrapper .dataTables_filter input:hover,
.eprms-pl .dataTables_wrapper .dataTables_length select:hover {border-color: var(--eprms-green);}

.eprms-pl .dataTables_wrapper table.eprms-pl-table {width: 100% !important;margin: 0;border-collapse: collapse;}
.eprms-pl-table thead th {padding: 9px 14px;background: var(--surface);border-bottom: 1px solid var(--line);color: var(--label);font-size: 10px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .04em;text-align: left;white-space: nowrap;}
.eprms-pl-table tbody td {padding: 8px 14px;border-bottom: 1px solid var(--line-soft);color: var(--text);font-size: 12px;line-height: 1.45;vertical-align: middle;}
.eprms-pl-table tbody tr:hover > td {background: var(--surface-hover);}
.eprms-pl-table tbody tr.shown > td {background: var(--eprms-green-light);border-bottom-color: transparent;}
.eprms-pl-table .eprms-pl-center {text-align: center;}
.eprms-pl-table .eprms-pl-num {font-variant-numeric: tabular-nums;white-space: nowrap;}
.eprms-pl-table .eprms-pl-actions {width: 1%;text-align: right;white-space: nowrap;}
.eprms-pl-muted {color: var(--text-faint);}

.eprms-pl-pill {display: inline-block;padding: 0 8px;border-radius: 4px;background: var(--eprms-green-light);color: var(--accent-strong);font-weight: 600;line-height: 22px;font-variant-numeric: tabular-nums;white-space: nowrap;}
.eprms-pl-name {color: var(--text-dark) !important;font-weight: 600;text-decoration: none !important;}
.eprms-pl-name span {font-weight: 400;}
.eprms-pl-name:hover {color: var(--accent) !important;}
.eprms-pl-gender {display: inline-block;padding: 0 8px;border-radius: 9px;font-size: 10px;font-weight: 600;line-height: 18px;text-transform: uppercase;letter-spacing: .03em;}
.eprms-pl-gender.f {background: var(--female-bg);color: var(--female-text);}
.eprms-pl-gender.m {background: var(--male-bg);color: var(--male-text);}
.eprms-pl-buttons {display: inline-flex;gap: 6px;}

/* Detail row (eye button) */
.eprms-pl-table td.eprms-pl-child {padding: 0 14px 10px;background: var(--eprms-green-light);border-bottom: 1px solid var(--line-soft);}
.eprms-pl-details {display: flex;flex-wrap: wrap;gap: 8px;}
.eprms-pl-details span {display: inline-flex;align-items: center;gap: 8px;padding: 4px 10px;background: var(--surface);border: 1px solid var(--accent-line);border-radius: 6px;color: var(--text-dark);font-size: 12px;font-variant-numeric: tabular-nums;}
.eprms-pl-details b {color: var(--label);font-size: 10px;font-weight: 600;text-transform: uppercase;letter-spacing: .04em;}
.eprms-pl-details.loading {color: var(--text-light);font-size: 12px;font-style: italic;}

/* Footer: info + pagination */
.eprms-pl-foot {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px;padding: 10px 14px;border-top: 1px solid var(--line);background: var(--surface-foot);}
.eprms-pl .dataTables_wrapper .dataTables_info {padding: 0;color: var(--text-light);font-size: 12px;}
.eprms-pl .dataTables_wrapper .dataTables_paginate {float: none;margin: 0;padding: 0;}
.eprms-pl .dataTables_wrapper .dataTables_processing {position: absolute;top: 58px;left: 50%;transform: translateX(-50%);padding: 4px 12px;border-radius: 9px;background: var(--eprms-green-light);color: var(--accent-strong);font-size: 11px;font-weight: 600;box-shadow: 0 2px 6px rgba(0, 0, 0, .06);z-index: 2;}


/* ---------------------------------------------------------
   Dashboard (charts/adm_charts.php): KPI tiles, chart cards, statistics tables.
   Same card frame as the patient pages; the page is 1300px wide here
   --------------------------------------------------------- */
.eprms-db {display: grid;gap: 18px;padding: 15px 0 10px;}
.eprms-db-kpis {display: grid;grid-template-columns: repeat(4, minmax(0, 1fr));gap: 18px;}
.eprms-db-grid {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 18px;align-items: start;}

.eprms-db-kpi {display: flex;align-items: center;gap: 14px;padding: 16px 18px;}
.eprms-db-kpi-icon {flex: none;width: 44px;height: 44px;display: flex;align-items: center;justify-content: center;border-radius: 50%;background: var(--eprms-green-light);color: var(--accent);font-size: 18px;}
.eprms-db-kpi-label {color: var(--label);font-size: 11px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .04em;}
.eprms-db-kpi-value {color: var(--text-dark);font-size: 24px;font-weight: 600;line-height: 1.2;font-variant-numeric: tabular-nums;}
.eprms-db-kpi-sub {color: var(--text-light);font-size: 12px;line-height: 16px;font-variant-numeric: tabular-nums;}

.eprms-db-chart {position: relative;height: 300px;padding: 14px 16px 10px;box-sizing: border-box;}

.eprms-db .eprms-q-head {min-height: 44px;box-sizing: border-box;}
.eprms-db-search {width: 200px;height: 28px;box-sizing: border-box;padding: 0 10px 0 28px;border: 1px solid var(--field-border);border-radius: 4px;background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9690' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 8px center / 13px 13px;color: var(--field-text);font: 12px "Segoe UI", Arial, sans-serif;}
.eprms-db-search:hover {border-color: var(--eprms-green);}
.eprms-db-search:focus {outline: none;border-color: var(--eprms-green);box-shadow: 0 0 0 3px rgba(25, 135, 84, .12);}
.eprms-db-hint {color: var(--text-light);font-size: 11px;}

/* Statistics tables */
.eprms-db-table-scroll {max-height: 380px;overflow: auto;}
.eprms-db-table {width: 100%;margin: 0;border-collapse: separate;border-spacing: 0;font-size: 12px;}
.eprms-db-table th {position: sticky;top: 0;z-index: 1;padding: 8px 14px;background: var(--surface);border-bottom: 1px solid var(--line);color: var(--label);font-size: 10px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .04em;text-align: right;white-space: nowrap;}
.eprms-db-table thead tr.group th {border-bottom-color: var(--line-soft);text-align: center;}
.eprms-db-table thead tr + tr th {top: 33px;}
.eprms-db-table th[rowspan] {vertical-align: bottom;}
.eprms-db-table td {padding: 7px 14px;border-bottom: 1px solid var(--line-soft);color: var(--text);line-height: 1.45;text-align: right;font-variant-numeric: tabular-nums;}
.eprms-db-table th:first-child,
.eprms-db-table td:first-child {text-align: left;white-space: normal;color: var(--text-dark);}
.eprms-db-table tbody tr:last-child td {border-bottom: 0;}
.eprms-db-table tbody tr:hover td {background: var(--surface-hover);}
.eprms-db-table td.total {color: var(--text-dark);font-weight: 600;}
.eprms-db-table td.empty {color: var(--text-light);font-style: italic;text-align: left;}
.eprms-db-table .split {border-left: 1px solid var(--line-soft);}
/* colour dot next to Male / Female headers: identity, the text stays in ink */
.eprms-db-table th.male:before,
.eprms-db-table th.female:before {content: "";display: inline-block;width: 7px;height: 7px;margin-right: 5px;border-radius: 50%;vertical-align: 1px;}
.eprms-db-table th.male:before {background: #2f6fb0;}
.eprms-db-table th.female:before {background: #d0527a;}


/* ---------------------------------------------------------
   Pop-up reminder admin (adm_popup_reminder.php): list card + form with live preview.
   Reuses the patient list (.eprms-pl-*) and visit note (.eprms-note-*) classes
   --------------------------------------------------------- */
.eprms-po-table {width: 100%;margin: 0;border-collapse: collapse;}
.eprms-po-table .eprms-po-order {width: 70px;}
.eprms-po-text {font-weight: 500;}
.eprms-po-empty {padding: 18px 14px;font-style: normal;}
.eprms-po-info {color: var(--text-light);font-size: 12px;}
.eprms-po-pager {display: flex;flex-wrap: wrap;gap: 4px;}
.eprms-po-pager a {min-width: 28px;height: 28px;box-sizing: border-box;padding: 0 8px;border: 1px solid var(--line);border-radius: 6px;background: var(--surface);color: var(--text) !important;font-size: 12px;font-weight: 600;line-height: 26px;text-align: center;text-decoration: none !important;}
.eprms-po-pager a:hover {border-color: var(--eprms-green);color: var(--accent) !important;}
.eprms-po-pager a.current {background: var(--eprms-green);border-color: var(--eprms-green);color: #ffffff !important;}
.eprms-po-hint {margin: 0;padding: 0;color: var(--text-light);font-size: 12px;line-height: 1.45;}
.eprms-note-body .eprms-po-preview {width: auto;max-width: none;margin: 0;}
.eprms-po-placeholder {color: #8fb0e0;font-style: italic;font-weight: 400;}


/* ---------------------------------------------------------
   Diagnosis admin (adm_diagnostic.php): same as the pop-up reminder admin,
   list with DataTables 1.6 inside .eprms-pl, abbreviation pill, preview row
   --------------------------------------------------------- */
.eprms-po-table .eprms-dx-abr-col {width: 130px;}
.eprms-dx-preview {margin: 0;padding: 0;border: 1px solid var(--line-soft);border-radius: 6px;}
.eprms-dx-preview li {border-top: 0;}
.eprms-pl .dataTables_wrapper .dataTables_filter input {margin-left: 0;}
.eprms-note-icon.is-disabled {opacity: .35;cursor: not-allowed;}
.eprms-note-icon.is-disabled:hover {background: var(--danger-bg);border-color: var(--danger-line);color: var(--danger-text);}
.box-wrap .eprms-dx-message {width: auto;max-width: none;margin: 0 0 16px;}


/* ---------------------------------------------------------
   Accounting (adm_accounting.php): day selection, KPI tiles (dashboard classes),
   visits table with a total row
   --------------------------------------------------------- */
.eprms-acc-filter {box-sizing: border-box;display: flex;flex-wrap: wrap;align-items: flex-end;gap: 12px 16px;padding: 14px 16px;}
.eprms-acc-day {display: flex;align-items: center;gap: 6px;}
.eprms-acc-day .eprms-note-icon {width: 34px;height: 34px;}
.eprms-acc-filter .eprms-note-field input.text {width: 130px;text-align: center;cursor: pointer;}
.eprms-acc-filter .eprms-q-button {height: 34px;}
.eprms-acc-today {align-self: center;color: var(--accent) !important;font-size: 12px;font-weight: 600;text-decoration: none !important;}
.eprms-acc-today:hover {text-decoration: underline !important;}
.eprms-acc-selected {display: flex;align-items: center;gap: 8px;align-self: center;margin-left: auto;color: var(--text-dark);font-size: 13px;font-weight: 600;}
.eprms-acc-unit {color: var(--text-light);font-size: 13px;font-weight: 400;}

.eprms-acc-table .eprms-acc-nr {width: 36px;color: var(--text-light);}
.eprms-acc-table .eprms-acc-money {width: 130px;text-align: right;white-space: nowrap;font-variant-numeric: tabular-nums;}
.eprms-acc-note {color: var(--text) !important;text-decoration: none !important;}
.eprms-acc-note:hover {color: var(--accent) !important;}
.eprms-acc-table tfoot td {padding: 10px 14px;background: var(--surface-foot);border-top: 1px solid var(--line);color: var(--text-dark);font-size: 12px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-acc-table tfoot td.eprms-acc-money {font-size: 14px;letter-spacing: 0;}


/* ---------------------------------------------------------
   System backup (adm_backup.php): database and files cards
   --------------------------------------------------------- */
.eprms-bk-title {display: flex;align-items: center;gap: 8px;}
.eprms-bk-title svg {width: 15px;height: 15px;color: var(--accent);}
.eprms-bk-action {display: flex;flex-wrap: wrap;align-items: flex-end;justify-content: space-between;gap: 12px 24px;padding: 14px 16px;border-bottom: 1px solid var(--line-soft);}
.eprms-bk-action p {flex: 1 1 360px;max-width: 62ch;margin: 0;padding: 0;color: var(--text);font-size: 12px;line-height: 1.5;}
.eprms-bk-action form {width: auto;margin: 0;}
.eprms-bk-month {display: flex;align-items: flex-end;gap: 10px;}
.eprms-bk-month .eprms-note-field {width: 140px;}
.eprms-q-button[disabled] {background: #9fb5aa;border-color: #9fb5aa;box-shadow: none;transform: none;cursor: not-allowed;}
/* two classes: notification.css loads after screen.css and sets margin-top: -15px; width: 100% */
.eprms-q-card .eprms-bk-message {width: auto;max-width: none;margin: 12px 16px 0;}
.eprms-bk-message .success-content:before {content: "Done";}
.eprms-bk-note .reminder-content:before {content: "Note";}
.eprms-bk-message + .eprms-bk-table,
.eprms-bk-message + .eprms-po-empty {margin-top: 12px;}
.eprms-bk-table {border-top: 1px solid var(--line-soft);}
.eprms-bk-file {font-family: Consolas, "Courier New", monospace;font-size: 12px;color: var(--text-dark);word-break: break-all;}
.eprms-bk-type {display: inline-block;padding: 0 8px;border-radius: 9px;background: var(--surface-muted);color: var(--label);font-size: 11px;font-weight: 600;line-height: 20px;white-space: nowrap;}
.eprms-bk-table .eprms-bk-size {text-align: right;white-space: nowrap;font-variant-numeric: tabular-nums;}
.eprms-bk-missing {color: #b02a37;font-size: 11px;font-weight: 600;}
.eprms-bk-delete-all {display: inline-flex;align-items: center;gap: 6px;height: 28px;padding: 0 12px;border: 1px solid var(--danger-line);border-radius: 6px;background: var(--danger-bg);color: var(--danger-text);font: 600 12px "Segoe UI", Arial, sans-serif;cursor: pointer;}
.eprms-bk-delete-all:hover {background: var(--danger-bg-hover);border-color: var(--danger-line-hover);}
.eprms-bk-delete-all svg {width: 13px;height: 13px;}


/* ---------------------------------------------------------
   Main menu dropdown (Admin): opaque white card under the button.
   Overrides the 2010 rules (95 % white PNG, top 33px, !important arrows) and keeps
   the active button's green gradient/shadow off the dropdown links
   --------------------------------------------------------- */
.menu ul ul {z-index: 100;top: 44px;width: 210px;box-sizing: border-box;padding: 6px;background: var(--surface);border: 1px solid var(--line);border-radius: 8px;box-shadow: 0 8px 24px rgba(0, 0, 0, .10);}
.menu li:hover ul ul {top: -7px;left: calc(100% + 6px);}
.menu li li {float: none;margin: 0;padding: 0;}
.menu li li a,
.menu li.active li a,
.menu li li.active a,
.menu li.active li.active a {display: flex;align-items: center;gap: 8px;padding: 7px 12px !important;background: transparent !important;border: 0;border-radius: 6px;box-shadow: none;color: var(--text) !important;font-size: 12px;font-weight: 500;line-height: 18px;text-shadow: none !important;white-space: nowrap;transform: none;}
.menu li li a:hover,
.menu li li:hover > a,
.menu li.active li a:hover,
.menu li.active li:hover > a {background: var(--eprms-green-light) !important;color: var(--accent) !important;}
.menu li li:hover li a,
.menu li.active li:hover li a {background: transparent !important;color: var(--text) !important;}
.menu li li:hover li a:hover,
.menu li.active li:hover li a:hover {background: var(--eprms-green-light) !important;color: var(--accent) !important;}
/* arrow for an entry with a submenu (Initial Data) */
.menu li li:has(> ul) > a:after {content: "\203A";margin-left: auto;color: var(--text-light);font-size: 15px;line-height: 1;}


/* ---------------------------------------------------------
   System users (adm_sysuser.php): user list with avatars, form with avatar card
   --------------------------------------------------------- */
.eprms-su-user {display: inline-flex;align-items: center;gap: 10px;text-decoration: none !important;}
.eprms-su-user img {flex: none;width: 30px;height: 30px;border-radius: 50%;object-fit: cover;border: 1px solid var(--line);background: var(--surface-muted);}
.eprms-su-user:hover .eprms-pl-name {color: var(--accent) !important;}
.eprms-su-you {padding: 0 7px;border-radius: 9px;background: var(--male-bg);color: var(--male-text);font-size: 10px;font-weight: 600;line-height: 18px;text-transform: uppercase;letter-spacing: .03em;}
.eprms-su-group {display: inline-block;padding: 0 8px;border-radius: 9px;background: var(--surface-muted);color: var(--label);font-size: 11px;font-weight: 600;line-height: 20px;white-space: nowrap;}
.eprms-su-group.admin {background: var(--eprms-green-light);color: var(--accent-strong);}
.eprms-su-locked {display: inline-block;margin-left: 4px;padding: 0 8px;border-radius: 9px;background: #fdf1f2;color: #b02a37;font-size: 11px;font-weight: 600;line-height: 20px;cursor: help;}

.eprms-su-avatar {gap: 14px;}
.eprms-su-current {display: flex;align-items: center;gap: 14px;}
.eprms-su-current img {flex: none;width: 72px;height: 72px;border-radius: 50%;object-fit: cover;border: 3px solid #ffffff;box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(0, 0, 0, .08);}
.eprms-su-crop {display: flex;justify-content: center;padding: 10px 0 0;background: var(--surface-alt);border: 1px solid var(--line);border-radius: 8px;}
.eprms-su-crop .croppie-container {width: 220px;height: auto;}

/* logged-out note of the keep-alive (_inc/inc_header.php), fixed at the top of every page */
.eprms-session-note {position: fixed;top: 0;left: 0;right: 0;z-index: 10000;padding: 12px 16px;color: #ffffff;background: #b02a37;box-shadow: 0 2px 10px rgba(0, 0, 0, .25);font: 600 13px/1.4 "Segoe UI", Arial, sans-serif;text-align: center;}

/* Delete confirmation dialog (eprms_confirm() in js/eprms-confirm.js) - same look as the appointment dialog */
.eprms-confirm-overlay {position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 9000;display: flex;align-items: center;justify-content: center;padding: 16px;background: rgba(20, 35, 28, .45);}
.eprms-confirm {width: 420px;max-width: 100%;font: 13px/1.45 "Segoe UI", Arial, Helvetica, sans-serif;color: var(--text);background: var(--surface);border: 1px solid var(--eprms-green);border-radius: var(--radius-large);overflow: hidden;box-shadow: 0 12px 40px rgba(16, 40, 28, .22);animation: eprms-confirm-in .15s ease-out;}
.eprms-confirm-body {display: flex;gap: 14px;padding: 20px 20px 18px;}
.eprms-confirm-icon {flex: 0 0 40px;display: flex;align-items: center;justify-content: center;width: 40px;height: 40px;color: var(--eprms-red);background: #fdecee;border-radius: 50%;}
.eprms-confirm-icon svg {width: 20px;height: 20px;fill: none;stroke: currentColor;stroke-width: 2;stroke-linecap: round;stroke-linejoin: round;}
.eprms-confirm-copy {min-width: 0;}
.eprms-confirm-title {margin: 2px 0 6px;font-size: 15px;font-weight: 600;color: var(--text-dark);}
.eprms-confirm-item {display: inline-block;max-width: 100%;margin-bottom: 6px;padding: 3px 8px;font-weight: 600;color: var(--text-dark);background: var(--surface-bar);border: 1px solid var(--line-rail);border-radius: 6px;overflow-wrap: anywhere;}
.eprms-confirm-text {margin: 0;color: var(--text);}
.eprms-confirm-error {margin: 8px 0 0;padding: 6px 8px;font-weight: 600;color: #b02a37;background: #fdecee;border-radius: 6px;}
.eprms-confirm-buttons {display: flex;justify-content: flex-end;gap: 8px;padding: 12px 18px;background: var(--surface-bar);border-top: 1px solid var(--line-rail);}
.eprms-confirm-buttons button {height: 34px;margin: 0;padding: 0 16px;font: 600 12px "Segoe UI", Arial, sans-serif;letter-spacing: .02em;color: var(--text);background: var(--surface);border: 1px solid var(--field-border);border-radius: 6px;cursor: pointer;transition: background-color .15s ease, border-color .15s ease, color .15s ease;}
.eprms-confirm-buttons .eprms-confirm-cancel:hover {color: var(--accent);border-color: var(--eprms-green);}
.eprms-confirm-buttons .eprms-confirm-ok {padding: 0 22px;color: #fff;background: var(--eprms-red);border-color: #b02a37;}
.eprms-confirm-buttons .eprms-confirm-ok:hover {background: #b02a37;}
.eprms-confirm-buttons button:focus-visible {outline: 2px solid var(--eprms-green);outline-offset: 2px;}
.eprms-confirm-buttons button[disabled] {opacity: .6;cursor: wait;}
/* tone: 'neutral' (Logout): green instead of the red delete look */
.eprms-confirm-neutral .eprms-confirm-icon {color: var(--accent);background: #e8f3ed;}
.eprms-confirm-neutral .eprms-confirm-buttons .eprms-confirm-ok {background: var(--eprms-green);border-color: #146c43;}
.eprms-confirm-neutral .eprms-confirm-buttons .eprms-confirm-ok:hover {background: #146c43;}
@keyframes eprms-confirm-in {from {opacity: 0;transform: translateY(6px) scale(.98);} to {opacity: 1;transform: none;}}
@media (prefers-reduced-motion: reduce) {.eprms-confirm {animation: none;} .eprms-confirm-buttons button {transition: none;}}


/* ---------------------------------------------------------
   Icons in the main menu, the top buttons and the box-header tabs
   (Font Awesome 6 solid, linked in inc_header.php)
   --------------------------------------------------------- */
.menu .menu-ic {width: 16px;margin-right: 7px;font-size: 14px;text-align: center;}
.menu li li .menu-ic {margin-right: 0;font-size: 12px;color: var(--accent);}
.menu .menu-caret {margin-left: 6px;font-size: 10px;opacity: .6;}
.topbuts li a .fa-solid {margin-right: 5px;}
/* tabs: one fixed-height line, so a long label (PATIENT LIST [n Entries]) can never wrap and grow taller */
.box-header .tabs li a {display: inline-flex;align-items: center;gap: 6px;box-sizing: border-box;height: 32px;padding: 0 14px;white-space: nowrap;}
.box-header .tabs li a .fa-solid {font-size: 11px;}


/* ---------------------------------------------------------
   Dental note: tooth chart (pms_ddata.php)
   Reuses .eprms-note / .eprms-q-card and the visit-note fields
   --------------------------------------------------------- */
.eprms-timeline {--tl-dent: var(--eprms-orange);}
.eprms-timeline .tl-dent {--tl-dot: var(--tl-dent);}

.eprms-dent [hidden] {display: none !important;}
.eprms-dent-cols {display: grid;grid-template-columns: minmax(0, 1fr) 340px;}
.eprms-dent-chart-wrap {min-width: 0;padding: 14px 16px;border-right: 1px solid var(--line-soft);}
.eprms-dent-tools {display: flex;align-items: center;justify-content: space-between;gap: 12px;margin-bottom: 10px;color: var(--text-light);font-size: 12px;}
.eprms-dent-switch {display: inline-flex;align-items: center;gap: 6px;color: var(--label);font-size: 12px;font-weight: 600;white-space: nowrap;cursor: pointer;}

.eprms-dent-chart {display: grid;gap: 3px;}
.eprms-dent-jaw {display: flex;justify-content: space-between;padding: 0 4px;color: var(--text-light);font-size: 10px;font-weight: 600;text-transform: uppercase;letter-spacing: .05em;}
.eprms-dent-row {display: grid;grid-template-columns: 1fr 1fr;}
.eprms-dent-half {display: flex;gap: 1px;}
.eprms-dent-half.dent-r {justify-content: flex-end;padding-right: 6px;border-right: 2px solid var(--line);}
.eprms-dent-half.dent-l {justify-content: flex-start;padding-left: 6px;}
.eprms-dent-row.eprms-dent-dec {display: none;}
.eprms-dent-chart.show-deciduous .eprms-dent-row.eprms-dent-dec {display: grid;}
.eprms-dent-mid {height: 2px;margin: 4px 0;background: var(--line);}

/* one tooth: number + drawing; lower teeth are mirrored, number below */
.eprms-dent-tooth {display: flex;flex-direction: column;align-items: center;gap: 1px;width: 38px;box-sizing: border-box;margin: 0;padding: 3px 0 2px;background: transparent;border: 2px solid transparent;border-radius: 7px;font: inherit;cursor: pointer;transition: border-color .15s ease, background-color .15s ease;}
.eprms-dent-tooth.is-lower {flex-direction: column-reverse;padding: 2px 0 3px;}
.eprms-dent-tooth:hover {background: var(--surface-hover);border-color: var(--tooth-hover-line);}
.eprms-dent-tooth:focus-visible {outline: none;box-shadow: 0 0 0 3px rgba(25, 135, 84, .25);}
.eprms-dent-tooth.is-selected {background: var(--eprms-green-light);border-color: var(--eprms-green);}
.eprms-dent-num {color: var(--label);font-size: 11px;font-weight: 700;line-height: 14px;font-variant-numeric: tabular-nums;}
.eprms-dent-tooth.is-selected .eprms-dent-num {color: var(--accent-strong);}
.eprms-dent-tooth svg {display: block;width: 28px;height: 46px;overflow: visible;}
.eprms-dent-tooth.is-lower svg {transform: scaleY(-1);}
.eprms-dent-tooth.is-deciduous {width: 32px;}
.eprms-dent-tooth.is-deciduous svg {width: 21px;height: 34px;}
.eprms-dent-tooth path {stroke-width: 1.4;stroke-linejoin: round;}
.eprms-dent-tooth.is-none path {stroke: var(--tooth-line);}
.eprms-dent-tooth.is-none .r {fill: var(--surface-bar);}
.eprms-dent-tooth.is-none .c {fill: var(--tooth-crown);}
.eprms-dent-tooth.is-planned path {stroke: var(--tooth-planned-line);}
.eprms-dent-tooth.is-planned .r {fill: var(--tooth-planned-root);}
.eprms-dent-tooth.is-planned .c {fill: var(--tooth-planned-crown);}
.eprms-dent-tooth.is-done path {stroke: var(--tooth-done-line);}
.eprms-dent-tooth.is-done .r {fill: var(--tooth-done-root);}
.eprms-dent-tooth.is-done .c {fill: var(--tooth-done-crown);}
.eprms-dent-tooth.is-missing path {fill: var(--tooth-missing);stroke: var(--tooth-line);stroke-dasharray: 3 2;}

.eprms-dent-legend {display: flex;flex-wrap: wrap;gap: 6px 18px;margin: 12px 0 0 !important;padding: 10px 0 0;border-top: 1px solid var(--line-soft);list-style: none;color: var(--label);font-size: 12px;}
.eprms-dent-legend li {display: flex;align-items: center;gap: 6px;}
.eprms-dent-legend li:before {content: "";width: 12px;height: 12px;box-sizing: border-box;border: 1.5px solid;border-radius: 3px;}
.eprms-dent-legend .is-none:before {background: var(--tooth-crown);border-color: var(--tooth-line);}
.eprms-dent-legend .is-planned:before {background: var(--tooth-planned-crown);border-color: var(--tooth-planned-line);}
.eprms-dent-legend .is-done:before {background: var(--tooth-done-crown);border-color: var(--tooth-done-line);}
.eprms-dent-legend .is-missing:before {background: var(--tooth-missing);border-color: var(--tooth-line);border-style: dashed;}

.eprms-dent-chip {padding: 0 8px;border-radius: 9px;font-size: 10px;font-weight: 600;line-height: 18px;white-space: nowrap;}
.eprms-dent-chip.is-none {background: var(--surface-muted);color: var(--label);}
.eprms-dent-chip.is-planned {background: var(--warn-bg);color: var(--warn-text);}
.eprms-dent-chip.is-done {background: var(--eprms-green-light);color: var(--accent-strong);}
.eprms-dent-chip.is-missing {background: var(--tooth-missing);color: var(--label);}

/* panel of the selected tooth */
.eprms-dent-panel {display: flex;flex-direction: column;min-width: 0;}
.eprms-dent-panel-head {display: flex;align-items: flex-start;justify-content: space-between;gap: 10px;padding: 14px 16px 8px;}
.eprms-dent-sel-title {color: var(--text-dark);font-size: 17px;font-weight: 700;line-height: 22px;}
.eprms-dent-sel-name {color: var(--text-light);font-size: 12px;}
.eprms-dent-pick {margin: 0;padding: 26px 16px;color: var(--text-light);font-style: italic;text-align: center;}
.eprms-dent-panel.has-tooth .eprms-dent-pick,
.eprms-dent-panel:not(.has-tooth) .eprms-dent-panel-head,
.eprms-dent-panel:not(.has-tooth) .eprms-dent-form,
.eprms-dent-panel:not(.has-tooth) .eprms-dent-history {display: none;}
.eprms-dent-panel .eprms-note-locked {margin: 4px 16px 14px;}

.eprms-dent-form {box-sizing: border-box;display: grid;grid-template-columns: minmax(0, 1fr);gap: 10px;padding: 0 16px 14px;}
.eprms-dent-form > *, .eprms-dent-panel, .eprms-dent-panel > * {min-width: 0;}
.eprms-dent-form .eprms-note-field {grid-template-columns: minmax(0, 1fr);}
.eprms-dent-form textarea {width: 100% !important;max-width: 100%;}
.eprms-dent-label {color: var(--label);font-size: 11px;font-weight: 600;line-height: 16px;text-transform: uppercase;letter-spacing: .03em;}
.eprms-dent-pills {display: flex;flex-wrap: wrap;gap: 6px;}
.eprms-dent-pill {position: relative;margin: 0;cursor: pointer;}
.eprms-dent-pill input {position: absolute;opacity: 0;width: 1px;height: 1px;margin: 0;}
.eprms-dent-pill span {display: inline-flex;align-items: center;justify-content: center;min-width: 36px;height: 30px;box-sizing: border-box;padding: 0 10px;background: var(--surface);border: 1px solid var(--field-border);border-radius: 6px;color: var(--label);font-size: 12px;font-weight: 700;transition: background-color .15s ease, border-color .15s ease, color .15s ease;}
.eprms-dent-pill:hover span {border-color: var(--eprms-green);}
.eprms-dent-pill input:checked + span {background: var(--eprms-green);border-color: var(--eprms-green-dark);color: #ffffff;}
.eprms-dent-pill input:focus-visible + span {box-shadow: 0 0 0 3px rgba(25, 135, 84, .2);}
.eprms-dent-status span {border-radius: 15px;font-weight: 600;}
.eprms-dent-status.is-planned input:checked + span {background: var(--warn-bg);border-color: var(--tooth-planned-line);color: var(--warn-text);}
.eprms-dent-status.is-done input:checked + span {background: var(--eprms-green-light);border-color: var(--eprms-green-dark);color: var(--accent-strong);}
.eprms-dent-status.is-missing input:checked + span {background: var(--tooth-missing);border-color: var(--tooth-missing-line);color: var(--text-dark);}
.eprms-dent-form-foot {display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px;}
.eprms-dent-stamp {display: inline-flex;align-items: center;gap: 6px;color: var(--text-light);font-size: 11px;}
.eprms-dent-stamp svg {flex: none;width: 14px;height: 14px;}
.eprms-dent-form .eprms-q-button {padding: 0 14px;}

/* history of the selected tooth */
.eprms-dent-history {flex: 1 1 auto;background: var(--surface-foot);border-top: 1px solid var(--line-soft);}
.eprms-dent-history-head {padding: 9px 16px;color: var(--label);font-size: 11px;font-weight: 600;text-transform: uppercase;letter-spacing: .03em;}
.eprms-dent-entries {display: grid;gap: 8px;max-height: 320px;overflow-y: auto;margin: 0 !important;padding: 0 16px 14px;list-style: none;scrollbar-width: thin;}
.eprms-dent-entries li {display: grid;gap: 4px;padding: 9px 11px;background: var(--surface);border: 1px solid var(--line-rail);border-radius: 8px;}
.eprms-dent-entry-top {display: flex;align-items: center;gap: 6px;}
.eprms-dent-when {margin-right: auto;color: var(--text-dark);font-size: 12px;font-weight: 700;font-variant-numeric: tabular-nums;}
.eprms-dent-surf {display: inline-block;padding: 0 6px;border-radius: 4px;background: var(--surface-muted);color: var(--label);font-size: 10px;font-weight: 700;line-height: 18px;text-decoration: none;font-variant-numeric: tabular-nums;}
a.eprms-dent-surf:hover {background: var(--eprms-green-light);color: var(--accent-strong);}
.eprms-dent-text {display: flex;gap: 6px;color: var(--text-dark);font-size: 12px;line-height: 1.45;}
.eprms-dent-text b {flex: none;width: 18px;color: var(--label);font-weight: 600;}
.eprms-dent-meta {color: var(--text-light);font-size: 11px;}
.eprms-dent-teeth .eprms-dent-surf {margin: 0 3px 2px 0;}


/* ---------------------------------------------------------
   Theme switch (light / dark): button in the top bar, logo per theme.
   The colours themselves are the variables in :root / :root[data-theme="dark"];
   the rules below only cover what a variable cannot (old 2010 colours, images).
   --------------------------------------------------------- */
.topbuts li a.eprms-theme-toggle {background: #5f6b65;}
.topbuts li a.eprms-theme-toggle:hover {background: #4a5550;}
.eprms-theme-toggle .to-light,
[data-theme="dark"] .eprms-theme-toggle .to-dark {display: none;}
[data-theme="dark"] .eprms-theme-toggle .to-light {display: inline;}
[data-theme="dark"] .topbuts li a.eprms-theme-toggle {background: #3a4641;}
[data-theme="dark"] .topbuts li a.eprms-theme-toggle:hover {background: #48554f;}

.logo .logo-dark,
[data-theme="dark"] .logo .logo-light {display: none;}
[data-theme="dark"] .logo .logo-dark {display: block;}

/* :where() keeps this at the weight of a plain "a" rule, so styled links (calendar events, buttons) win */
:where([data-theme="dark"]) a,
:where([data-theme="dark"]) a:hover {color: var(--text);}
[data-theme="dark"] h5 {color: var(--text-light);}
[data-theme="dark"] .user img.avatar {background: var(--surface-muted);box-shadow: none;}
[data-theme="dark"] .menu li.active a {box-shadow: none;}
[data-theme="dark"] .pagetop {box-shadow: 0 2px 10px rgba(0, 0, 0, .4);}
[data-theme="dark"] .menu ul ul {box-shadow: 0 8px 24px rgba(0, 0, 0, .5);}
[data-theme="dark"] .footer {color: var(--text-light);}
[data-theme="dark"] .content-box .box-header {background: var(--surface-alt);}

/* banners (notification.css) */
[data-theme="dark"] .allergy-notification {background: #2b1a1c;border-color: #55292e;border-left-color: var(--eprms-red);color: #ffb3b9;}
[data-theme="dark"] .allergy-title,
[data-theme="dark"] .allergy-text {color: #ffb3b9;}
[data-theme="dark"] .allergy-close {color: #e0868e;}
[data-theme="dark"] .allergy-close:hover {background: #3a2024;color: #ffb3b9;}
[data-theme="dark"] .reminder-notification {background: #172238;border-color: #26406b;border-left-color: var(--eprms-blue);color: #b5d0ff;}
[data-theme="dark"] .reminder-title,
[data-theme="dark"] .reminder-text {color: #b5d0ff;}
[data-theme="dark"] .reminder-close {color: #8fb2ee;}
[data-theme="dark"] .reminder-close:hover {background: #1f2e4a;color: #b5d0ff;}
[data-theme="dark"] .success-notification {border-color: #2a5c43;border-left-color: var(--eprms-green);color: #a6e3c2;}
[data-theme="dark"] .success-title,
[data-theme="dark"] .success-text {color: #a6e3c2;}
