/* css/inventory.css */
/* --- LAYOUT PRINCIPAL FULL WIDTH --- */
.inventory-layout { padding: 24px; width: 100%; display: block; }

.table-header-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 16px; }
.table-header-toolbar h2 { margin: 0; }
.toolbar-actions { display: flex; gap: 16px; align-items: center; flex: 1; justify-content: flex-end; }
.search-box { flex: 1; max-width: 400px; }
.search-box input { width: 100%; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.search-box input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }

/* --- SIDE DRAWER --- */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); z-index: 1000; opacity: 1; transition: opacity 0.3s ease; }
.drawer-overlay.hidden { display: none; opacity: 0; pointer-events: none; }
.side-drawer { position: fixed; top: 0; right: -500px; width: 100%; max-width: 450px; height: 100vh; background: var(--bg-surface); box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2); z-index: 1010; overflow-y: auto; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.side-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); position: sticky; top: 0; z-index: 10; }
.drawer-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-main); }
.btn-close-drawer { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0; }
.btn-close-drawer:hover { color: var(--brand-accent); }
.drawer-body { padding: 24px; flex: 1; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.form-actions { margin-top: 30px; display: flex; gap: 12px; }
.form-actions button { flex: 1; padding: 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary-solid { background: var(--brand-primary); color: #fff; }
.btn-primary-solid:hover { background: #0284c7; }
.btn-primary-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary-solid { background: var(--bg-surface-hover); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary-solid:hover { background: var(--border-color); }

/* --- TABLAS PRINCIPALES --- */
.table-container { width: 100%; }
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md) var(--radius-md) 0 0; border: 1px solid var(--border-color); border-bottom: none;}
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-surface); }
.data-table th { padding: 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background-color: var(--bg-surface-hover); border-bottom: 2px solid var(--border-color); position: sticky; top: 0; }
.data-table td { padding: 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-main); font-size: 0.95rem; }
.data-table tbody tr:hover { background-color: var(--bg-surface-hover); }

.btn-action { background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.btn-action.edit { border-color: var(--border-color); color: var(--brand-primary); background: var(--bg-base); }
.btn-action.edit:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-action.delete { color: var(--brand-accent); }
.btn-action.delete:hover { background: rgba(239, 68, 68, 0.1); }

/* --- PAGINACIÓN --- */
.pagination-container { display: flex; justify-content: flex-end; align-items: center; padding: 16px 24px; border: 1px solid var(--border-color); gap: 6px; background: var(--bg-surface); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.btn-page { background: var(--bg-base); border: 1px solid var(--border-color); color: var(--text-main); padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.btn-page:hover:not(:disabled) { background: var(--bg-surface-hover); color: var(--brand-primary); }
.btn-page.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-page:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 0.85rem; color: var(--text-muted); margin-right: auto; font-weight: 600;}

/* css/inventory.css */
/* --- LAYOUT PRINCIPAL FULL WIDTH --- */
.inventory-layout { padding: 24px; width: 100%; display: block; }

.table-header-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 16px; }
.table-header-toolbar h2 { margin: 0; }
.toolbar-actions { display: flex; gap: 16px; align-items: center; flex: 1; justify-content: flex-end; }
.search-box { flex: 1; max-width: 400px; }
.search-box input { width: 100%; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.search-box input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }

/* --- SIDE DRAWER --- */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); z-index: 1000; opacity: 1; transition: opacity 0.3s ease; }
.drawer-overlay.hidden { display: none; opacity: 0; pointer-events: none; }
.side-drawer { position: fixed; top: 0; right: -500px; width: 100%; max-width: 450px; height: 100vh; background: var(--bg-surface); box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2); z-index: 1010; overflow-y: auto; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.side-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); position: sticky; top: 0; z-index: 10; }
.drawer-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-main); }
.btn-close-drawer { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0; }
.btn-close-drawer:hover { color: var(--brand-accent); }
.drawer-body { padding: 24px; flex: 1; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.form-actions { margin-top: 30px; display: flex; gap: 12px; }
.form-actions button { flex: 1; padding: 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary-solid { background: var(--brand-primary); color: #fff; }
.btn-primary-solid:hover { background: #0284c7; }
.btn-primary-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary-solid { background: var(--bg-surface-hover); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary-solid:hover { background: var(--border-color); }

/* css/inventory.css */
/* --- LAYOUT PRINCIPAL FULL WIDTH --- */
.inventory-layout { padding: 24px; width: 100%; display: block; }

.table-header-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 16px; }
.table-header-toolbar h2 { margin: 0; }
.toolbar-actions { display: flex; gap: 16px; align-items: center; flex: 1; justify-content: flex-end; }
.search-box { flex: 1; max-width: 400px; }
.search-box input { width: 100%; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.search-box input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }

/* --- FORMULARIOS --- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-main); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.btn-primary-solid { background: var(--brand-primary); color: #fff; padding: 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary-solid:hover { background: #0284c7; }
.btn-primary-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary-solid { background: var(--bg-surface-hover); color: var(--text-main); border: 1px solid var(--border-color); padding: 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.btn-secondary-solid:hover { background: var(--border-color); }

/* --- TABLAS PRINCIPALES --- */
.table-container { width: 100%; }
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md) var(--radius-md) 0 0; border: 1px solid var(--border-color); border-bottom: none;}
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-surface); }
.data-table th { padding: 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background-color: var(--bg-surface-hover); border-bottom: 2px solid var(--border-color); position: sticky; top: 0; }
.data-table td { padding: 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-main); font-size: 0.95rem; }
.data-table tbody tr:hover { background-color: var(--bg-surface-hover); }

.btn-action { background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.btn-action.edit { border-color: var(--border-color); color: var(--brand-primary); background: var(--bg-base); }
.btn-action.edit:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-action.delete { color: var(--brand-accent); }
.btn-action.delete:hover { background: rgba(239, 68, 68, 0.1); }

/* --- PAGINACIÓN --- */
.pagination-container { display: flex; justify-content: flex-end; align-items: center; padding: 16px 24px; border: 1px solid var(--border-color); gap: 6px; background: var(--bg-surface); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.btn-page { background: var(--bg-base); border: 1px solid var(--border-color); color: var(--text-main); padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.btn-page:hover:not(:disabled) { background: var(--bg-surface-hover); color: var(--brand-primary); }
.btn-page.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-page:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 0.85rem; color: var(--text-muted); margin-right: auto; font-weight: 600;}

/* --- MODALES Y APROBACIONES --- */
.approval-bar { background: #f59e0b; color: white; padding: 12px 24px; text-align: center; font-weight: 700; cursor: pointer; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: background 0.2s; }
.approval-bar:hover { background: #d97706; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(4px); }
.modal-card { background: var(--bg-surface); padding: 32px; border-radius: var(--radius-lg); width: 100%; border: 1px solid var(--border-color); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); max-height: 90vh; display: flex; flex-direction: column; }
.btn-approve { background: #10b981; color: white; border: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-approve:hover { background: #059669; }
.btn-reject { background: #ef4444; color: white; border: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-left: 8px; }
.btn-reject:hover { background: #dc2626; }