/* =========================================================
   ALJANIA MESA DE PARTES & TRÁMITE DOCUMENTARIO — STYLES
   ========================================================= */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* -------------------------------------------------- */
/* 1. SPLIT-SCREEN AUTHENTICATION & WIZARD (LOG-IN/REG)*/
/* -------------------------------------------------- */
.amp-portal-auth-wrap {
	display: flex;
	min-height: 560px;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
	overflow: hidden;
	margin: 20px 0;
}

/* LEFT HERO PANEL */
.amp-hero-left {
	width: 40%;
	background: linear-gradient(135deg, #001f3f 0%, #002b49 50%, #0f172a 100%);
	color: #ffffff;
	padding: 40px 45px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}
.amp-hero-left::after {
	content: '';
	position: absolute;
	bottom: -100px; right: -100px;
	width: 300px; height: 300px;
	border-radius: 50%;
	background: rgba(255, 193, 7, 0.05);
	pointer-events: none;
}
.amp-hero-brand-box {
	display: flex;
	align-items: center;
	gap: 14px;
}
.amp-hero-brand-logo {
	width: 46px; height: 46px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; color: #ffc107;
	backdrop-filter: blur(8px);
}
.amp-hero-subtag {
	font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: #ffc107; display: block; margin-bottom: 2px;
}
.amp-hero-title {
	font-size: 16px; font-weight: 800; margin: 0; color: #ffffff; text-transform: uppercase; letter-spacing: -0.2px;
}

.amp-hero-body { margin: 0; }
.amp-hero-body h2 {
	font-size: 26px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.3; color: #ffffff; letter-spacing: -0.5px;
}
.amp-hero-body p {
	font-size: 14px; color: #93c5fd; margin: 0 0 20px 0; line-height: 1.5; max-width: 440px;
}
.amp-hero-features {
	list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px;
}
.amp-hero-features li {
	font-size: 13.5px; font-weight: 600; color: #f8fafc; display: flex; align-items: center; gap: 10px;
}
.amp-hero-features li i { color: #ffc107; font-size: 15px; }

.amp-hero-footer { font-size: 12px; color: #64748b; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; margin-top: 4px; }

/* RIGHT FORM PANEL */
.amp-hero-right {
	width: 60%;
	padding: 40px 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
	background: #f8fafc;
}
@media (max-width: 900px) {
	.amp-portal-auth-wrap { flex-direction: column; min-height: auto; }
	.amp-hero-left, .amp-hero-right { width: 100%; padding: 30px 20px; }
}

.amp-auth-box {
	width: 100%;
	max-width: 520px;
	background: #ffffff;
	border-radius: 16px;
	padding: 36px 40px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
	border: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.amp-auth-header { text-align: center; margin-bottom: 22px; }
.amp-auth-logo-badge {
	width: 44px; height: 44px;
	background: #eff6ff; color: #002b49;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px; margin: 0 auto 10px auto;
}
.amp-auth-header h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 4px 0; letter-spacing: -0.4px; }
.amp-auth-header p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.4; }

.amp-field { margin-bottom: 16px; }
.amp-field label {
	display: block; font-size: 12.5px; font-weight: 700; color: #0f172a; margin-bottom: 6px;
}
.amp-field-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.amp-link-forgot { font-size: 12px; font-weight: 700; color: #002b49; text-decoration: none; }
.amp-link-forgot:hover { text-decoration: underline; }

.amp-input-icon-wrap { position: relative; }
.amp-input-icon-wrap .input-icon {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px;
}
.amp-input-icon-wrap input {
	padding-left: 42px !important;
}
.amp-field input, .amp-field select, .amp-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 9px;
	font-size: 13.5px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #ffffff;
}
.amp-field input:focus, .amp-field select:focus, .amp-field textarea:focus {
	outline: none; border-color: #002b49; box-shadow: 0 0 0 3px rgba(0, 43, 73, 0.1);
}

.amp-auth-divider {
	display: flex; align-items: center; text-align: center; margin: 16px 0; color: #94a3b8; font-size: 12px; font-weight: 700;
}
.amp-auth-divider::before, .amp-auth-divider::after {
	content: ''; flex: 1; border-bottom: 1px solid #e2e8f0;
}
.amp-auth-divider span { padding: 0 10px; }

/* 3-STEP WIZARD */
.amp-wizard-steps {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
	position: relative;
}
.amp-step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: #94a3b8;
}
.amp-step-item.active { color: #002b49; }
.amp-step-item .step-num {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 800;
}
.amp-step-item.active .step-num { background: #002b49; color: #ffc107; }
.amp-step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 10px; }

.amp-wizard-page { display: none; }
.amp-wizard-page.active { display: block; }

.amp-radio-group { display: flex; gap: 12px; margin-top: 6px; }
.amp-radio-card {
	flex: 1;
	padding: 12px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 9px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: all 0.2s;
	white-space: nowrap;
}
.amp-radio-card input { display: none; }
.amp-radio-card.active { border-color: #002b49; background: #eff6ff; color: #002b49; }

.amp-input-btn-wrap { display: flex; gap: 12px; }
.amp-input-btn-wrap input { flex-grow: 1; }

.amp-welcome-pill {
	background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; margin-bottom: 18px;
}

/* REAL-TIME PASSWORD STRENGTH METER */
.amp-pass-strength-wrap {
	margin-top: 8px;
}
.amp-pass-bar-bg {
	height: 6px;
	width: 100%;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 6px;
}
.amp-pass-bar-fill {
	height: 100%;
	width: 0%;
	transition: width 0.3s ease, background 0.3s ease;
	border-radius: 4px;
	background: #dc2626;
}
.amp-pass-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 700;
	color: #64748b;
}
.amp-pass-text { font-weight: 800; }
.amp-pass-rule { display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; }
.amp-pass-rule.valid { color: #16a34a; }
.amp-pass-rule.invalid { color: #94a3b8; }

.amp-wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* BUTTONS */
.amp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10.5px 20px; border-radius: 9px; font-size: 13.5px; font-weight: 700;
	cursor: pointer; border: 1.5px solid transparent; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none !important;
}
.amp-btn-primary { background: #002b49; color: #ffffff !important; }
.amp-btn-primary:hover { background: #003b70; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,43,73,0.25); }
.amp-btn-gold { background: #ffc107; color: #002b49 !important; font-weight: 800; }
.amp-btn-gold:hover { background: #ffca28; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,193,7,0.35); }
.amp-btn-outline { background: #ffffff; border-color: #cbd5e1; color: #0f172a !important; }
.amp-btn-outline:hover { background: #f8fafc; border-color: #002b49; color: #002b49 !important; }
.amp-btn-ghost { background: #f1f5f9; color: #475569 !important; }
.amp-btn-ghost:hover { background: #e2e8f0; color: #0f172a !important; }
.amp-btn-block { width: 100%; }
.amp-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }

/* -------------------------------------------------- */
/* 2. CITIZEN DASHBOARD (AUTHENTICATED PORTAL)        */
/* -------------------------------------------------- */
.amp-dashboard-layout {
	display: flex;
	min-height: 580px;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #f8fafc;
	color: #0f172a;
	border-radius: 16px;
	box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
	overflow: hidden;
	margin: 35px 0 40px 0;
	scroll-margin-top: 210px;
}

/* SIDEBAR */
.amp-sidebar {
	width: 270px;
	background: linear-gradient(180deg, #001f3f 0%, #002b49 100%);
	color: #ffffff;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	box-sizing: border-box;
}
.amp-sidebar-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.amp-sidebar-logo {
	width: 42px; height: 42px; background: rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #ffc107;
}
.amp-sidebar-header h3 { font-size: 15px; font-weight: 800; margin: 0 0 2px 0; color: #ffffff; text-transform: uppercase; }
.amp-badge-doc { font-size: 10.5px; font-weight: 800; color: #ffc107; background: rgba(255,193,7,0.15); padding: 2px 7px; border-radius: 4px; }

.amp-sidebar-user-pill {
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.amp-sidebar-user-pill .user-avatar { font-size: 24px; color: #ffc107; }
.amp-sidebar-user-pill .user-name { font-size: 13px; font-weight: 700; color: #ffffff; display: block; line-height: 1.2; }
.amp-sidebar-user-pill .user-role { font-size: 11px; color: #93c5fd; }

.amp-sidebar-menu { display: flex; flex-direction: column; gap: 6px; }
.amp-menu-item {
	display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #93c5fd; text-decoration: none !important; transition: all 0.2s;
}
.amp-menu-item:hover, .amp-menu-item.active { background: rgba(255,255,255,0.14); color: #ffffff; }
.amp-menu-item.logout { color: #fca5a5; margin-top: auto; }
.amp-menu-item.logout:hover { background: rgba(239,68,68,0.2); color: #ffffff; }

/* MAIN CONTENT */
.amp-main-content {
	flex-grow: 1; padding: 30px 40px; box-sizing: border-box; overflow-x: hidden;
}

.amp-welcome-bar {
	background: linear-gradient(135deg, #001f3f 0%, #002b49 100%);
	color: #ffffff; padding: 26px 30px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; box-shadow: 0 10px 25px rgba(0,43,73,0.12); border-bottom: 4px solid #ffc107;
}
.amp-welcome-bar h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px 0; color: #ffffff; }
.amp-welcome-bar p { font-size: 13.5px; color: #93c5fd; margin: 0; }

.amp-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.amp-kpi-card {
	background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 18px; box-shadow: 0 4px 15px rgba(15,23,42,0.03);
}
.amp-kpi-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.amp-kpi-icon.blue { background: #eff6ff; color: #1d4ed8; }
.amp-kpi-icon.yellow { background: #fefce8; color: #a16207; }
.amp-kpi-icon.green { background: #f0fdf4; color: #15803d; }
.amp-kpi-num { font-size: 26px; font-weight: 800; color: #0f172a; display: block; line-height: 1.1; }
.amp-kpi-label { font-size: 13px; font-weight: 600; color: #64748b; }

.amp-view-page { display: none; }
.amp-view-page.active { display: block; }

.amp-card-box {
	background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; box-shadow: 0 4px 20px rgba(15,23,42,0.03); margin-bottom: 30px;
}
.amp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.amp-card-header h3 { font-size: 18px; font-weight: 800; margin: 0; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.amp-link-view-all { font-size: 13px; font-weight: 700; color: #002b49; text-decoration: none; }

.amp-filter-toolbar {
	display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap;
}
.filter-inputs { display: flex; gap: 10px; flex-wrap: wrap; flex-grow: 1; }
.filter-inputs input, .filter-inputs select {
	padding: 9px 13px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 13px; background: #ffffff;
}

/* TABLES */
.amp-table-responsive { width: 100%; overflow-x: auto; }
.amp-table { width: 100%; border-collapse: collapse; text-align: left; }
.amp-table th {
	background: #f8fafc; padding: 13px 16px; font-size: 12px; font-weight: 800; color: #64748b; text-transform: uppercase; border-bottom: 1.5px solid #e2e8f0;
}
.amp-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; color: #1e293b; vertical-align: middle; }
.amp-table tr:hover td { background: #f8fafc; }

.amp-expediente-code { font-size: 14px; font-weight: 800; color: #002b49; }
.amp-tag-doc { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.amp-asunto-truncate { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.amp-status-badge {
	font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.amp-status-badge.st-registrado { color: #2563eb; }
.amp-status-badge.st-recibido { color: #0284c7; }
.amp-status-badge.st-derivado { color: #d97706; }
.amp-status-badge.st-atendido { color: #16a34a; }
.amp-status-badge.st-observado { color: #dc2626; }

/* MODALS & DRAWERS */
.amp-modal-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15,23,42,0.65); backdrop-filter: blur(4px); z-index: 999990;
	display: none; align-items: center; justify-content: center; padding: 20px;
}
.amp-modal-overlay.active { display: flex; }

.amp-modal-box {
	background: #ffffff; border-radius: 16px; padding: 30px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 25px 50px -12px rgba(15,23,42,0.25);
}
.amp-modal-large { max-width: 780px; }
.amp-modal-close {
	position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; font-weight: bold; cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center;
}
.amp-modal-close:hover { background: #e2e8f0; color: #0f172a; }

.amp-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.amp-modal-header-icon { width: 48px; height: 48px; border-radius: 12px; background: #eff6ff; color: #002b49; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.amp-modal-header h3 { font-size: 18px; font-weight: 800; margin: 0 0 3px 0; color: #0f172a; }
.amp-modal-header p { font-size: 13px; color: #64748b; margin: 0; }

.amp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amp-form-grid .full { grid-column: 1 / -1; }

.amp-modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #f1f5f9; }

/* DRAG & DROP FILE UPLOAD DROPZONE */
.amp-file-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	padding: 22px 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
}
.amp-file-dropzone:hover, .amp-file-dropzone.dragover {
	border-color: #002b49;
	background: #eff6ff;
}
.amp-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.amp-drop-icon {
	font-size: 32px;
	color: #002b49;
	margin-bottom: 4px;
}
.amp-dropzone-inner h4 {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}
.amp-dropzone-inner h4 span {
	color: #2563eb;
	text-decoration: underline;
}
.amp-drop-help {
	font-size: 12px;
	color: #64748b;
	margin: 0;
}
.amp-file-selected-badge {
	margin-top: 10px;
	background: #ffffff;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.amp-btn-remove-file {
	background: #fef2f2;
	color: #ef4444;
	border: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	line-height: 1;
}
.amp-btn-remove-file:hover {
	background: #fee2e2;
	color: #b91c1c;
}

/* TOAST NOTIFICATION SYSTEM (FIXED TOP-RIGHT BELOW HEADER) */
#amp-toast-container {
	position: fixed;
	top: 90px;
	right: 25px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 380px;
	pointer-events: none;
}

.amp-toast {
	pointer-events: auto;
	background: #ffffff;
	border-radius: 12px;
	padding: 14px 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	border-left: 4px solid #002b49;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	animation: ampSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	transition: all 0.3s ease;
	border-top: 1px solid #f1f5f9;
	border-right: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.amp-toast.amp-toast-success { border-left-color: #16a34a; }
.amp-toast.amp-toast-error { border-left-color: #dc2626; }
.amp-toast.amp-toast-warning { border-left-color: #d97706; }
.amp-toast.amp-toast-info { border-left-color: #2563eb; }

.amp-toast-icon { font-size: 18px; margin-top: 2px; }
.amp-toast-success .amp-toast-icon { color: #16a34a; }
.amp-toast-error .amp-toast-icon { color: #dc2626; }
.amp-toast-warning .amp-toast-icon { color: #d97706; }
.amp-toast-info .amp-toast-icon { color: #2563eb; }

.amp-toast-body { flex: 1; }
.amp-toast-title { font-size: 13.5px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.amp-toast-msg { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.4; }

@keyframes ampSlideIn {
	from { transform: translateX(120%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* -------------------------------------------------- */
/* 3. SIAMSOFT PUNO TABLE & FILTER STYLES            */
/* -------------------------------------------------- */
.amp-siam-filter-bar {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.amp-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.amp-filter-group label {
	font-size: 11.5px;
	font-weight: 800;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.amp-filter-group input[type="date"],
.amp-filter-group select {
	padding: 8px 12px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	color: #0f172a;
	background: #ffffff;
	min-width: 140px;
	outline: none;
	transition: border-color 0.2s;
}
.amp-filter-group input[type="date"]:focus,
.amp-filter-group select:focus {
	border-color: #002b49;
}
.amp-btn-clear-filter {
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	color: #64748b;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}
.amp-btn-clear-filter:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #94a3b8;
}

/* SIAMSOFT TABLE FORMATTING */
.amp-siam-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	text-align: left;
	font-size: 13px;
}
.amp-siam-table th {
	background: #f1f5f9;
	color: #334155;
	font-weight: 800;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 12px 14px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 2px solid #cbd5e1;
	white-space: nowrap;
	position: relative;
	box-sizing: border-box;
}

.amp-col-resizer {
	position: absolute;
	top: 0;
	right: 0;
	width: 7px;
	bottom: 0;
	cursor: col-resize;
	user-select: none;
	z-index: 10;
	touch-action: none;
	transition: background 0.15s ease;
}

.amp-col-resizer:hover,
.amp-col-resizer.is-resizing {
	background: #2563eb;
	width: 4px;
}

body.amp-is-resizing {
	cursor: col-resize !important;
	user-select: none !important;
}
.amp-siam-table th.sortable {
	cursor: pointer;
	user-select: none;
}
.amp-siam-table th.sortable:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.amp-siam-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
	color: #1e293b;
	background: #ffffff;
}
.amp-siam-table tr:hover td {
	background: #f8fafc;
}

.amp-time-sub {
	font-size: 11.5px;
	color: #475569;
	font-weight: 600;
	display: block;
}
.amp-pill-tipo-virtual {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	padding: 3px 8px;
	font-weight: 800;
	font-size: 10.5px;
	display: inline-block;
	letter-spacing: 0.3px;
}
.amp-doc-type-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}
.amp-doc-type-cell i {
	font-size: 18px;
	color: #0284c7;
}
.amp-doc-type-cell strong {
	display: block;
	font-size: 12px;
	color: #0f172a;
	line-height: 1.2;
}
.amp-doc-type-cell span {
	font-size: 11px;
	color: #64748b;
}

.amp-office-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}
.amp-office-cell i {
	font-size: 16px;
	color: #0f766e;
}
.amp-office-cell strong {
	display: block;
	font-size: 11.5px;
	color: #0f172a;
	line-height: 1.2;
}
.amp-office-cell span {
	font-size: 11px;
	color: #64748b;
}

.amp-pill-badge {
	border: none;
	border-radius: 6px;
	padding: 4px 10px;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: transform 0.15s ease, opacity 0.15s;
}
.amp-pill-badge:hover {
	transform: scale(1.05);
	opacity: 0.9;
}
.amp-pill-badge.blue {
	background: #e0f2fe;
	color: #0284c7;
}
.amp-pill-badge.green {
	background: #dcfce7;
	color: #15803d;
}

.amp-badge-antiguedad {
	background: #fce7f3;
	color: #be185d;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	display: inline-block;
	white-space: nowrap;
}

.amp-btn-action-icon {
	color: #0284c7;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all 0.2s;
}
.amp-btn-action-icon:hover {
	background: #0284c7;
	color: #ffffff;
}

/* PAGINATION BAR */
.amp-siam-pagination-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 4px 0 4px;
	margin-top: 10px;
	border-top: 1px solid #e2e8f0;
	font-size: 13px;
	color: #64748b;
	flex-wrap: wrap;
	gap: 12px;
}
.amp-pag-right {
	display: flex;
	align-items: center;
	gap: 10px;
}
.amp-pag-right select {
	padding: 5px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 12.5px;
	background: #ffffff;
}
.amp-pag-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}
.amp-pag-btn:hover:not(:disabled) {
	background: #002b49;
	color: #ffffff;
	border-color: #002b49;
}
.amp-pag-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ATTACHMENT CARDS IN DETALLE MODAL */
.amp-attachment-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.amp-attachment-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.amp-att-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.amp-att-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.amp-att-icon.pdf { background: #fef2f2; color: #dc2626; }
.amp-att-icon.doc { background: #eff6ff; color: #2563eb; }
.amp-att-icon.img { background: #f0fdf4; color: #16a34a; }
.amp-att-icon.zip { background: #fefce8; color: #ca8a04; }

.amp-att-name { font-size: 13.5px; font-weight: 700; color: #0f172a; display: block; }
.amp-att-meta { font-size: 11.5px; color: #64748b; }

.amp-att-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* TIMELINE VERTICAL STEPPER & DAYS CARD */
.amp-timeline-stepper {
	position: relative;
	padding-left: 30px;
	margin: 20px 0;
}
.amp-timeline-stepper::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: #cbd5e1;
}
.amp-timeline-step {
	position: relative;
	margin-bottom: 24px;
}
.amp-timeline-step:last-child { margin-bottom: 0; }
.amp-timeline-dot {
	position: absolute;
	left: -30px;
	top: 2px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #002b49;
	color: #ffc107;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	box-shadow: 0 0 0 4px #ffffff;
}
.amp-timeline-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
}
.amp-timeline-card h4 { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0 0 4px 0; }
.amp-timeline-card p { font-size: 13px; color: #475569; margin: 0 0 8px 0; }
.amp-timeline-time { font-size: 11.5px; color: #64748b; font-weight: 600; }

.amp-days-badge-card {
	background: linear-gradient(135deg, #001f3f 0%, #002b49 100%);
	color: #ffffff;
	border-radius: 14px;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
}
.amp-days-badge-card .days-count {
	font-size: 28px;
	font-weight: 800;
	color: #ffc107;
}
.amp-pill-status-active {
	background: #16a34a;
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
}
