﻿
input[type="text"][role="searchbox"],
input[autocomplete="off"][role="searchbox"] {
    -webkit-text-size-adjust: 100%;
}

input::-ms-clear { display: none; }
input::-ms-reveal { display: none; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* Hide native date picker indicator to use custom icons */
input::-webkit-calendar-picker-indicator { display: none !important; }

.custom-select { position: relative; width: 100%; }
.custom-select-toggle {
    width: 100%;
    background: rgba(11, 31, 34, 0.65);
    border: 1px solid rgba(122, 220, 201, 0.28);
    border-radius: 16px;
    color: var(--text-main);
    padding: 10px 38px 10px 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(3, 12, 16, 0.4);
    position: relative;
    height: 46px; line-height: 1.2; display: flex; align-items: center;
}
.custom-select-toggle::after{
    content: '';
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23bfeee3' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 18px 18px; background-repeat: no-repeat;
}
.custom-select-menu { display: none; position: absolute; left: 0; right: 0; z-index: 1000000;
    background: rgba(12, 38, 43, 0.96); border: 1px solid rgba(122, 220, 201, 0.28); border-radius: 12px;
    margin-top: 4px; max-height: 200px; overflow: auto; box-shadow: 0 18px 38px rgba(3,15,21,.55);
    min-width: 100%; max-width: 100%;
    font-size: 13px; line-height: 1.35;
    backdrop-filter: blur(16px);
}
.custom-select.dropup .custom-select-menu {
    margin-top: 0;
    margin-bottom: 4px;
}
.custom-select.open .custom-select-menu { display: block; }
.custom-select { position: relative; z-index: 2; }
.custom-select.open { z-index: 1000001; position: relative; }
.custom-select.open .input-wrap { z-index: 1000001; position: relative; }
.custom-select-option { 
    padding: 10px 14px; 
    cursor: pointer; 
    color: #e8fbf6; 
    border-bottom: 1px solid rgba(122,220,201,0.12); 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.custom-select-option img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover { 
    background: rgba(122, 220, 201, 0.15); 
    color: #ffffff;
}
.custom-select-option.is-selected { 
    background: rgba(122,220,201,0.2); 
    color: #ffffff;
    font-weight: 500;
}
.custom-select-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-select-toggle img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.form-row { overflow: visible; position: relative; }
.form-grid { overflow: visible; }
.input-wrap { overflow: visible; }

:root {

	--brand-primary: #64a7a6;

	--brand-accent: #7adcc9;

	--brand-deep: #15363f;

	--brand-darker: #0b2228;

	--surface: rgba(22, 55, 63, 0.92);

	--surface-elevated: rgba(27, 67, 74, 0.94);

	--surface-border: rgba(122, 220, 201, 0.28);

	--surface-border-strong: rgba(122, 220, 201, 0.45);

	--text-main: #f2fbf8;

	--text-muted: #9ec9c1;

	--shadow-soft: 0 32px 60px rgba(3, 15, 21, 0.55);

	--radius-lg: 20px;

	--radius-md: 14px;

}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {

	margin: 0;

	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

	color: var(--text-main);

	background: #06161c;

    min-height: 100dvh;

	line-height: 1.5;

	position: relative;

	overflow-x: hidden;

}

.bg {

	position: fixed;

	inset: 0;

	background:

		radial-gradient(620px 420px at 10% -10%, rgba(122, 220, 201, 0.35), transparent 60%),

		radial-gradient(680px 480px at 90% 0%, rgba(74, 158, 149, 0.28), transparent 60%),

		radial-gradient(800px 520px at 50% 120%, rgba(35, 92, 102, 0.35), transparent 65%),

		linear-gradient(170deg, #07181f 0%, #0e252b 45%, #143742 100%);

	filter: saturate(1.08) contrast(1.02);

	pointer-events: none;

	z-index: 0;

}

.container {

	position: relative;

	display: grid;

	place-items: center;

    min-height: 100dvh;

	padding: 36px 20px;

	z-index: 1;

}

.card {

	position: relative;

	width: 100%;

	max-width: 480px;

	background: var(--surface);

	border: 1px solid var(--surface-border);

	border-radius: var(--radius-lg);

	box-shadow: var(--shadow-soft);

	padding: 34px 32px;

	overflow: hidden;

	backdrop-filter: blur(14px);

	animation: floatIn .55s ease both;

}

.card::before {

	content: '';

	position: absolute;

	top: -30%;

	right: -25%;

	width: 320px;

	height: 320px;

	background: radial-gradient(circle, rgba(122, 220, 201, 0.28) 0%, transparent 65%);

	z-index: -1;

	transform: rotate(-12deg);

}

.card::after {

	content: '';

	position: absolute;

	bottom: -35%;

	left: -30%;

	width: 260px;

	height: 260px;

	background: radial-gradient(circle, rgba(100, 167, 166, 0.22) 0%, transparent 65%);

	z-index: -1;

}

.card-header { margin-bottom: 24px; }

.brand { display: flex; align-items: center; gap: 16px; }

.header-center { text-align: center; }

.text-center { text-align: center; }

.hero-logo { width: 220px; margin: 0 auto 20px; }

.hero-logo img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }

.logo {

	width: 62px;

	height: 62px;

	display: grid;

	place-items: center;

	border-radius: 20px;

	background: linear-gradient(135deg, rgba(122, 220, 201, 0.85) 0%, rgba(100, 167, 166, 0.95) 100%);

	color: var(--brand-deep);

	font-weight: 600;

	letter-spacing: 1px;

	box-shadow: 0 18px 28px rgba(3, 35, 40, 0.35);

}

.brand-text h1 { margin: 0; font-size: 23px; color: #e8fbf6; text-transform: uppercase;}

.brand-text p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

.alert {

	padding: 14px 16px;

	border-radius: var(--radius-md);

	margin: 14px 0;

	font-size: 14px;

	border: 1px solid transparent;

	background: rgba(7, 22, 28, 0.4);

}

.alert-error {

	background: rgba(191, 70, 70, 0.22);

	color: #ffb0a9;

	border: 1px solid rgba(255, 120, 120, 0.35);

	border-radius: 18px;

	padding: 12px 16px;

	position: relative;

	box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4);

	backdrop-filter: blur(14px);

}

.alert-error::before {

	content: '?';

	position: absolute;

	left: 12px;

	top: 12px;

	color: #ffb0a9;

	font-size: 12px;

	margin-right: 8px;

}

.alert-error .error-text {

	margin-left: 20px;

	font-size: 14px;

	line-height: 1.4;

}

.alert-success {

	background: rgba(76, 188, 160, 0.16);

	color: #b4f4e4;

	border-color: rgba(122, 220, 201, 0.35);

}

.form { display: grid; gap: 18px; }

.field label { display: block; color: #d5f3eb; font-size: 13px; margin-bottom: 6px; font-weight: 600; }

.input-wrap {

	position: relative;

	transition: transform .25s ease;

}

.input-wrap::before {

	content: '' '';

	position: absolute;

	inset: -2px;

	border-radius: 18px;

	background: radial-gradient(circle at 20% 20%, rgba(122, 220, 201, 0.25), transparent 55%),

		rgba(14, 37, 43, 0.35);

	opacity: 0;

	transform: scale(0.96);

	transition: opacity .25s ease, transform .25s ease;

	filter: blur(0.5px);

	pointer-events: none;

	z-index: 0;

}

.input-wrap:focus-within::before {

	opacity: 0.9;

	transform: scale(1);

}

.input-wrap:focus-within {

	transform: translateY(-1px);

}

.input-wrap input {

	width: 100%;

	background: rgba(11, 31, 34, 0.65);

	border: 1px solid rgba(122, 220, 201, 0.28);

	border-radius: 16px;

	color: var(--text-main);

    padding: 14px 10px 14px 46px;

	outline: none;

	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;

	box-shadow: inset 0 1px 2px rgba(3, 12, 16, 0.4);

}

.input-wrap select {
    width: 100%;
    background: rgba(11, 31, 34, 0.65);
    border: 1px solid rgba(122, 220, 201, 0.28);
    border-radius: 16px;
    color: var(--text-main);
    padding: 10px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: inset 0 1px 2px rgba(3, 12, 16, 0.4);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23bfeee3' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 38px;
}
.input-wrap select::-ms-expand { display: none; }
.input-wrap select:focus {
    border-color: rgba(122, 220, 201, 0.45);
    box-shadow: 0 0 0 2px rgba(122, 220, 201, 0.15);
}
.input-wrap select option { background: #0c1f24; color: #e8fbf6; }

select, .input-wrap { position: relative; }

.input-wrap select { max-width: 100%; }

.input-wrap input[type="date"] {
    color-scheme: dark; 
    accent-color: #7adcc9;
    font-size: 16px; 
    min-height: 44px; 
    height: 46px; 
    padding-top: 10px; 
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .input-wrap input[type="date"] {
        font-size: 16px !important; 
        min-height: 44px; 
        padding: 12px 16px; 
        -webkit-appearance: none; 
        appearance: none;
    }

    .input-wrap input[type="date"]::-webkit-datetime-edit {
        padding: 0;
        font-size: 16px;
    }
    
    .input-wrap input[type="date"]::-webkit-datetime-edit-fields-wrapper {
        padding: 0;
    }
    
    .input-wrap input[type="date"]::-webkit-datetime-edit-text {
        color: #e8fbf6;
        padding: 0 2px;
    }
    
    .input-wrap input[type="date"]::-webkit-datetime-edit-month-field,
    .input-wrap input[type="date"]::-webkit-datetime-edit-day-field,
    .input-wrap input[type="date"]::-webkit-datetime-edit-year-field {
        color: #e8fbf6;
        background: transparent;
        border: none;
        outline: none;
    }
}

.input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.modal .input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.input-wrap.input-with-button {
    position: relative;
}

.input-wrap.input-with-button .upload-pdf-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; 
    height: 30px; 
    background: transparent; 
    border: none; 
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.input-wrap.input-with-button .upload-pdf-icon-btn:hover {
    background-color: rgba(191, 238, 227, 0.1); 
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(191, 238, 227, 0.3);
    border: none; 
}

.input-wrap.input-with-button .upload-pdf-icon-btn.success {
    background-color: rgba(122, 220, 201, 0.15) !important;
    border: 2px solid #7adcc9 !important; 
    box-shadow: none !important;
    transform: translateY(-50%) scale(1.0);
}

.input-wrap.input-with-button .upload-pdf-icon-btn.success:hover {
    background-color: rgba(122, 220, 201, 0.9) !important;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(122, 220, 201, 0.5) !important;
}

.input-wrap.input-with-button .upload-pdf-icon-btn.error {
    background-color: rgba(255, 107, 107, 0.15) !important;
    border: 2px solid #ff6b6b !important;
    box-shadow: none !important;
    transform: translateY(-50%) scale(1.0);
}

.input-wrap.input-with-button .upload-pdf-icon-btn.error:hover {
    background-color: rgba(255, 107, 107, 0.9) !important;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5) !important;
}

.input-wrap.input-with-button .upload-pdf-icon-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.input-wrap.input-with-button .upload-pdf-icon-btn svg {
    width: 20px !important; 
    height: 20px !important; 
    fill: #bfeee3 !important; 
    color: #bfeee3 !important; 
    display: block !important; 
}

.input-wrap.input-with-button .view-pdf-icon-btn {
    position: absolute;
    right: 48px; 
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.input-wrap.input-with-button .view-pdf-icon-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.input-wrap.input-with-button .view-pdf-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: #60a5fa !important;
    color: #60a5fa !important;
    display: block !important;
}

@media (max-width: 768px) {
    .input-wrap.input-with-button .upload-pdf-icon-btn {
        width: 38px !important;
        height: 38px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .input-wrap.input-with-button .upload-pdf-icon-btn svg {
        width: 24px !important; 
        height: 24px !important; 
        fill: #bfeee3 !important; 
        color: #bfeee3 !important; 
        display: block !important; 
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .input-wrap.input-with-button .view-pdf-icon-btn {
        right: 44px !important; 
        width: 30px !important;
        height: 30px !important;
    }
    
    .input-wrap.input-with-button .view-pdf-icon-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .input-wrap.input-with-button .upload-pdf-icon-btn * {
        fill: #bfeee3 !important;
        color: #bfeee3 !important;
        stroke: #bfeee3 !important;
    }
}

.required-asterisk {
    color: #ff6b6b !important;
    font-weight: bold;
    margin-left: 2px;
}

.number-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.spinner-up,
.spinner-down {
    width: 20px;
    height: 16px;
    background-color: transparent; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.spinner-up:hover,
.spinner-down:hover {
    background-color: rgba(122, 220, 201, 0.1); 
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(122, 220, 201, 0.2);
}

.spinner-up:active,
.spinner-down:active {
    transform: scale(0.95);
}

.spinner-up::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #bfeee3; 
    display: block;
}

.spinner-down::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #bfeee3; 
    display: block;
}

.input-wrap input[type="number"] {
    padding-right: 40px;
}

.input-wrap input[type="date"] {
    position: relative;
}

.input-wrap input[type="date"]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23bfeee3' stroke-width='1.8'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.input-wrap input[type="number"]::-webkit-outer-spin-button,
.input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrap input[type="number"] {
    -moz-appearance: textfield; 
    appearance: textfield; 
}

.input-wrap input[readonly],
.input-wrap input:disabled,
.input-wrap textarea[readonly],
.input-wrap textarea:disabled {
    background: rgba(11, 31, 34, 0.4);
    border-color: rgba(232, 251, 246, 0.65);
    color: rgba(232, 251, 246, 0.65);
    cursor: default;
}
.input-wrap input[readonly]:focus,
.input-wrap input:disabled:focus,
.input-wrap textarea[readonly]:focus,
.input-wrap textarea:disabled:focus {
    box-shadow: none;
    border-color: rgba(122, 220, 201, 0.18);
}

.input-wrap textarea {

    width: 100%;

    background: rgba(11, 31, 34, 0.65);

    border: 1px solid rgba(122, 220, 201, 0.28);

    border-radius: 16px;

    color: var(--text-main);

    padding: 10px 14px;

    outline: none;

    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;

    box-shadow: inset 0 1px 2px rgba(3, 12, 16, 0.4);

    min-height: 96px;

    resize: vertical;

}

.input-wrap textarea::placeholder { color: rgba(203, 240, 234, 0.4); }

.input-wrap textarea::selection {

    background: rgba(122, 220, 201, 0.28);

    color: #e8fbf6;

}

.input-wrap input::placeholder { color: rgba(203, 240, 234, 0.4); }

.input-wrap input:-webkit-autofill,

.input-wrap input:-webkit-autofill:hover,

.input-wrap input:-webkit-autofill:focus,

.input-wrap input:-webkit-autofill:active {

	box-shadow: 0 0 0 1000px rgba(17, 46, 51, 0.85) inset;

	border-color: var(--surface-border-strong);

	-webkit-text-fill-color: #e8fbf6;

	caret-color: #abf0e1;

	transition: box-shadow .4s ease, border-color .3s ease;

}

.input-wrap input::selection {

	background: rgba(122, 220, 201, 0.28);

	color: #e8fbf6;

}

.input-wrap .icon {

	position: absolute;

	left: 18px;

	top: 50%;

	transform: translateY(-50%);

	display: flex;

	align-items: center;

	justify-content: center;

	width: 24px;

	height: 24px;

	color: rgba(203, 240, 234, 0.75);

	transition: color .25s ease, transform .25s ease;

	z-index: 1;

}

.input-wrap .icon svg {

	width: 20px;

	height: 20px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

}

.input-wrap .icon svg path,

.input-wrap .icon svg circle {

	stroke-linecap: round;

	stroke-linejoin: round;

}.input-wrap input {

	position: relative;

	z-index: 1;

}

.input-wrap .toggle-pass {

	position: absolute;

	right: 12px;

	top: 50%;

	transform: translateY(-50%);

	background: transparent;

	border: 0;

	cursor: pointer;

	display: flex;

	align-items: center;

	justify-content: center;

	padding: 0;

	width: 40px;

	height: 40px;

	color: rgba(203, 240, 234, 0.65);

	transition: color .25s ease, transform .25s ease;

	z-index: 1;

}

.input-wrap .toggle-pass:hover,

.input-wrap .toggle-pass:focus-visible {

	color: #ffffff;

	outline: none;

}

.input-wrap .toggle-pass svg {

	width: 22px;

	height: 22px;

	stroke: currentColor;

	stroke-width: 1.5;

	fill: none;

	pointer-events: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}

.input-wrap:focus-within .icon,

.input-wrap:hover .icon {

	color: #abf0e1;

	transform: translateY(-50%) scale(1.08);

}

.input-wrap:focus-within .toggle-pass,

.input-wrap:hover .toggle-pass {

	color: #abf0e1;

}

.input-wrap .toggle-pass:hover,

.input-wrap .toggle-pass:focus-visible {

	color: #ffffff;

	outline: none;

}

.input-wrap .toggle-pass svg {

	width: 22px;

	height: 22px;

	stroke: currentColor;

	stroke-width: 1.5;

	fill: none;

	pointer-events: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}

.actions {

	display: flex;

	flex-direction: column;

	align-items: center;

	justify-content: center;

	gap: 14px;

	margin-top: 12px;

}

.actions .link { text-align: center; display: block; }

.btn {

	appearance: none;

	border: 0;

	border-radius: 18px;

	padding: 13px 24px;

	cursor: pointer;

	font-weight: 600;

	font-size: 15px;

	transition: transform .08s ease, box-shadow .25s ease, filter .2s ease;

	box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4);

}
.btn-secondary { 
    background: linear-gradient(135deg, rgba(17, 46, 51, 0.8), rgba(6, 22, 28, 0.9)); 
    color: #e8fbf6; 
    border: 1px solid rgba(122, 220, 201, 0.4); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.btn-secondary:hover { 
    background: linear-gradient(135deg, rgba(17, 46, 51, 0.9), rgba(8, 30, 35, 0.95)); 
    border-color: rgba(122, 220, 201, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
.btn-danger { background: rgba(191, 70, 70, 0.22); color: #ffb0a9; border: 1px solid rgba(255, 120, 120, 0.35); }
.btn-danger:hover { filter: brightness(1.05); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 14px; }

.btn-primary {

	background: linear-gradient(135deg, #64a7a6 0%, #7adcc9 48%, #5fb9ad 100%);

	color: #052729;

}

.btn-primary:hover {

	filter: brightness(1.05);

	transform: translateY(-1px);

	box-shadow: 0 24px 44px rgba(6, 20, 25, 0.55);

}

.btn-primary:active { transform: translateY(1px); filter: brightness(0.98); }

.btn-cancel, 
.btn[data-action="cancel"],
button:contains("H?y"),
button:contains("Cancel") {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(191, 70, 70, 0.25)) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-cancel:hover, 
.btn[data-action="cancel"]:hover,
button:contains("H?y"):hover,
button:contains("Cancel"):hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(191, 70, 70, 0.35)) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px) !important;
    color: #fecaca !important;
}

.link {

	color: #abf0e1;

	text-decoration: none;

	font-size: 14px;

	font-weight: 500;

	transition: color .2s ease;

}

.link:hover { color: #ffffff; }

.hint {

	color: var(--text-muted);

	font-size: 13px;

	margin-top: 14px;

	text-align: right;

}

.hint-left { text-align: left; }

.visually-hidden {

	position: absolute;

	width: 1px;

	height: 1px;

	padding: 0;

	margin: -1px;

	overflow: hidden;

	clip: rect(0, 0, 0, 0);

	white-space: nowrap;

	border: 0;

}

.dashboard-card { max-width: 992px; }

.dashboard-header {

	display: flex;

	flex-wrap: wrap;

	align-items: center;

	justify-content: space-between;

	gap: 18px;

	margin-bottom: 28px;

}

.dashboard-brand p { margin: 6px 0 0; }

.stats-grid {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));

	gap: 20px;

}

.stat-card {

	background: linear-gradient(145deg, rgba(27, 67, 74, 0.92) 0%, rgba(17, 42, 49, 0.92) 100%);

	border: 1px solid rgba(122, 220, 201, 0.24);

	border-radius: var(--radius-md);

	padding: 20px 22px;

	box-shadow: 0 22px 38px rgba(3, 15, 21, 0.4);

	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;

}

.stat-card:hover {

	transform: translateY(-6px);

	box-shadow: 0 30px 48px rgba(3, 15, 21, 0.55);

	border-color: rgba(122, 220, 201, 0.4);

}

.stat-card p {

	color: rgba(210, 244, 238, 0.64);

	margin: 0;

	font-weight: 500;

	letter-spacing: 0.3px;

}

.stat-card h2 {

	color: #e8fbf6;

	margin: 12px 0 0;

	font-size: 30px;

	letter-spacing: 0.4px;

}

@keyframes floatIn {

	from { opacity: 0; transform: translateY(12px) scale(.98); }

	to { opacity: 1; transform: translateY(0) scale(1); }

}

@media (max-width: 600px) {

	.card { padding: 26px 22px; border-radius: 18px; }

	.brand-text h1 { font-size: 21px; }

	.logo { width: 54px; height: 54px; border-radius: 18px; }

	.hero-logo { width: 180px; }

	.actions { flex-direction: column; align-items: center; }

	.actions .btn { display: block; width: 100%; max-width: none; margin: 0; }

	.actions .link { width: 100%; margin: 0; text-align: center; }

	.hint { text-align: center; }

}

.dashboard-body {

	margin: 0;

	background: linear-gradient(170deg, #07181f 0%, #0e252b 45%, #143742 100%);

	color: var(--text-main);

	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

}

.dashboard-layout {

	display: flex;

    height: 100dvh;

	background: transparent;

	overflow-y: hidden;

	overflow-x: clip;

}

.dashboard-sidebar {

	width: 264px;

	background: rgba(11, 31, 34, 0.92);

	border-right: 1px solid rgba(122, 220, 201, 0.2);

	box-shadow: 0 24px 48px rgba(3, 15, 21, 0.5);

	overflow-y: auto;

	overflow-x: visible;

	display: flex;

	flex-direction: column;

	padding: 20px 18px;

	gap: 4px;

    max-height: 100dvh;

}

.dashboard-sidebar::-webkit-scrollbar {
	width: 8px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
	background: rgba(3, 15, 21, 0.3);
	border-radius: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
	background: rgba(122, 220, 201, 0.25);
	border-radius: 4px;
	transition: background 0.2s ease;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(122, 220, 201, 0.4);
}

.sidebar-brand {

	display: flex;

	align-items: center;

	gap: 12px;

	margin-bottom: 18px;

}

.brand-logo {

	width: 54px;

	height: 54px;

	border-radius: 18px;

	background: linear-gradient(135deg, rgba(122, 220, 201, 0.35), rgba(18, 52, 59, 0.9));

	display: grid;

	place-items: center;

	padding: 8px;

	box-shadow: inset 0 0 0 1px rgba(122, 220, 201, 0.25);

}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }

.brand-meta h2 { margin: 0; font-size: 20px; letter-spacing: .4px; color: #eafcf5; }

.brand-meta p { margin: 4px 0 0; font-size: 12px; color: rgba(232, 251, 246, 0.62); }

.nav-heading {

	font-size: 11px;

	text-transform: uppercase;

	letter-spacing: 1.6px;

	color: rgba(232, 251, 246, 0.45);

	margin: 16px 0 8px;

}

.sidebar-nav {
	overflow: visible;
}

.sidebar-nav ul,

.sidebar-footer ul {

	list-style: none;

	padding: 0;

	display: grid;

	gap: 6px;

}

.sidebar-nav li,
.sidebar-footer li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 16px;
	cursor: pointer;
	font-size: 14px;
	color: rgba(232, 251, 246, 0.78);
	background: rgba(11, 31, 34, 0.48);
	border: 1px solid rgba(122, 220, 201, 0.16);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sidebar-nav li:hover,

.sidebar-footer li:hover {

	background: rgba(100, 167, 166, 0.16);

	border-color: rgba(122, 220, 201, 0.28);

	color: rgba(242, 251, 248, 0.92);

}

.sidebar-nav li.active,

.sidebar-footer li.active {

	background: linear-gradient(150deg, rgba(122, 220, 201, 0.32), rgba(84, 181, 173, 0.58));

	border-color: rgba(122, 220, 201, 0.45);

	color: #f2fbf8;

	box-shadow: 0 8px 22px rgba(7, 36, 41, 0.35);

}

.sidebar-nav li.has-submenu,
.sidebar-footer li.has-submenu {
	position: relative;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	background: transparent;
	border: none;
	cursor: default;
}

.sidebar-nav li.has-submenu:hover,
.sidebar-footer li.has-submenu:hover {
	background: transparent;
	border: none;
	color: inherit;
	box-shadow: none;
}

.sidebar-nav li.has-submenu.active,
.sidebar-footer li.has-submenu.active {
	background: transparent;
	border: none;
	color: inherit;
	box-shadow: none;
}

.sidebar-nav li.has-submenu .submenu-trigger,
.sidebar-footer li.has-submenu .submenu-trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 16px;
	color: rgba(232, 251, 246, 0.78);
	background: rgba(11, 31, 34, 0.48);
	border: 1px solid rgba(122, 220, 201, 0.16);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sidebar-nav li.has-submenu .submenu-trigger:focus-visible,

.sidebar-footer li.has-submenu .submenu-trigger:focus-visible {

	outline: 2px solid rgba(122, 220, 201, 0.6);

	outline-offset: 2px;

}

.sidebar-nav li.has-submenu .nav-caret {

	margin-left: auto;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 18px;

	height: 18px;

	opacity: 0.58;

	transition: transform .25s ease, opacity .2s ease;

}

.sidebar-nav li.has-submenu .nav-caret svg {

	width: 14px;

	height: 14px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}

.sidebar-nav li.has-submenu .submenu-trigger:hover,
.sidebar-footer li.has-submenu .submenu-trigger:hover {
	background: rgba(100, 167, 166, 0.16);
	border-color: rgba(122, 220, 201, 0.28);
	color: rgba(242, 251, 248, 0.92);
}

.sidebar-nav li.has-submenu.submenu-open .nav-caret {

	transform: rotate(180deg);

	opacity: 0.85;

}

.sidebar-nav li.has-submenu.active .submenu-trigger,
.sidebar-footer li.has-submenu.active .submenu-trigger {
	background: linear-gradient(150deg, rgba(122, 220, 201, 0.32), rgba(84, 181, 173, 0.58));
	border-color: rgba(122, 220, 201, 0.45);
	color: #f2fbf8;
	box-shadow: 0 8px 22px rgba(7, 36, 41, 0.35);
}

.sidebar-nav li.has-submenu .submenu {

	position: fixed;

	margin-left: 12px;

	list-style: none;

	padding: 12px 14px;

	display: grid;

	gap: 6px;

	justify-items: stretch;

	align-items: start;

	width: 220px;

	min-width: 220px;

	max-width: 220px;

	max-height: 0;

	overflow: hidden;

	opacity: 0;

	pointer-events: none;

	transition: max-height .3s ease, opacity .25s ease, transform .25s ease;

	background: rgba(8, 30, 35, 0.96);

	border: none;

	border-radius: 16px;

	box-shadow: none;

	backdrop-filter: blur(16px);

	z-index: 9999;

	transform: translateY(-4px) scale(0.96);

	transform-origin: left top;

}

.sidebar-nav li.has-submenu.submenu-open .submenu {

	max-height: 1000px;

	opacity: 1;

	pointer-events: auto;

	transform: translateY(0) scale(1);

}

.submenu li {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	display: block;
}

.submenu li:hover {
	background: transparent;
	border: none;
}

.submenu-link {
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgba(232, 251, 246, 0.85);
	text-decoration: none;
	background: rgba(11, 31, 34, 0.4);
	border: 1px solid rgba(122, 220, 201, 0.15);
	transition: all .2s ease;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.1px;
	display: flex;
	text-align: left;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	width: 100%;
	box-sizing: border-box;
}

.submenu-link:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.submenu-link:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(122, 220, 201, 0.15);
}

.submenu-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(122, 220, 201, 0.2);
	background: rgba(12, 38, 43, 0.6);
	color: rgba(122, 220, 201, 0.8);
	transition: all .2s ease;
	flex-shrink: 0;
}

.submenu-icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.submenu-link:hover .submenu-icon {
	border-color: rgba(122, 220, 201, 0.4);
	background: rgba(122, 220, 201, 0.1);
	color: rgba(122, 220, 201, 1);
	box-shadow: 0 2px 8px rgba(122, 220, 201, 0.2);
}

.submenu-link.is-selected,
.submenu-link.is-selected:hover,

.declaration-parent.active > .declaration-trigger,

.operations-parent.active > .operations-trigger {
    background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
    color: #f4fbf8;
    border: 1px solid rgba(122, 220, 201, 0.4);
    box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
}

.submenu-label {
	font-weight: 500;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.submenu li.has-submenu {
	position: relative;
}

.submenu li.has-submenu .submenu {
	position: absolute;
	left: 100%;
	top: 0;
	background: var(--surface-elevated);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	min-width: 180px;
	max-width: 220px;
	z-index: 1000;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu li.has-submenu.submenu-open .submenu {
	max-height: 1000px;
	opacity: 1;
}

.submenu li.has-submenu .submenu-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid transparent;
	color: rgba(242, 251, 248, 0.85);
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	width: 100%;
	justify-content: space-between;
}

.submenu li.has-submenu .submenu-trigger:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.submenu li.has-submenu .nav-caret {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    transform: rotate(-90deg);
}

.submenu li.has-submenu.submenu-open .nav-caret {
    
    transform: rotate(0deg);
}

.declaration-submenu {
	position: static;
	background: rgba(8, 30, 35, 0.96);
	border: 1px solid rgba(122, 220, 201, 0.25);
	border-radius: 16px;
	box-shadow: 0 16px 32px rgba(3, 12, 18, 0.45);
	backdrop-filter: blur(16px);
	margin: 8px 0;
	width: 100%;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: none;
}

.declaration-submenu.show,
.admin-declaration-submenu.show {
    display: block !important;
}

.admin-declaration-submenu {
	position: static;
	background: rgba(8, 30, 35, 0.96);
	border: 1px solid rgba(122, 220, 201, 0.25);
	border-radius: 16px;
	box-shadow: 0 16px 32px rgba(3, 12, 18, 0.45);
	backdrop-filter: blur(16px);
	margin: 8px 0;
	width: 100%;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: none;
}

.operations-submenu {
    position: static;
    background: rgba(8, 30, 35, 0.96);
    border: 1px solid rgba(122, 220, 201, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(3, 12, 18, 0.45);
    backdrop-filter: blur(16px);
    margin: 8px 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.operations-submenu.show {
    display: block !important;
}

.declaration-submenu-content {
	padding: 1px 10px;
	display: grid;
	gap: 6px;
	list-style: none;
}

.declaration-submenu-item {
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	color: rgba(232, 251, 246, 0.85);
	text-decoration: none;
	background: rgba(11, 31, 34, 0.4);
	border: 1px solid rgba(122, 220, 201, 0.15);
	transition: all .2s ease;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.1px;
	display: flex;
	text-align: left;
	width: 100%;
}

.declaration-submenu-item.is-selected,
.declaration-submenu-item.is-selected:hover {
    background: linear-gradient(135deg, rgba(122, 220, 201, 0.18), rgba(100, 167, 166, 0.14));
    color: #f4fbf8;
    border: 1px solid rgba(122, 220, 201, 0.48);
    box-shadow: 0 6px 14px rgba(122, 220, 201, 0.22);
}

.declaration-submenu-item:hover {
	background: linear-gradient(135deg, rgba(122, 220, 201, 0.15), rgba(100, 167, 166, 0.1));
	color: #f4fbf8;
	border: 1px solid rgba(122, 220, 201, 0.4);
	box-shadow: 0 4px 12px rgba(122, 220, 201, 0.2);
	transform: translateY(-1px);
}

.declaration-submenu-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(122, 220, 201, 0.2);
	background: rgba(12, 38, 43, 0.6);
	color: rgba(122, 220, 201, 0.8);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.declaration-submenu-icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}


@media (max-width: 768px) {
	.declaration-submenu-content { padding: 8px 12px; gap: 1px; }
	.declaration-submenu-item {
		gap: 5px;
		padding: 5px 8px;
		font-size: 10px;
		line-height: 1.2;
		border-radius: 6px;
	}
	.declaration-submenu-label { font-size: 10px; }
	
}

@media (max-width: 480px) {
	.declaration-submenu-content { padding: 6px 10px; gap: 1px; }
	.declaration-submenu-item {
		gap: 4px;
		padding: 4px 6px;
		font-size: 10px ;
		line-height: 1.1;
		border-radius: 4px;
	}
	.declaration-submenu-label { font-size: 9px !important; }
}

.declaration-submenu-item:hover .declaration-submenu-icon {
	border-color: rgba(122, 220, 201, 0.4);
	background: rgba(122, 220, 201, 0.1);
	color: rgba(122, 220, 201, 1);
	box-shadow: 0 2px 8px rgba(122, 220, 201, 0.2);
}

.declaration-submenu-label {
	font-weight: 500;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
}

.nav-icon {

	width: 30px;

	height: 30px;

	display: grid;

	place-items: center;

	border-radius: 12px;

	border: 1px solid rgba(122, 220, 201, 0.18);

	background: rgba(12, 38, 43, 0.55);

	color: rgba(122, 220, 201, 0.85);

	transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;

}

.sidebar-nav li .nav-icon svg,

.sidebar-footer li .nav-icon svg {

	width: 20px;

	height: 20px;

	stroke: currentColor;

	fill: none;

	stroke-width: 1.6;

	stroke-linecap: round;

	stroke-linejoin: round;

}

.sidebar-nav li:hover .nav-icon,

.sidebar-footer li:hover .nav-icon {

	border-color: rgba(122, 220, 201, 0.32);

	background: rgba(122, 220, 201, 0.16);

	color: rgba(122, 220, 201, 0.95);

}

.sidebar-nav li.active .nav-icon,

.sidebar-footer li.active .nav-icon {

	border-color: rgba(122, 220, 201, 0.52);

	background: linear-gradient(140deg, rgba(122, 220, 201, 0.5), rgba(84, 181, 173, 0.85));

	color: #f2fbf8;

	box-shadow: 0 6px 18px rgba(9, 36, 41, 0.32);

}

.sidebar-separator {
	margin: 4px 0;
	border-top: 1px solid rgba(122, 220, 201, 0.12);
}

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(122, 220, 201, 0.12); }

.sidebar-meta { margin-top: 18px; font-size: 11px; color: rgba(232, 251, 246, 0.45); text-align: left; }

.dashboard-main {

	flex: 1;

	display: flex;

	flex-direction: column;

	padding: 10px 10px 10px;

	overflow-y: auto;

	overflow-x: hidden;

	gap: 26px;

}

.dashboard-main::-webkit-scrollbar {
	width: 10px;
}

.dashboard-main::-webkit-scrollbar-track {
	background: rgba(3, 15, 21, 0.2);
	border-radius: 5px;
}

.dashboard-main::-webkit-scrollbar-thumb {
	background: rgba(122, 220, 201, 0.3);
	border-radius: 5px;
	transition: background 0.2s ease;
}

.dashboard-main::-webkit-scrollbar-thumb:hover {
	background: rgba(122, 220, 201, 0.45);
}

.dashboard-topbar {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 18px;

	background: rgba(17, 46, 51, 0.9);
	
	position: relative;
	
	z-index: 100;

	border: 1px solid rgba(122, 220, 201, 0.22);

	border-radius: 16px;

	padding: 8px 16px;

	box-shadow: 0 22px 45px rgba(3, 15, 21, 0.45);

	backdrop-filter: blur(14px);

}

.topbar-menu {

	width: 48px;

	height: 48px;

	border-radius: 16px;

	border: 1px solid rgba(122, 220, 201, 0.18);

	background: rgba(6, 22, 28, 0.45);

	cursor: pointer;

	display: grid;

	place-items: center;

	gap: 6px;

	padding: 10px 10px;

}

.topbar-menu span { display: block; width: 22px; height: 2px; border-radius: 999px; background: rgba(232, 251, 246, 0.85); }

.topbar-user { display: flex; align-items: center; gap: 14px; margin-right: auto; margin-left: 12px; color: var(--text-main); }

.user-avatar {

	width: 48px;

	height: 48px;

	border-radius: 18px;

	background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));

	color: #052729;

	font-weight: 700;

	display: grid;

	place-items: center;

	font-size: 13px;

	box-shadow: 0 12px 26px rgba(6, 20, 25, 0.45);

}

.user-meta { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.2; }

.user-meta strong { display: inline-block; font-size: 15px; line-height: 1.2; }

.user-meta span { display: inline-block; font-size: 12px; color: rgba(168, 231, 214, 0.78); line-height: 1.2; margin-top: 2px; }

.metrics-grid {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

	gap: 18px;

}

.metric-card {

	background: rgba(17, 46, 51, 0.86);

	border: 1px solid rgba(122, 220, 201, 0.22);

	border-radius: 18px;

	padding: 20px 22px;

	position: relative;

	overflow: hidden;

	box-shadow: 0 18px 42px rgba(3, 15, 21, 0.45);

	backdrop-filter: blur(18px);

}

.metric-card::after {

	content: '';

	position: absolute;

	right: -36px;

	top: -36px;

	width: 120px;

	height: 120px;

	background: radial-gradient(circle, rgba(122, 220, 201, 0.32) 0%, transparent 70%);

}

.metric-card h4 { margin: 0; font-size: 14px; color: rgba(232, 251, 246, 0.68); letter-spacing: .3px; }

.metric-value { margin: 12px 0 8px; font-size: 28px; font-weight: 700; color: #e8fbf6; }

.metric-trend { font-size: 12px; font-weight: 500; color: rgba(168, 231, 214, 0.82); }

.metric-trend.down { color: #f5a3ab; }

.panel-grid {

	display: grid;

	grid-template-columns: 2fr 1fr;

    gap: 20px;

    margin-top: 10px; 

}
.panel-grid .panel.wide { grid-column: 1 / -1; }

.panel-grid.trio { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.panel {

	background: rgba(17, 46, 51, 0.9);

	border: 1px solid rgba(122, 220, 201, 0.2);

	border-radius: 20px;

	padding: 22px 24px;

	display: flex;

	flex-direction: column;

	gap: 18px;

	box-shadow: 0 24px 50px rgba(3, 15, 21, 0.48);

	backdrop-filter: blur(16px);

	color: var(--text-main);

}

.table-wrapper { overflow: auto; }

@media (max-width: 620px) {
    .table-wrapper { 
        overflow: visible !important; 
        padding: 0 !important;
    }
}
.data-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.data-table thead th { text-align: left; font-size: 13px; padding: 10px 12px; color: #e8fbf6; background: rgba(122, 220, 201, 0.12); border-bottom: 1px solid rgba(122, 220, 201, 0.18); vertical-align: middle !important; border-right: none !important; border-left: none !important; border-radius: 12px 12px 0 0; }
.data-table tbody td { padding: 12px; font-size: 14px; border-bottom: 1px solid rgba(122, 220, 201, 0.12); color: #e8fbf6; vertical-align: middle !important; border-right: none !important; border-left: none !important; }
.data-table thead th.col-actions, .data-table tbody td.col-actions { 
    text-align: center !important; 
    vertical-align: middle !important;
}
.data-table tbody tr:hover { background: rgba(12, 38, 43, 0.35); }

html body .data-table tbody td {
    vertical-align: middle !important;
}

html body .data-table thead th {
    vertical-align: middle !important;
}

html body .data-table tbody td.col-actions {
    vertical-align: middle !important;
    text-align: center !important;
}

html body .data-table thead th.col-actions {
    vertical-align: middle !important;
    text-align: center !important;
}

html body .data-table tbody td,
html body .data-table thead th {
    vertical-align: middle !important;
}

html body .data-table tbody td.col-actions,
html body .data-table thead th.col-actions {
    vertical-align: middle !important;
    text-align: center !important;
}

html body .data-table tbody td[class*="col-actions"],
html body .data-table thead th[class*="col-actions"] {
    vertical-align: middle !important;
    text-align: center !important;
}

html body .data-table tbody td:not([class*="col-actions"]),
html body .data-table thead th:not([class*="col-actions"]) {
    vertical-align: middle !important;
}

.data-table th,
.data-table td {
    border-left: none !important;
    border-right: none !important;
}

html body .data-table th,
html body .data-table td {
    border-left: none !important;
    border-right: none !important;
}

@media (min-width: 621px) {
    .data-table--responsive tbody td {
        display: table-cell !important;
        vertical-align: middle !important;
        padding: 12px !important;
        border: 1px solid rgba(122, 220, 201, 0.12) !important;
        border-left: none !important;
        border-right: none !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .data-table--responsive thead th {
        display: table-cell !important;
        vertical-align: middle !important;
        padding: 10px 12px !important;
        border-left: none !important;
        border-right: none !important;
        background: rgba(122, 220, 201, 0.12) !important;
        color: #e8fbf6 !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .data-table--responsive tbody td.col-actions {
        vertical-align: middle !important;
        text-align: center !important;
    }
    
    .data-table--responsive thead th.col-actions {
        vertical-align: middle !important;
        text-align: center !important;
    }
}

@media (min-width: 621px) {
    html body .data-table--responsive tbody td {
        display: table-cell !important;
        vertical-align: middle !important;
        padding: 12px !important;
        border: 1px solid rgba(122, 220, 201, 0.12) !important;
        border-left: none !important;
        border-right: none !important;
        height: auto !important;
        min-height: auto !important;
        font-size:12px;
    }
    
    html body .data-table--responsive thead th {
        display: table-cell !important;
        vertical-align: middle !important;
        padding: 10px 12px !important;
        border-left: none !important;
        border-right: none !important;
        background: rgba(122, 220, 201, 0.12) !important;
        color: #e8fbf6 !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    html body .data-table--responsive tbody td.col-actions {
        vertical-align: middle !important;
        text-align: center !important;
    }
    
    html body .data-table--responsive thead th.col-actions {
        vertical-align: middle !important;
        text-align: center !important;
    }
}

@media (max-width: 620px) {
    .data-table--responsive thead { 
        display: none !important; 
    }
    .data-table--responsive tbody { 
        display: block !important; 
    }
    .data-table--responsive tbody tr { 
        display: block !important; 
        padding: 16px !important; 
        border: 1px solid rgba(122, 220, 201, 0.2) !important; 
        border-radius: 12px !important; 
        background: rgba(17, 46, 51, 0.6) !important; 
        margin-bottom: 12px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
    }
    .data-table--responsive tbody td { 
        display: block !important; 
        padding: 8px 0 !important; 
        border: none !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
    }
    .data-table--responsive tbody td:last-child { 
        padding-top: 12px !important;
        border-top: 1px solid rgba(122, 220, 201, 0.15) !important;
        margin-top: 8px !important;
    }
    .data-table--responsive tbody td::before { 
        content: attr(data-label) ": " !important; 
        display: inline !important;
        font-size: 12px !important; 
        color: rgba(122, 220, 201, 0.9) !important; 
        font-weight: 600 !important;
        margin-right: 8px !important;
    }
    .data-table--responsive tbody td:last-child::before { 
        display: none !important; 
    }
    .data-table--responsive .col-actions::before {
        content: attr(data-label) ": " !important;
        display: block !important;
        font-size: 12px !important;
        color: rgba(122, 220, 201, 0.9) !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    .data-table--responsive tbody td:not(:last-child) {
        font-size: 14px !important;
        color: #e8fbf6 !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
    }
    .data-table--responsive .col-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .data-table--responsive .col-actions .btn {
        flex: none !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        text-align: center !important;
        border: 1px solid !important;
        min-width: 36px !important;
        height: 36px !important;
    }
    .data-table--responsive .col-actions .btn-danger {
        background: rgba(239, 68, 68, 0.1) !important;
        color: #fca5a5 !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
    }
    .data-table--responsive .col-actions .btn-secondary {
        background: rgba(17, 46, 51, 0.6) !important;
        color: #7adcc9 !important;
        border-color: rgba(122, 220, 201, 0.3) !important;
    }
    .data-table--responsive .col-actions form {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }
    .data-table--responsive .col-actions .needs-confirm {
        display: inline-block !important;
    }
}

@media (max-width: 620px) {
    html body .data-table--responsive tbody tr {
        display: block !important;
        padding: 16px !important;
        border: 1px solid rgba(122, 220, 201, 0.2) !important;
        border-radius: 12px !important;
        background: rgba(17, 46, 51, 0.6) !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
    }
    html body .data-table--responsive tbody td {
        display: block !important;
        padding: 8px 0 !important;
        border: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
    }
    html body .data-table--responsive tbody td:last-child {
        padding-top: 12px !important;
        border-top: 1px solid rgba(122, 220, 201, 0.15) !important;
        margin-top: 8px !important;
    }
    html body .data-table--responsive tbody td::before {
        content: attr(data-label) ": " !important;
        display: inline !important;
        font-size: 12px !important;
        color: rgba(122, 220, 201, 0.9) !important;
        font-weight: 600 !important;
        margin-right: 8px !important;
    }
    html body .data-table--responsive tbody td:last-child::before {
        display: none !important;
    }
    html body .data-table--responsive .col-actions::before {
        content: attr(data-label) ": " !important;
        display: block !important;
        font-size: 12px !important;
        color: rgba(122, 220, 201, 0.9) !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    html body .data-table--responsive .col-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    html body .data-table--responsive .col-actions .btn {
        flex: none !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        text-align: center !important;
        border: 1px solid !important;
        min-width: 36px !important;
        height: 36px !important;
    }
    html body .data-table--responsive .col-actions .btn-secondary {
        background: rgba(17, 46, 51, 0.6) !important;
        color: #7adcc9 !important;
        border-color: rgba(122, 220, 201, 0.3) !important;
    }
    html body .data-table--responsive .col-actions .btn-secondary:hover {
        background: rgba(17, 46, 51, 0.8) !important;
        border-color: rgba(122, 220, 201, 0.5) !important;
    }
    html body .data-table--responsive .col-actions .btn-danger {
        background: rgba(239, 68, 68, 0.1) !important;
        color: #fca5a5 !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
    }
    html body .data-table--responsive .col-actions .btn-danger:hover {
        background: rgba(239, 68, 68, 0.2) !important;
        border-color: rgba(239, 68, 68, 0.5) !important;
    }
    html body .data-table--responsive .col-actions .btn-success {
        background: rgba(34, 197, 94, 0.1) !important;
        color: #4ade80 !important;
        border-color: rgba(34, 197, 94, 0.3) !important;
    }
    html body .data-table--responsive .col-actions .btn-success:hover {
        background: rgba(34, 197, 94, 0.2) !important;
        border-color: rgba(34, 197, 94, 0.5) !important;
    }
    
}

.form-grid { display: grid; gap: 14px; }
@media (min-width: 992px) {
    .form-grid.grid-2 { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 14px; }
    .form-grid.grid-2 .form-row.full { grid-column: 1 / -1; }
    .form-grid.grid-2 .form-actions.full { grid-column: 1 / -1; }
}
.form-row label { display: block; font-size: 13px; color: rgba(232, 251, 246, 0.78); margin-bottom: 6px; font-weight: 600; }
.form-actions { display: flex; gap: 10px; justify-content: center; }
.modal .form-actions { justify-content: center; width: 100%; }
.form-grid .form-actions { grid-column: 1 / -1; justify-content: center !important; }
.modal .form-actions .btn { 
    min-width: 100px; 
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}
.modal .form-actions { justify-content: center; }

/* Fix padding for forms directly inside modal */
.modal > .form-grid,
.modal > form.form-grid {
    padding: 20px 28px 24px 28px !important;
}

.modal .form-row {
    margin-bottom: 18px;
}

.modal .form-row label {
    margin-left: 2px;
    margin-bottom: 8px;
}

.modal .input-wrap {
    width: 100%;
    position: relative;
}

.modal .input-wrap .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    color: rgba(122, 220, 201, 0.7);
}

/* Show HTML icons for date inputs on the left */
.modal .input-wrap .icon.date-icon,
.input-wrap .icon.date-icon {
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Date icon hover effects */
.modal .input-wrap .icon.date-icon:hover,
.input-wrap .icon.date-icon:hover {
    color: #7adcc9;
    transform: translateY(-50%) scale(1.1);
}

.modal .input-wrap .icon.date-icon:active,
.input-wrap .icon.date-icon:active {
    transform: translateY(-50%) scale(0.95);
}

.modal .input-wrap .icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.modal .input-wrap .icon svg path,
.modal .input-wrap .icon svg circle {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal .input-wrap input[type="number"],
.modal .input-wrap input[type="text"],
.modal .input-wrap input[type="date"],
.modal .input-wrap textarea {
    padding-left: 46px;
}

.modal .input-wrap input[type="number"] {
    padding-right: 40px;
}

.modal .form-actions {
    margin-top: 24px;
    padding-top: 8px;
}

.form-actions .btn-secondary {
    background: linear-gradient(135deg, rgba(17, 46, 51, 0.8), rgba(6, 22, 28, 0.9));
    color: #e8fbf6;
    border: 1px solid rgba(122, 220, 201, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    min-width: 100px;
    height: 40px;
    border-radius: 8px;
}

.form-actions .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(17, 46, 51, 0.9), rgba(8, 30, 35, 0.95));
    border-color: rgba(122, 220, 201, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.form-actions .btn-primary {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    min-width: 100px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.form-actions .btn:contains("H?y"),
.form-actions .btn:contains("Cancel") {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(191, 70, 70, 0.25)) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    min-width: 100px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.form-actions .btn:contains("H?y"):hover,
.form-actions .btn:contains("Cancel"):hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(191, 70, 70, 0.35)) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px) !important;
    color: #fecaca !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 22, 28, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    overflow: hidden;
}
.modal-backdrop.show { display: flex; }
/* Ensure modal structure is enforced */
.modal {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: rgba(17, 46, 51, 0.96) !important;
    border: 1px solid rgba(122, 220, 201, 0.28) !important;
    border-radius: 18px !important;
    width: 100%;
    max-width: 640px;
    color: #e8fbf6 !important;
    box-shadow: 0 28px 70px rgba(3, 15, 21, 0.6) !important;
    max-height: calc(100dvh - 80px);
    margin: auto;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.modal::-webkit-scrollbar { width: 10px; }
.modal::-webkit-scrollbar-track { background: rgba(6,22,28,0.35); border-radius: 10px; }
.modal::-webkit-scrollbar-thumb { background: rgba(122,220,201,0.35); border-radius: 10px; border: 1px solid rgba(6,22,28,0.55); }
.modal::-webkit-scrollbar-thumb:hover { background: rgba(122,220,201,0.5); }
.modal-header { 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px 12px 24px !important;
    background: rgba(17, 46, 51, 0.96) !important;
    border-bottom: 1px solid rgba(122, 220, 201, 0.2) !important;
    flex-shrink: 0 !important;
    border-radius: 18px 18px 0 0 !important;
}
.modal-content {
    flex: 1;
    padding: 18px 24px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar { width: 10px; }
.modal-content::-webkit-scrollbar-track { background: rgba(6,22,28,0.35); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(122,220,201,0.35); border-radius: 10px; border: 1px solid rgba(6,22,28,0.55); }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(122,220,201,0.5); }

.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: rgba(6,22,28,0.35); border-radius: 10px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(122,220,201,0.35); border-radius: 10px; border: 1px solid rgba(6,22,28,0.55); }
.modal-header h4 { margin: 0; }
.modal-close { 
    background: transparent; 
    border: none; 
    color: #fff; 
    font-size: 22px; 
    cursor: pointer; 
    outline: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(122, 220, 201, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(122, 220, 201, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7adcc9 0%, #5bc4b1 100%);
    border-radius: 4px;
    border: 1px solid #4a9b8e;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8ee4d1 0%, #6dd4c1 100%);
    border: 1px solid #5aab9e;
    box-shadow: 0 0 8px rgba(122, 220, 201, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #6dd4c1 0%, #4bb4a1 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(122, 220, 201, 0.1);
}

::-webkit-scrollbar-button {
    background: rgba(122, 220, 201, 0.1);
    border: 1px solid rgba(122, 220, 201, 0.3);
    border-radius: 2px;
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-button:hover {
    background: rgba(122, 220, 201, 0.2);
    border-color: #7adcc9;
}

::-webkit-scrollbar-button:active {
    background: rgba(122, 220, 201, 0.3);
}

::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%237adcc9' stroke-width='2'%3E%3Cpolyline points='18,15 12,9 6,15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%237adcc9' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

::-webkit-scrollbar-button:horizontal:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%237adcc9' stroke-width='2'%3E%3Cpolyline points='15,18 9,12 15,6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

::-webkit-scrollbar-button:horizontal:end:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%237adcc9' stroke-width='2'%3E%3Cpolyline points='9,18 15,12 9,6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
}

.custom-select .select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select .select-options::-webkit-scrollbar-track {
    background: rgba(122, 220, 201, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(122, 220, 201, 0.2);
}

.custom-select .select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7adcc9 0%, #5bc4b1 100%);
    border-radius: 3px;
    border: 1px solid #4a9b8e;
}

.custom-select .select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8ee4d1 0%, #6dd4c1 100%);
    border: 1px solid #5aab9e;
    box-shadow: 0 0 6px rgba(122, 220, 201, 0.3);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #7adcc9 rgba(122, 220, 201, 0.1);
}

.modal-header {
    position: relative;
    top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 46px;
    background: transparent;
    border-bottom: 1px solid rgba(122, 220, 201, 0.14);
    height: 64px;
    z-index: auto;
}
.modal-header h4 {
    text-align: center;
    font-weight: 600;
    letter-spacing: .2px;
    color: #e8fbf6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122, 220, 201, 0.18), rgba(12, 38, 43, 0.42));
    border: 1px solid rgba(122, 220, 201, 0.25);
    box-shadow: 0 6px 14px rgba(3, 15, 21, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
    margin: 0 auto;
    width: 88%;
    margin-top: -10px;
    font-size: 12px
}
.modal-header h4::after { display: none; }
.modal-header .modal-close {
    position: absolute;
    right: 2px;
    top: 6px;
    transform: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(12, 38, 43, 0.45);
    border: none;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-header .modal-close:hover { background: rgba(122, 220, 201, 0.1); }

.confirm-message {
    margin: 0 0 14px 0;
    padding: 10px 14px;
    color: #e8fbf6;
    background: linear-gradient(135deg, rgba(122, 220, 201, 0.18), rgba(12, 38, 43, 0.42));
    border: 1px solid rgba(122, 220, 201, 0.25);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}
.confirm-actions { justify-content: flex-end; gap: 10px; }

.confirm-actions .btn-danger {
    background: rgba(191, 70, 70, 0.22);
    color: #ffb0a9;
    border: 1px solid rgba(255, 120, 120, 0.35);
}
.confirm-actions .btn-danger:hover { filter: brightness(1.05); }

@media (max-width: 600px) {
    .modal {
        width: calc(100% - 28px);
        max-width: none;
        border-radius: 14px;
    }
    
    .modal-backdrop {
        align-items: flex-start !important;
        padding: 12px !important;
    }
    
    .modal-header {
        padding: 16px 14px 12px 14px;
        border-radius: 14px 14px 0 0;
    }
    .modal-body {
        padding: 16px 14px;
    }
    
    /* Fix form padding on mobile */
    .modal > .form-grid,
    .modal > form.form-grid {
        padding: 16px 18px 20px 18px !important;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    /* Tablet responsive */
    .modal > .form-grid,
    .modal > form.form-grid {
        padding: 18px 24px 22px 24px !important;
    }
}

.panel-header {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 12px;

}

.panel-header h3 { margin: 0; font-size: 18px; color: #e8fbf6; }

.panel-controls { display: flex; align-items: center; gap: 10px; }

.panel-control {

	border: 1px solid rgba(122, 220, 201, 0.22);

	background: rgba(6, 22, 28, 0.45);

	padding: 10px 14px;

	border-radius: 14px;

	font-size: 13px;

	color: rgba(232, 251, 246, 0.82);

	cursor: pointer;

}

.chart-placeholder {

	width: 100%;

	height: 260px;

	border-radius: 18px;

	background: linear-gradient(140deg, rgba(122, 220, 201, 0.28), rgba(52, 132, 158, 0.45));

	position: relative;

	overflow: hidden;

}

.chart-placeholder::before,

.chart-placeholder::after {

	content: '';

	position: absolute;

	inset: 12% 4%;

	background: linear-gradient(115deg, rgba(255, 255, 255, 0.35), transparent 70%);

	opacity: .4;

}

.chart-placeholder::after { inset: auto 6% -18% 6%; height: 42%; background: linear-gradient(180deg, rgba(6, 30, 38, 0.2), transparent 75%); }

.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; color: rgba(232, 251, 246, 0.85); font-size: 13px; }

.progress-list li { display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: center; gap: 12px; }

.progress-list .bar { position: relative; height: 6px; border-radius: 999px; background: rgba(6, 22, 28, 0.5); overflow: hidden; }

.progress-list .bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); box-shadow: inset 0 0 6px rgba(3, 15, 21, 0.35); }

.progress-list strong { font-weight: 600; color: #dff7f1; }

.progress-list.compact li { grid-template-columns: 1fr 1.2fr auto; }

.device-usage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: rgba(232, 251, 246, 0.78); }

.device-usage li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.device-usage .dot { width: 12px; height: 12px; border-radius: 999px; margin-right: auto; box-shadow: 0 0 0 1px rgba(6, 22, 28, 0.45); }

.device-usage .dot.ios { background: #7adcc9; }

.device-usage .dot.android { background: #64a7a6; }

.device-usage .dot.web { background: #4a90e2; }

.device-usage .dot.other { background: #9ec9c1; }

.quick-settings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: rgba(232, 251, 246, 0.82); }

.quick-settings li { padding: 10px 12px; border-radius: 12px; background: rgba(6, 22, 28, 0.45); border: 1px solid rgba(122, 220, 201, 0.14); }

.gauge-placeholder { display: grid; place-items: center; gap: 6px; margin-top: 8px; color: rgba(232, 251, 246, 0.75); }

.gauge { width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: conic-gradient(from 180deg, var(--brand-primary) 0 68%, rgba(122, 220, 201, 0.18) 68% 100%); position: relative; box-shadow: 0 10px 22px rgba(3, 15, 21, 0.45); }

.gauge::after { content: ''; position: absolute; inset: 16px; background: rgba(17, 46, 51, 0.9); border-radius: 80px 80px 0 0; border: 1px solid rgba(122, 220, 201, 0.25); }

.dashboard-sidebar {

    transition: width .35s ease, padding .35s ease;

}

.topbar-menu span {

    transition: transform .3s ease, opacity .3s ease;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar {

    width: 88px;

    min-width: 88px;

    padding: 18px 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    overflow-y: auto;

    overflow-x: hidden;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar::-webkit-scrollbar {
	width: 6px;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar::-webkit-scrollbar-track {
	background: rgba(3, 15, 21, 0.3);
	border-radius: 3px;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar::-webkit-scrollbar-thumb {
	background: rgba(122, 220, 201, 0.25);
	border-radius: 3px;
	transition: background 0.2s ease;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .dashboard-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(122, 220, 201, 0.4);
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-brand {

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 6px;

    margin-bottom: 0;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .brand-logo {

    width: 56px;

    height: 56px;

    border-radius: 18px;

    padding: 8px;

}

.dashboard-body.menu-collapsed .brand-logo,
.dashboard-body.menu-visible .brand-logo {

    width: 56px !important;

    height: 56px !important;

    border-radius: 18px !important;

    padding: 8px !important;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .brand-meta,

.dashboard-body:is(.menu-collapsed, .menu-visible) .nav-heading,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-meta {

    display: none;

}

.dashboard-body.menu-collapsed .sidebar-separator,
.dashboard-body.menu-visible .sidebar-separator {
    margin: 8px 0 !important;
    border-top: 1px solid rgba(122, 220, 201, 0.12) !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
}

.dashboard-sidebar .sidebar-separator {
    margin: 4px 0;
    border-top: 1px solid rgba(122, 220, 201, 0.12);
    display: block;
}

.dashboard-body.menu-collapsed .dashboard-sidebar .sidebar-separator,
.dashboard-body.menu-visible .dashboard-sidebar .sidebar-separator {
    margin: 8px 0 !important;
    border-top: 1px solid rgba(122, 220, 201, 0.12) !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav ul,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer ul {

    width: 100%;

    gap: 8px;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav .nav-label,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer .nav-label {

    display: block;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;

    color: rgba(232, 251, 246, 0.82);

    white-space: normal;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li {

    display: grid;

    place-items: center;

    text-align: center;

    border-radius: 22px;

    width: 100%;

    background: transparent;

    border: none;

    box-shadow: none;

    transition: color .2s ease, background .2s ease;

    row-gap: 8px;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li .nav-icon {

    width: 30px;

    height: 30px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    border: 1px solid rgba(122, 220, 201, 0.25);

    background: rgba(13, 42, 48, 0.55);

    color: rgba(122, 220, 201, 0.82);

    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li .nav-icon svg,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li .nav-icon svg {

    width: 17px;

    height: 17px;

    stroke: currentColor;

    fill: none;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li:hover,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li:hover {

    background: rgba(8, 30, 35, 0.58);

    color: #f2fbf8;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li:hover .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li:hover .nav-icon {

    border-color: rgba(122, 220, 201, 0.4);

    background: rgba(122, 220, 201, 0.12);

    color: rgba(232, 251, 246, 0.92);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.active,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li.active {

    background: rgba(8, 30, 35, 0.72);

    color: #f2fbf8;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu {
	position: relative;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	background: transparent;
	border: none;
	cursor: default;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu-trigger {
	display: grid;
	place-items: center;
	gap: 6px;
	padding: 16px 10px 12px;
	border-radius: 22px;
	border: none;
	background: transparent;
	color: rgba(232, 251, 246, 0.78);
	transition: background .2s ease, color .2s ease;
	width: 100%;
	text-align: center;
	row-gap: 8px;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav > ul > li.has-submenu .nav-caret {
	display: none;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu .nav-caret {
    display: inline-flex;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu-trigger:hover {
	background: rgba(8, 30, 35, 0.58);
	color: #f2fbf8;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu.active .submenu-trigger {
	background: rgba(8, 30, 35, 0.72);
	color: #f2fbf8;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {

	position: fixed;

	margin-left: 8px;

	transform: translateY(-4px) scale(0.96);

	transform-origin: left top;

	list-style: none;

	padding: 12px 14px;

	display: grid;

	gap: 2px;

	justify-items: start;

	align-items: start;

	min-width: 220px;

	max-width: 280px;

	max-height: 0;

	overflow: hidden;

	opacity: 0;

	pointer-events: none;

	transition: max-height .25s ease, opacity .2s ease, transform .2s ease;

	background: rgba(8, 30, 35, 0.92);

	border: 1px solid rgba(122, 220, 201, 0.2);

	border-radius: 16px;

	box-shadow: 0 16px 32px rgba(3, 12, 18, 0.38);

	z-index: 12;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu.submenu-open .submenu {

	max-height: 1000px;

	opacity: 1;

	pointer-events: auto;

	transform: translateY(0) scale(1);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
	place-items: start !important;
	text-align: left !important;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.active .nav-icon,

.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-footer li.active .nav-icon {

    border-color: rgba(122, 220, 201, 0.68);

    background: linear-gradient(140deg, rgba(122, 220, 201, 0.48), rgba(100, 167, 166, 0.85));

    color: #f2fbf8;

    box-shadow: 0 8px 18px rgba(9, 36, 41, 0.32);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-user {

	margin-left: 0;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(1) {

	transform: translateY(8px) rotate(45deg);

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(2) {

	opacity: 0;

}

.dashboard-body:is(.menu-collapsed, .menu-visible) .topbar-menu span:nth-child(3) {

	transform: translateY(-8px) rotate(-45deg);

}

@media (max-width: 1200px) {

	.dashboard-sidebar { display: none; }

	.dashboard-body.menu-visible .dashboard-sidebar { 
		display: flex; 
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 1000;
		width: 88px !important;
		min-width: 88px !important;
		padding: 18px 12px !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 14px !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
	}

    .dashboard-main { padding: 0 10px 10px; }
	
	/* Mobile menu-visible should look like collapsed menu */
	.dashboard-body.menu-visible .brand-meta,
	.dashboard-body.menu-visible .nav-heading,
	.dashboard-body.menu-visible .sidebar-meta {
		display: none !important;
	}
	
	/* Brand logo for mobile collapsed style */
	.dashboard-body.menu-visible .sidebar-brand {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		gap: 6px !important;
		margin-bottom: 0 !important;
	}
	
	.dashboard-body.menu-visible .brand-logo {
		width: 56px !important;
		height: 56px !important;
		border-radius: 18px !important;
		padding: 8px !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav .nav-label,
	.dashboard-body.menu-visible .sidebar-footer .nav-label {
		display: block !important;
		font-size: 11px !important;
		text-align: center !important;
		white-space: normal !important;
		color: rgba(232, 251, 246, 0.82) !important;
		line-height: 1.4 !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav li,
	.dashboard-body.menu-visible .sidebar-footer li {
		display: grid !important;
		place-items: center !important;
		text-align: center !important;
		border-radius: 22px !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		transition: color .2s ease, background .2s ease !important;
		row-gap: 8px !important;
	}
	
	/* Mobile menu-visible nav icons */
	.dashboard-body.menu-visible .sidebar-nav li .nav-icon,
	.dashboard-body.menu-visible .sidebar-footer li .nav-icon {
		width: 30px !important;
		height: 30px !important;
		display: grid !important;
		place-items: center !important;
		border-radius: 12px !important;
		border: 1px solid rgba(122, 220, 201, 0.25) !important;
		background: rgba(13, 42, 48, 0.55) !important;
		color: rgba(122, 220, 201, 0.82) !important;
		transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav li .nav-icon svg,
	.dashboard-body.menu-visible .sidebar-footer li .nav-icon svg {
		width: 17px !important;
		height: 17px !important;
		stroke: currentColor !important;
		fill: none !important;
		stroke-width: 1.6 !important;
		stroke-linecap: round !important;
		stroke-linejoin: round !important;
	}
	
	/* Submenu trigger for mobile collapsed style */
	.dashboard-body.menu-visible .sidebar-nav li.has-submenu .submenu-trigger {
		display: grid !important;
		place-items: center !important;
		gap: 6px !important;
		padding: 16px 10px 12px !important;
		border-radius: 22px !important;
		border: none !important;
		background: transparent !important;
		color: rgba(232, 251, 246, 0.78) !important;
		transition: background .2s ease, color .2s ease !important;
		width: 100% !important;
		text-align: center !important;
		row-gap: 8px !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav > ul > li.has-submenu .nav-caret {
		display: none !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav li.has-submenu {
		position: relative !important;
		padding: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 4px !important;
		background: transparent !important;
		border: none !important;
		cursor: default !important;
	}
	
	/* Submenu positioning for mobile collapsed style */
	.dashboard-body.menu-visible .sidebar-nav li.has-submenu .submenu {
		position: fixed !important;
		margin-left: 8px !important;
		transform: translateY(-4px) scale(0.96) !important;
		transform-origin: left top !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
		max-height: 0 !important;
		overflow: hidden !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		background: rgba(8, 30, 35, 0.96) !important;
		border: 1px solid rgba(122, 220, 201, 0.2) !important;
		border-radius: 16px !important;
		box-shadow: 0 16px 32px rgba(3, 12, 18, 0.38) !important;
		z-index: 12 !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav li.has-submenu.submenu-open .submenu {
		max-height: 1000px !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: translateY(0) scale(1) !important;
	}
	
	.dashboard-body.menu-visible .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	
	/* Nested submenu items for mobile */
	.dashboard-body.menu-visible .declaration-submenu,
	.dashboard-body.menu-visible .operations-submenu,
	.dashboard-body.menu-visible .admin-declaration-submenu {
		position: static !important;
		width: 100% !important;
		margin: 8px 0 !important;
		border-radius: 8px !important;
	}
	
	.dashboard-body.menu-visible .declaration-submenu.show,
	.dashboard-body.menu-visible .operations-submenu.show,
	.dashboard-body.menu-visible .admin-declaration-submenu.show {
		display: block !important;
	}
	
	/* Nested submenu triggers for mobile */
	.dashboard-body.menu-visible .submenu .submenu-link.declaration-trigger,
	.dashboard-body.menu-visible .submenu .submenu-link.operations-trigger,
	.dashboard-body.menu-visible .submenu .submenu-link.admin-declaration-trigger {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 10px !important;
		text-align: left !important;
	}
	
	.dashboard-body.menu-visible .submenu .submenu-link .nav-caret {
		display: flex !important;
	}

}

@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }

.panel-grid:first-of-type { margin-top: -10px; }

@media (max-width: 620px) {
    .panel { 
        padding: 16px !important; 
        margin: 0 !important;
        border-radius: 12px !important;
    }
    .panel-header { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    .panel-header h3 { 
        margin: 0 !important; 
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #e8fbf6 !important;
        text-align: left !important;
        width: 100% !important;
    }
    .panel-controls { 
        width: 100% !important; 
    }
    .panel-controls .btn { 
        width: 100% !important; 
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
        background: rgba(122, 220, 201, 0.15) !important;
        border: none !important;
        color: #7adcc9 !important;
        transition: all 0.2s ease !important;
    }
    .panel-controls .btn:hover {
        background: rgba(122, 220, 201, 0.25) !important;
        border-color: rgba(122, 220, 201, 0.5) !important;
    }
}

@media (max-width: 620px) {

	.dashboard-topbar { 
		flex-wrap: nowrap; 
		gap: 8px; 
		padding: 12px 16px;
		justify-content: space-between;
	}

	.dashboard-topbar form { 
		width: auto; 
		display: flex; 
		justify-content: flex-end; 
	}

	.topbar-user {
		margin-left: 8px;
		margin-right: auto;
		gap: 8px;
	}

	.topbar-user .user-meta {
		display: block; 
	}
	
	.topbar-user .user-meta strong {
		font-size: 13px;
	}
	
	.topbar-user .user-role {
		font-size: 10px;
		padding: 1px 4px;
	}

	.metrics-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

	.panel-grid.trio { grid-template-columns: 1fr; }

}

.sidebar-nav .nav-label,

.sidebar-footer .nav-label {

	flex: 1;

}

.nav-root-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.dashboard-body:is(.menu-collapsed, .menu-visible) .nav-root-link {
    display: grid;
    place-items: center;
    gap: 6px;
}

.panel-control {

	display: inline-flex;

	align-items: center;

	gap: 10px;

}

.panel-icon svg {

	width: 18px;

	height: 18px;

	stroke: currentColor;

	stroke-width: 1.6;

	fill: none;

	stroke-linecap: round;

	stroke-linejoin: round;

}

.language-switch {

	margin-top: 26px;

	display: flex;

	flex-direction: column;

	align-items: center;

	gap: 10px;

	text-align: center;

}

.language-switch label {

	font-size: 12px;

	letter-spacing: 0.6px;

	font-weight: 600;

	color: var(--text-muted);

}

.language-select {

	position: relative;

	display: inline-flex;

	align-items: center;

	gap: 12px;

	padding: 5px 50px 5px 22px;

	margin: 0 auto;

	background: rgba(11, 31, 34, 0.72);

	border: 1px solid var(--surface-border);

	border-radius: 24px;

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 32px rgba(0, 0, 0, 0.32);

	transition: border-color .2s ease, box-shadow .2s ease;

}

.language-select::after {

	display: none;

}

.language-flag {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 32px;

	height: 22px;

	border-radius: 8px;

	overflow: hidden;

	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);

	background: rgba(10, 30, 34, 0.6);

}

.language-flag img {

	width: 90%;

	height: 90%;

	display: block;

}

.language-select__input {

	appearance: none;

	background: transparent;

	border: none;

	color: var(--text-main);

	font-weight: 600;

	font-size: 12px;

	letter-spacing: 0.2px;

	cursor: pointer;

	padding: 0;

	width: 100%;

	text-align: center;

}

.language-select__input:focus {

	outline: none;

}

.language-select__input option {

	color: #0b1f22;

}

.language-select__toggle {

	position: absolute;

	right: 14px;

	top: 50%;

	transform: translateY(-50%);

	width: 24px;

	height: 24px;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	border: none;

	border-radius: 50%;

	background: rgba(12, 34, 38, 0.85);

	color: rgba(203, 240, 234, 0.8);

	cursor: pointer;

	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 16px rgba(0, 0, 0, 0.25);

	transition: color .2s ease, background .2s ease;

}

.language-select__toggle:hover {

	background: rgba(17, 46, 51, 0.9);

	color: rgba(203, 240, 234, 0.95);

}

.language-select__toggle:focus-visible {

	outline: 2px solid rgba(122, 220, 201, 0.6);

	outline-offset: 2px;

}

.language-select__toggle svg {

	display: block;

}

@media (max-width: 560px) {

	.language-select {

		width: 100%;

		padding: 10px 52px 10px 18px;

	}

}

@media (max-width: 1200px) {
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
		min-width: 200px !important;
		max-width: 260px !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 6px !important;
		padding: 6px 10px !important;
		font-size: 12px !important;
		line-height: 1.3 !important;
		border-radius: 8px !important;
		display: flex !important;
		align-items: center !important;
	}
}

@media (max-width: 768px) {
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
		min-width: 180px !important;
		max-width: 240px !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 5px !important;
		padding: 5px 8px !important;
		font-size: 11px !important;
		line-height: 1.2 !important;
		border-radius: 6px !important;
		display: flex !important;
		align-items: center !important;
	}
}

@media (max-width: 480px) {
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu {
		justify-items: start !important;
		align-items: start !important;
		min-width: 160px !important;
		max-width: 220px !important;
	}
	.dashboard-body:is(.menu-collapsed, .menu-visible) .sidebar-nav li.has-submenu .submenu li {
		place-items: start !important;
		text-align: left !important;
	}
	.sidebar-nav li.has-submenu .submenu .submenu-link {
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 4px !important;
		padding: 4px 6px !important;
		font-size: 10px !important;
		line-height: 1.1 !important;
		border-radius: 4px !important;
		display: flex !important;
		align-items: center !important;
	}
}

.input-wrap .toggle-pass .icon-eye-closed {
	display: none;
}

.input-wrap .toggle-pass[data-state="visible"] .icon-eye-open {
	display: none;
}

.input-wrap .toggle-pass[data-state="visible"] .icon-eye-closed {
	display: block;
}

.user-role {
    position: relative;
    display: inline-flex; 
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 0; 
    width: auto;
}

.user-role.permission-0 {
	color: #9ca3af;
	text-shadow: 0 0 3px rgba(156, 163, 175, 0.1);
	background: rgba(156, 163, 175, 0.03);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgba(156, 163, 175, 0.08);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-role.permission-1 {
	color: #d1d5db;
	text-shadow: 0 0 8px rgba(156, 163, 175, 0.4), 0 0 15px rgba(156, 163, 175, 0.2);
	background: linear-gradient(135deg, 
		rgba(156, 163, 175, 0.12) 0%,
		rgba(107, 114, 128, 0.08) 50%,
		rgba(156, 163, 175, 0.15) 100%);
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid rgba(156, 163, 175, 0.25);
	animation: hod-glow 3s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
}

@keyframes hod-glow {
	0%, 100% { 
		text-shadow: 0 0 8px rgba(156, 163, 175, 0.4), 0 0 15px rgba(156, 163, 175, 0.2);
		box-shadow: 0 2px 8px rgba(156, 163, 175, 0.15);
		transform: scale(1);
	}
	50% { 
		text-shadow: 0 0 12px rgba(156, 163, 175, 0.6), 0 0 20px rgba(156, 163, 175, 0.3);
		box-shadow: 0 3px 12px rgba(156, 163, 175, 0.25);
		transform: scale(1.01);
	}
}

.user-role.permission-2 {
	color: #e5f3f0;
	text-shadow: 0 0 10px rgba(100, 167, 166, 0.5), 0 0 18px rgba(100, 167, 166, 0.3);
	background: linear-gradient(135deg, 
		rgba(100, 167, 166, 0.18) 0%,
		rgba(122, 220, 201, 0.12) 50%,
		rgba(100, 167, 166, 0.22) 100%);
	padding: 4px 9px;
	border-radius: 8px;
	border: 1px solid rgba(100, 167, 166, 0.35);
	animation: hr-officer-glow 2.8s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(100, 167, 166, 0.2);
}

@keyframes hr-officer-glow {
	0%, 100% { 
		text-shadow: 0 0 10px rgba(100, 167, 166, 0.5), 0 0 18px rgba(100, 167, 166, 0.3);
		box-shadow: 0 3px 10px rgba(100, 167, 166, 0.2);
		transform: scale(1);
	}
	50% { 
		text-shadow: 0 0 15px rgba(100, 167, 166, 0.7), 0 0 25px rgba(100, 167, 166, 0.4);
		box-shadow: 0 4px 14px rgba(100, 167, 166, 0.3);
		transform: scale(1.01);
	}
}

.user-role.permission-3 {
	color: #f0fdfa;
	text-shadow: 
		0 0 8px rgba(122, 220, 201, 0.4),
		0 0 16px rgba(122, 220, 201, 0.3),
		0 0 24px rgba(122, 220, 201, 0.15);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.15) 0%,
		rgba(100, 167, 166, 0.12) 50%,
		rgba(122, 220, 201, 0.18) 100%);
	padding: 4px 10px;
	border-radius: 10px;
	border: 1px solid rgba(122, 220, 201, 0.4);
	animation: hr-manager-glow 2.5s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 2px 8px rgba(122, 220, 201, 0.12),
		0 4px 16px rgba(122, 220, 201, 0.08);
	backdrop-filter: blur(2px);
}

.user-role.permission-3::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent,
		rgba(255, 255, 255, 0.08),
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.08),
		transparent);
	animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes hr-manager-glow {
	0%, 100% { 
		text-shadow: 
			0 0 8px rgba(122, 220, 201, 0.4),
			0 0 16px rgba(122, 220, 201, 0.3),
			0 0 24px rgba(122, 220, 201, 0.15);
		transform: scale(1);
	}
	50% { 
		text-shadow: 
			0 0 12px rgba(122, 220, 201, 0.6),
			0 0 20px rgba(122, 220, 201, 0.4),
			0 0 28px rgba(122, 220, 201, 0.2);
		transform: scale(1.01);
	}
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

.user-role.permission-4 {
	color: #f8fafc;
	text-shadow: 
		0 0 12px rgba(122, 220, 201, 0.6),
		0 0 20px rgba(122, 220, 201, 0.4),
		0 0 30px rgba(122, 220, 201, 0.2);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.2) 0%,
		rgba(100, 167, 166, 0.15) 50%,
		rgba(122, 220, 201, 0.25) 100%);
	padding: 5px 12px;
	border-radius: 12px;
	border: 2px solid rgba(122, 220, 201, 0.5);
	animation: manager-glow 2.2s ease-in-out infinite, manager-border-pulse 3s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 3px 12px rgba(122, 220, 201, 0.2),
		0 6px 24px rgba(122, 220, 201, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
}

.user-role.permission-4::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, 
		transparent 30%, 
		rgba(255, 255, 255, 0.12) 50%, 
		transparent 70%);
	animation: manager-shine 3s infinite;
}

.user-role.permission-4::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, 
		rgba(122, 220, 201, 0.1),
		transparent,
		rgba(122, 220, 201, 0.1));
	border-radius: 14px;
	z-index: -1;
	animation: manager-border-glow 3s ease-in-out infinite;
}

@keyframes manager-glow {
	0%, 100% { 
		text-shadow: 
			0 0 12px rgba(122, 220, 201, 0.6),
			0 0 20px rgba(122, 220, 201, 0.4),
			0 0 30px rgba(122, 220, 201, 0.2);
		transform: scale(1);
	}
	50% { 
		text-shadow: 
			0 0 16px rgba(122, 220, 201, 0.8),
			0 0 24px rgba(122, 220, 201, 0.6),
			0 0 35px rgba(122, 220, 201, 0.3);
		transform: scale(1.02);
	}
}

@keyframes manager-shine {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

@keyframes manager-border-glow {
	0%, 100% { 
		opacity: 0.1;
		transform: scale(1);
	}
	50% { 
		opacity: 0.3;
		transform: scale(1.01);
	}
}

@keyframes manager-border-pulse {
	0%, 100% { 
		border-color: rgba(122, 220, 201, 0.5);
		box-shadow: 
			0 3px 12px rgba(122, 220, 201, 0.2),
			0 6px 24px rgba(122, 220, 201, 0.15),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
	}
	50% { 
		border-color: rgba(122, 220, 201, 0.7);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.3),
			0 8px 32px rgba(122, 220, 201, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.15);
	}
}

.user-role.permission-5 {
	color: #ffffff;
	text-shadow: 
		0 0 10px rgba(122, 220, 201, 0.8),
		0 0 20px rgba(122, 220, 201, 0.6),
		0 0 30px rgba(122, 220, 201, 0.4),
		0 0 40px rgba(122, 220, 201, 0.2);
	background: linear-gradient(135deg, 
		rgba(122, 220, 201, 0.25) 0%,
		rgba(100, 167, 166, 0.2) 50%,
		rgba(122, 220, 201, 0.3) 100%);
	padding: 6px 14px;
	border-radius: 16px;
	border: 2px solid rgba(122, 220, 201, 0.8);
	animation: admin-color-pulse 2s ease-in-out infinite;
	position: relative;
	overflow: hidden;
	box-shadow: 
		0 4px 16px rgba(122, 220, 201, 0.25),
		0 8px 32px rgba(122, 220, 201, 0.15),
		0 16px 64px rgba(122, 220, 201, 0.1),
		inset 0 2px 0 rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
}

@keyframes admin-color-pulse {
	0% { 
		border-color: rgba(122, 220, 201, 0.8);
		background: linear-gradient(135deg, 
			rgba(122, 220, 201, 0.25) 0%,
			rgba(100, 167, 166, 0.2) 50%,
			rgba(122, 220, 201, 0.3) 100%);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.25),
			0 8px 32px rgba(122, 220, 201, 0.15),
			0 16px 64px rgba(122, 220, 201, 0.1),
			inset 0 2px 0 rgba(255, 255, 255, 0.15);
	}
	50% { 
		border-color: rgba(100, 167, 166, 1);
		background: linear-gradient(135deg, 
			rgba(100, 167, 166, 0.35) 0%,
			rgba(122, 220, 201, 0.3) 50%,
			rgba(100, 167, 166, 0.4) 100%);
		box-shadow: 
			0 4px 16px rgba(100, 167, 166, 0.4),
			0 8px 32px rgba(100, 167, 166, 0.3),
			0 16px 64px rgba(100, 167, 166, 0.2),
			inset 0 2px 0 rgba(255, 255, 255, 0.2);
	}
	100% { 
		border-color: rgba(122, 220, 201, 0.8);
		background: linear-gradient(135deg, 
			rgba(122, 220, 201, 0.25) 0%,
			rgba(100, 167, 166, 0.2) 50%,
			rgba(122, 220, 201, 0.3) 100%);
		box-shadow: 
			0 4px 16px rgba(122, 220, 201, 0.25),
			0 8px 32px rgba(122, 220, 201, 0.15),
			0 16px 64px rgba(122, 220, 201, 0.1),
			inset 0 2px 0 rgba(255, 255, 255, 0.15);
	}
}

.topbar-notifications {
	position: relative;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-right: 12px;
}

.topbar-notifications:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-1px);
}

.topbar-notifications:active {
	transform: translateY(0);
}

.notification-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	background: #ff4757;
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.topbar-user-actions {
	position: relative;
	display: inline-block;
	z-index: 1000;
}

.user-actions-toggle {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
}

.user-actions-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-1px);
}

.user-actions-toggle:active {
	transform: translateY(0);
}

.user-actions-dropdown {
	position: fixed;
	top: auto;
	right: 20px;
	background: rgba(17, 46, 51, 0.95);
	border: 1px solid rgba(122, 220, 201, 0.3);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	min-width: 200px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	margin-top: 8px;
	backdrop-filter: blur(10px);
	padding: 4px;
	box-sizing: border-box;
}

.user-actions-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	color: #e8fbf6;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	border-radius: 8px;
	margin: 0;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.dropdown-item:hover {
	background-color: rgba(122, 220, 201, 0.15);
	color: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(122, 220, 201, 0.3);
}

.dropdown-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(122, 220, 201, 0.1), transparent);
	transition: left 0.3s ease;
}

.dropdown-item:hover::before {
	left: 100%;
}

.dropdown-item svg {
	margin-right: 12px;
	flex-shrink: 0;
}

.dropdown-item span {
	font-size: 14px;
	font-weight: 500;
}

.dropdown-divider {
	height: 1px;
	background-color: rgba(122, 220, 201, 0.2);
	margin: 4px 0;
}

.dropdown-form {
	width: 100%;
}

.logout-item {
	color: #ff6b6b !important;
}

.logout-item:hover {
	background-color: rgba(255, 107, 107, 0.15) !important;
	color: #ff8a8a !important;
	box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.3);
}

.logout-item::before {
	background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
}

@media (max-width: 1024px) and (min-width: 769px) {
	.dashboard-topbar {
		gap: 12px;
		padding: 14px 20px;
	}
	
	.user-avatar {
		width: 42px;
		height: 42px;
		font-size: 11px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.2px;
	}
	
	.topbar-user .user-meta strong {
		font-size: 14px;
	}
	
	.topbar-user .user-role {
		font-size: 11px;
		padding: 2px 6px;
	}
}

@media (max-width: 768px) {
	.user-avatar {
		width: 36px;
		height: 36px;
		font-size: 10px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.3px;
	}
	
	.topbar-user .user-meta {
		display: block;
	}
	
	.topbar-user .user-meta strong {
		font-size: 14px;
		line-height: 1.3;
	}
	
	.topbar-user .user-role {
		font-size: 10px;
		padding: 2px 5px;
		margin-top: 2px;
	}
	
	.topbar-notifications {
		margin-right: 6px;
		padding: 6px;
		order: 1;
	}
	
	.user-actions-toggle {
		padding: 6px;
		order: 2;
	}
	
	.user-actions-dropdown {
		min-width: 180px;
		right: 10px !important;
		left: auto !important;
		background: rgba(17, 46, 51, 0.95);
		border: 1px solid rgba(122, 220, 201, 0.3);
		backdrop-filter: blur(10px);
		padding: 4px;
		box-sizing: border-box;
	}
	
	.dropdown-item {
		padding: 10px 14px;
	}
	
	.dropdown-item svg {
		margin-right: 10px;
		width: 14px;
		height: 14px;
	}
	
	.dropdown-item span {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.dashboard-topbar {
		padding: 8px 12px;
		gap: 6px;
	}
	
	.topbar-menu {
		width: 40px;
		height: 40px;
	}
	
	.topbar-user {
		margin-left: 6px;
		margin-right: auto;
		gap: 6px;
	}
	
	.user-avatar {
		width: 32px;
		height: 32px;
		font-size: 9px;
		font-weight: bold;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1;
		padding: 3px;
		box-sizing: border-box;
		letter-spacing: -0.5px;
	}
	
	.topbar-user .user-meta {
		display: block;
	}
	
	.topbar-user .user-meta strong {
		font-size: 12px;
		line-height: 1.2;
	}
	
	.topbar-user .user-role {
		font-size: 9px;
		padding: 1px 3px;
		margin-top: 1px;
	}
	
	.topbar-notifications {
		margin-right: 4px;
		padding: 4px;
		order: 1;
	}
	
	.topbar-notifications svg {
		width: 16px;
		height: 16px;
	}
	
	.user-actions-toggle {
		padding: 4px;
		order: 2;
	}
	
	.user-actions-toggle svg {
		width: 14px;
		height: 14px;
	}
	
	.user-actions-dropdown {
		min-width: 160px;
		right: 5px !important;
		left: auto !important;
		background: rgba(17, 46, 51, 0.95);
		border: 1px solid rgba(122, 220, 201, 0.3);
		backdrop-filter: blur(10px);
		padding: 4px;
		box-sizing: border-box;
	}
	
	.dropdown-item {
		padding: 8px 12px;
	}
	
	.dropdown-item svg {
		margin-right: 8px;
		width: 12px;
		height: 12px;
	}
	
	.dropdown-item span {
		font-size: 12px;
	}
}

.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(6, 22, 28, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	backdrop-filter: blur(2px);
}

.page-loader.show { display: flex; }

.loader-spinner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 4px solid rgba(122, 220, 201, 0.25);
	border-top-color: rgba(122, 220, 201, 1);
	animation: spin 0.8s linear infinite;
	box-shadow: 0 0 20px rgba(122, 220, 201, 0.4);
}

@keyframes spin { to { transform: rotate(360deg); } }

.col-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.col-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 2px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 24px;
    height: 24px;
}

.btn-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.btn-warning {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.btn-warning:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
}

.btn svg {
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none; 
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000001; 
    padding: 24px;
}

@media (min-width: 769px) {
    .modal-overlay {
        padding: 24px;
    }
    
    .modal {
        width: 100% !important;
        max-width: 640px !important;
    }
}

.modal-content {
    background: rgba(17, 46, 51, 0.95);
    border: 1px solid rgba(122, 220, 201, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(122, 220, 201, 0.2);
    color: #e8fbf6;
    background: rgba(17, 46, 51, 0.6);
}

/* PDF Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000001;
    padding: 24px;
}

.modal-content {
    background: rgba(17, 46, 51, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.pdf-modal {
    max-width: 90vw;
    width: 1000px;
    height: 700px;
    padding: 2px 11px 5px 26px;
    z-index: 1000002;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(122, 220, 201, 0.2);
    color: #e8fbf6;
    background: rgba(17, 46, 51, 0.6);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e8fbf6;
}

/* PDF Modal Header - Fixed */
.pdf-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 12px 24px;
    border-bottom: 1px solid rgba(122, 220, 201, 0.2);
    color: #e8fbf6;
    background: rgba(17, 46, 51, 0.96);
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(122, 220, 201, 0.1);
}

.modal-body {
    padding: 20px;
    height: calc(100% - 60px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Ensure modal-body works with new structure */
.modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 18px 24px !important;
    scrollbar-gutter: stable !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* General modal sizing and scrolling on mobile */
    .modal-backdrop { 
        align-items: flex-start !important;
        padding: 16px !important;
    }
    .modal {
        width: 90vw !important;
        max-width: 90vw !important;
        max-height: 92dvh !important;
        margin: 0 !important;
    }
    .modal-header { 
        margin-bottom: 0 !important;
        padding: 16px 18px 12px 18px !important;
        flex-shrink: 0;
    }
    .modal-body {
        padding: 16px 18px !important;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        height: auto;
        max-height: none;
    }

    /* PDF modal remains constrained */
    .pdf-modal {
        max-width: 95vw;
        width: 95vw;
        height: 80dvh;
        padding: 8px;
    }
    .modal-body embed {
        width: 100%;
        height: 100%;
        border: none;
    }
}

/* PDF Modal Close Button - Positioned at top-right of modal */
.pdf-modal > .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: #7adcc9 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
    transform: none !important;
    line-height: normal !important;
}

.pdf-modal > .modal-close:hover {
    background: rgba(255, 68, 68, 0.1) !important;
    border: none !important;
    color: #ff6666 !important;
}

button[data-modal-close] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #7adcc9;
    transition: all 0.2s ease;
}

button[data-modal-close]:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
    border: none;
}

.pdf-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 90vw;
    height: 90vh;
    z-index: 1000002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #3C3C3C;
    border: 1px solid rgba(122, 220, 201, 0.28);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(3, 15, 21, 0.6);
}

.pdf-modal .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    background: #3C3C3C;
}

.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #3C3C3C;
}

@media (max-width: 768px) {
    /* PDF Modal Backdrop - ensure full screen */
    .modal-backdrop.pdf-viewer {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 1000001 !important;
    }
    
    .modal-content.pdf-modal {
        background: #3C3C3C !important;
        border: 1px solid rgba(122, 220, 201, 0.28) !important;
    }
    
    .pdf-modal {
        max-width: 100vw !important;
        max-height: 100dvh !important;
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .pdf-modal .modal-header {
        padding: 8px 6px;
        flex-shrink: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(122, 220, 201, 0.2) !important;
    }
    
    .pdf-modal > .modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
        z-index: 10000 !important;
    }
    
    .pdf-container {
        flex: 1 !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        height: 100% !important;
        position: relative !important;
    }
    
    .pdf-container iframe,
    .pdf-container object,
    .pdf-container embed {
        width: 100% !important;
        height: 100% !important;
        min-height: 80vh !important;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    
    .modal-content.pdf-modal {
        background: #3C3C3C;
        border: 1px solid rgba(122, 220, 201, 0.28);
        border-radius: 14px;
        width: 95%;
        max-width: 95%;
        height: 90%;
        max-height: 90%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(122, 220, 201, 0.1);
    }
    
    .modal-overlay .modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(122, 220, 201, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }
    
    .modal-overlay .modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #e8fbf6;
    }
    
    .modal-overlay .modal-body {
        flex: 1;
        overflow: hidden;
    }

    .modal-overlay .modal-body object,
    .modal-overlay .modal-body iframe {
        min-height: 400px;
        background: #3C3C3C;
    }

    .modal-overlay .modal-body object:not([data]) {
        display: none;
    }
    
    .modal-overlay .modal-body iframe {
        border: none;
        outline: none;
    }
}

@media (max-width: 480px) {
    /* General modal for small screens */
    .modal {
        width: 88vw !important;
        max-width: 88vw !important;
        max-height: 94dvh !important;
    }
    
    .modal-header {
        padding: 14px 16px 10px 16px !important;
    }
    
    .modal-body {
        padding: 14px 16px !important;
    }
    
    .modal-content.pdf-modal {
        background: #3C3C3C !important;
        border: 1px solid rgba(122, 220, 201, 0.28) !important;
        border-radius: 14px !important;
        max-width: 100vw;
        max-height: 100dvh;
        padding: 0;
    }
    
    .pdf-modal {
        max-width: 100vw;
        max-height: 100dvh;
        padding: 0;
        border-radius: 14px;
    }
    
    .pdf-modal .modal-header {
        padding: 6px 4px;
        flex-shrink: 0;
        border-radius: 14px 14px 0 0;
        border-bottom: 1px solid rgba(122, 220, 201, 0.2) !important;
    }
    
    .pdf-modal > .modal-close {
        top: 6px !important;
        right: 6px !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
    
    .pdf-container {
        flex: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(17, 46, 51, 0.6);
    border-bottom: 1px solid rgba(122, 220, 201, 0.2);
}
.pdf-toolbar .pdf-filename {
    color: #7adcc9;
    font-weight: 600;
    font-size: 14px;
}
.pdf-toolbar .btn.btn-primary.btn-sm {
    padding: 6px 10px;
}

.pdf-container {
    padding: 0;
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}


.pdf-container object,
.pdf-container embed {
    width: 100% !important;
    height: 100% !important;
}

.pdf-container object[type="application/pdf"] {
    --pdf-sidebar-width: 120px !important;
}

.pdf-container embed[type="application/pdf"] {
    --pdf-sidebar-width: 120px !important;
}

.pdf-container::-webkit-scrollbar { width: 10px; }
.pdf-container::-webkit-scrollbar-track { background: rgba(6,22,28,0.35); border-radius: 10px; }
.pdf-container::-webkit-scrollbar-thumb { background: rgba(122,220,201,0.35); border-radius: 10px; border: 1px solid rgba(6,22,28,0.55); }
.pdf-container::-webkit-scrollbar-thumb:hover { background: rgba(122,220,201,0.5); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(122, 220, 201, 0.2);
    background: rgba(17, 46, 51, 0.1);
}

.modal-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.pagination-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: rgba(17, 46, 51, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(122, 220, 201, 0.15);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(122, 220, 201, 0.1);
    color: #7adcc9;
    border: 1px solid rgba(122, 220, 201, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(122, 220, 201, 0.2);
    border-color: rgba(122, 220, 201, 0.5);
    color: #a8e6d9;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: rgba(122, 220, 201, 0.1);
    color: #7adcc9;
    border: 1px solid rgba(122, 220, 201, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: rgba(122, 220, 201, 0.2);
    border-color: rgba(122, 220, 201, 0.5);
    color: #a8e6d9;
}

.pagination-number.active {
    background: rgba(122, 220, 201, 0.3);
    color: #ffffff;
    border-color: rgba(122, 220, 201, 0.6);
    font-weight: 600;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: rgba(122, 220, 201, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.pagination-info {
    text-align: center;
    color: rgba(122, 220, 201, 0.8);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 620px) {
    .pagination-wrapper {
        padding: 15px;
        margin-top: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .divider-blue,
    .divider-blue-thin,
    .divider-blue-bold,
    .divider-blue-dashed,
    .divider-blue-dotted,
    .divider-blue-wavy {
        margin: 12px 0;
    }
    
    .divider-blue-text {
        margin: 16px 0;
        font-size: 13px;
    }
    
    .divider-blue-text::before,
    .divider-blue-text::after {
        margin: 0 8px;
    }
    
    .col-actions {
        gap: 4px;
    }
    
    .col-actions .btn {
        min-width: 28px;
        height: 28px;
        padding: 4px 6px;
        font-size: 11px;
    }
}

#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    z-index: 999999;
}
.toast {
    min-width: 260px;
    max-width: 420px;
    padding: 12px 40px 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(122, 220, 201, 0.28);
    background: rgba(17, 46, 51, 0.92);
    color: #e8fbf6;
    box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    transition: all .2s ease;
    backdrop-filter: blur(14px);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { 
    border: 1px solid rgba(122, 220, 201, 0.5) !important; 
    background: rgba(40, 120, 110, 0.9) !important; 
    color: #b4f4e4 !important;
    border-radius: 18px !important;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4) !important;
    backdrop-filter: blur(14px) !important;
    position: relative;
}

.toast-success::before {
    content: '✔';
    position: absolute;
    left: 16px;
    top: 14px;
    color: #bfeee3;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.toast-error::before {
    content: '✖';
    position: absolute;
    left: 16px;
    top: 14px;
    color: #ffb0a9;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.toast-error .toast-content {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    color: #ffb0a9;
}

.toast-success .toast-content {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin: 0 !important;
    color: #b4f4e4 !important;
}

.toast-error .error-header {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    color: #ffb0a9;
    border-bottom: 1px solid rgba(255, 120, 120, 0.8);
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    line-height: 1.3;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.toast-error .error-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 120, 120, 0.9), transparent);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toast-success .success-header {
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    color: #b4f4e4 !important;
    border-bottom: 1px solid rgba(122, 220, 201, 0.8) !important;
    margin-left: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    text-align: center !important;
    line-height: 1.3 !important;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.toast-success .success-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 220, 201, 0.9), transparent);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.toast-info { 
    border: 1px solid rgba(255, 120, 120, 0.35) !important; 
    background: rgba(191, 70, 70, 0.22) !important; 
    color: #ffb0a9 !important;
    border-radius: 18px !important;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4) !important;
    backdrop-filter: blur(14px) !important;
    position: relative;
}

.toast-info::before {
    content: '?';
    position: absolute;
    left: 22px;
    top: 18px;
    color: #ffb0a9;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.toast .toast-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ffb0a9 !important;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toast .toast-close:hover {
    color: #ffffff !important;
}
.toast-content { font-size: 14px; }

.toast-error {
    background: rgba(191, 70, 70, 0.22) !important;
    border: 1px solid rgba(255, 120, 120, 0.35) !important;
    color: #ffb0a9 !important;
    border-radius: 18px !important;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(8, 24, 30, 0.4) !important;
    backdrop-filter: blur(14px) !important;
    position: relative;
}

.toast-error * {
    color: #ffb0a9 !important;
}

.toast-error .toast-close {
    color: #ffb0a9 !important;
}

.toast-error .toast-close:hover {
    color: #ffffff !important;
}

.toast-info * {
    color: #ffb0a9 !important;
}

.toast-info .toast-close {
    color: #ffb0a9 !important;
}

.toast-info .toast-close:hover {
    color: #ffffff !important;
}

.toast-success * {
    color: #b4f4e4 !important;
}

.toast-success .toast-close {
    color: #b4f4e4 !important;
}

.toast-success .toast-close:hover {
    color: #ffffff !important;
}

.toast-success .success-header,
.toast-success .success-header * {
    color: #b4f4e4 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    text-transform: uppercase !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(122, 220, 201, 0.8) !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.3 !important;
}

.toast-success .toast-content,
.toast-success .toast-content * {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin: 0 !important;
    color: #b4f4e4 !important;
}

html body .toast-success .success-header,
html body .toast-success .success-header *,
.toast-success .success-header,
.toast-success .success-header * {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.3 !important;
}

#toast-container .toast-success .success-header,
#toast-container .toast-success .success-header * {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.3 !important;
}

@media (max-width: 560px) {
    #toast-container { left: 10px; right: 10px; top: 10px; }
    .toast { max-width: none; width: 100%; }
}

html, body { height: 100%; overflow: hidden; }

.dashboard-body { height: 100dvh; overflow: hidden; }
.dashboard-layout { height: 100dvh; overflow: hidden; }

.dashboard-main { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.dashboard-topbar { position: sticky; top: 0; z-index: 1000; }

/* ===== SUBMENU FIX - CLEAN STYLE VERSION ===== */

/* Mobile: Hiển thị submenu như nested menu trong sidebar */
@media (max-width: 1200px) {
	.declaration-submenu,
	.operations-submenu,
	.admin-declaration-submenu {
		position: static !important;
		display: none !important;
		background: rgba(12, 38, 43, 0.95) !important;
		border: none !important;
		border-radius: 8px !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
		margin: 4px 0 !important;
		width: 100% !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		z-index: auto !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		overflow: hidden !important;
	}
	
	.declaration-submenu.show,
	.operations-submenu.show,
	.admin-declaration-submenu.show {
		display: block !important;
        border: none !important; /* removed subtle teal border */
        background: rgba(12, 38, 43, 0.98) !important; /* Nền tối hơn, đậm hơn */
	}
	
	.declaration-submenu-content { 
		padding: 6px 8px; 
		gap: 1px; 
	}
	
	.declaration-submenu-item {
		gap: 8px;
		font-size: 13px;
		line-height: 1.4;
		border-radius: 6px;
		background: rgba(8, 30, 35, 0.6);
		border: 1px solid rgba(122, 220, 201, 0.1);
		color: rgba(232, 251, 246, 0.9);
		transition: all 0.2s ease;
	}
	
	.declaration-submenu-item:hover {
		background: rgba(122, 220, 201, 0.12);
		color: #f4fbf8;
		border-color: rgba(122, 220, 201, 0.25);
		transform: translateY(-1px);
	}
	
	.declaration-submenu-item.is-selected {
		background: linear-gradient(135deg, rgba(122, 220, 201, 0.2), rgba(100, 167, 166, 0.15));
		color: #f4fbf8;
		border-color: rgba(122, 220, 201, 0.4);
		box-shadow: 0 2px 4px rgba(122, 220, 201, 0.1);
	}
}


/* Desktop: Submenu hiển thị như nested menu trong sidebar */
@media (min-width: 1201px) {
	.declaration-submenu,
	.operations-submenu,
	.admin-declaration-submenu {
		position: static !important;
		display: none !important;
		background: rgba(8, 30, 35, 0.96) !important;
		border: 1px solid rgba(122, 220, 201, 0.25) !important;
		border-radius: 16px !important;
		box-shadow: 0 16px 32px rgba(3, 12, 18, 0.45) !important;
		backdrop-filter: blur(16px) !important;
		margin: 8px 0 !important;
		width: 100% !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		z-index: auto !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		overflow: hidden !important;
	}
	
	.declaration-submenu.show,
	.operations-submenu.show,
	.admin-declaration-submenu.show {
		display: block !important;
		border: none !important;
	}
}

