/* [project]/app/globals.css [app-client] (css) */
:root {
  --primary: #de1b1f;
  --primary-dark: #a61417;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  color: #1a1a1a;
  background: #f4f5f7;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

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

.app-page-content {
  padding: 0 1cm;
}

.sidebar {
  background: #f4f5f7;
  border-right: 1px solid #e5e7eb;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  width: 200px;
  height: 100vh;
  padding: 12px 8px;
  transition: width .15s;
  display: flex;
  position: sticky;
  top: 0;
}

.sidebar.collapsed {
  width: 56px;
}

.sidebar-toggle {
  color: #888;
  background: none;
  align-self: flex-end;
  padding: 4px 6px;
}

.sidebar-toggle:hover {
  color: #1a1a1a;
  background: #e5e7eb;
}

.sidebar-logo {
  object-fit: contain;
  width: 100%;
  margin: 4px 0 10px;
  padding: 0 2px;
  display: block;
}

.sidebar-logo-collapsed {
  background-image: url("/logo.png");
  background-position: -18px -4px;
  background-repeat: no-repeat;
  background-size: 150px 43px;
  width: 40px;
  height: 34px;
  margin: 4px auto 10px;
  display: block;
}

.sidebar-company {
  padding: 0 2px;
}

.sidebar-company-select {
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 100%;
  margin-bottom: 0;
  padding: 6px 8px;
  font-size: .8rem;
}

.sidebar-icon {
  color: #666;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: flex;
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  display: flex;
}

.sidebar-link {
  color: #444;
  white-space: nowrap;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: .85rem;
  text-decoration: none;
  display: flex;
  overflow: hidden;
}

.sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: #e5e7eb;
}

.sidebar-link.active {
  color: var(--primary);
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px #00000014;
}

.sidebar-user {
  border-top: 1px solid #e5e7eb;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  display: flex;
}

.sidebar-user-name {
  color: #666;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
  font-size: .78rem;
  overflow: hidden;
}

.sidebar-logout {
  color: #b91c1c;
  white-space: nowrap;
  background: none;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: .85rem;
  display: flex;
  overflow: hidden;
}

.sidebar-logout:hover {
  background: #e5e7eb;
}

.app-header {
  z-index: 30;
  background: #f4f5f7;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
}

.app-header-top {
  align-items: center;
  padding: 12px 24px;
  display: flex;
  position: relative;
}

.header-page-title {
  color: #333;
  font-size: .95rem;
  font-weight: 600;
}

.header-menu-toggle {
  position: relative;
}

.header-menu-icon {
  color: #444;
  background: none;
  border-radius: 4px;
  padding: 6px 8px;
  display: inline-flex;
}

.header-menu-icon:hover {
  background: #e5e7eb;
}

.header-menu-flyout {
  z-index: 40;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 220px;
  padding: 8px;
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  box-shadow: 0 4px 16px #00000026;
}

.header-menu-toggle:hover .header-menu-flyout {
  display: block;
}

.header-menu-item {
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: .85rem;
  display: block;
}

.header-menu-item:hover {
  background: #f4f5f7;
}

.header-menu-item.active {
  background: #e5e7eb;
  font-weight: 600;
}

.header-menu-parent {
  position: relative;
}

.header-menu-parent-label {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.header-menu-caret {
  color: #999;
  font-size: .7rem;
}

.header-menu-submenu {
  z-index: 41;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 200px;
  padding: 8px;
  display: none;
  position: absolute;
  top: -8px;
  right: 100%;
  box-shadow: 0 4px 16px #00000026;
}

.header-menu-parent:hover .header-menu-submenu {
  display: block;
}

.container {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  margin: 64px auto;
  padding: 32px;
  box-shadow: 0 1px 3px #0000001a;
}

.wide-container {
  background: #fff;
  border-radius: 8px;
  max-width: 720px;
  margin: 48px auto;
  padding: 32px;
  box-shadow: 0 1px 3px #0000001a;
}

h1 {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

label {
  color: #444;
  margin-bottom: 4px;
  font-size: .85rem;
  display: block;
}

input, select {
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 16px;
  padding: 8px 10px;
  font-size: 1rem;
}

button {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 1rem;
}

button:hover {
  background: var(--primary-dark);
}

.error {
  color: #b91c1c;
  margin-bottom: 12px;
  font-size: .9rem;
}

.company-chip {
  cursor: pointer;
  background: #e5e7eb;
  border-radius: 999px;
  margin-right: 8px;
  padding: 4px 10px;
  font-size: .9rem;
  display: inline-block;
}

.company-chip.active {
  background: var(--primary);
  color: #fff;
}

.ping-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.ping-list li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
  font-size: .9rem;
}

.module-container {
  margin: 24px 0;
}

.tab-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px #00000014;
}

.table-toolbar {
  top: var(--app-header-h, 68px);
  z-index: 25;
  background: #fff;
  padding-top: 4px;
  padding-bottom: 8px;
  position: sticky;
}

.table-scroll-wrapper {
  max-height: calc(100vh - var(--app-header-h, 68px) - var(--table-toolbar-h, 60px) - 150px);
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  width: auto;
  font-size: .9rem;
}

.data-table th {
  text-align: center;
  white-space: nowrap;
  background: #f4f5f7;
  border-bottom: 2px solid #e5e7eb;
  padding: 8px 10px;
}

.table-scroll-wrapper .data-table th {
  z-index: 2;
  position: sticky;
  top: 0;
}

.data-table td {
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  padding: 7px 10px;
}

.data-table tr:hover td {
  background: #f9fafb;
}

.data-table-totals td {
  background: #fafafa;
  border-top: 2px solid #ccc;
  border-bottom: none;
}

.clickable-row {
  cursor: pointer;
}

.table-toolbar button, .table-pagination input, .table-pagination select, .table-pagination button, .table-pagination label {
  font-size: .9rem;
}

.table-toolbar input, .table-toolbar select {
  font-size: .78rem;
}

.table-toolbar button, .table-pagination button {
  padding: 6px 12px;
}

.table-toolbar input, .table-toolbar select {
  height: 26px;
  padding: 2px 6px;
}

.table-toolbar input::placeholder, .table-toolbar select {
  color: #757575;
}

.filter-trigger {
  color: #757575;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  height: 26px;
  padding: 2px 6px;
  font-size: .78rem;
  display: inline-flex;
}

.filter-trigger:hover {
  background: #fff;
  border-color: #999;
}

.filter-trigger-arrow {
  color: #888;
  font-size: .65rem;
}

.filter-dropdown-panel {
  z-index: 40;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-width: 200px;
  max-height: 260px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 4px 16px #0000001f;
}

.filter-dropdown-option {
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 6px;
  font-size: .8rem;
  display: flex;
}

.filter-dropdown-option:hover {
  background: #f4f5f7;
}

.filter-dropdown-option input {
  width: auto;
  margin: 0;
}

.table-pagination select {
  height: 32px;
  padding: 4px 8px;
}

.table-toolbar select, .table-pagination select {
  width: auto;
}

.filter-clear {
  color: var(--primary);
  white-space: nowrap;
  background: none;
  flex-shrink: 0;
  align-self: center;
  padding: 2px 6px;
  font-size: .78rem;
  font-weight: 600;
}

.filter-clear:hover {
  color: var(--primary-dark);
  background: none;
}

.col-actions {
  text-align: center;
  background: #fff;
  position: sticky;
  right: 0;
  box-shadow: -2px 0 4px #0000000f;
}

.data-table th.col-actions {
  z-index: 3;
  background: #f4f5f7;
}

.data-table tr:hover td.col-actions {
  background: #f9fafb;
}

.module-link {
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.module-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.data-table th {
  text-overflow: ellipsis;
  overflow: hidden;
}

.modal-overlay {
  z-index: 50;
  background: #0006;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-box, .form-panel {
  background: #fff;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: .85rem;
}

.modal-box {
  width: 95%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px #0003;
}

.modal-box-wide {
  max-width: 1360px;
}

.form-panel {
  max-width: 980px;
  box-shadow: 0 1px 3px #00000014;
}

.form-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.form-sticky-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  margin: -18px -22px 18px;
  padding: 14px 22px 10px;
}

.modal-box .form-sticky-header {
  z-index: 5;
  position: sticky;
  top: 0;
}

.form-sticky-id {
  color: #666;
  margin-top: 4px;
  font-size: .78rem;
}

.form-sticky-id strong {
  color: #1a1a1a;
}

.modal-box h2, .form-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.form-close {
  color: #888;
  background: none;
  padding: 2px 8px;
  font-size: 1rem;
  line-height: 1;
}

.form-close:hover {
  color: #1a1a1a;
  background: #f4f5f7;
}

.modal-box label, .form-panel label {
  margin-bottom: 2px;
  font-size: .75rem;
}

.modal-box input, .modal-box select, .modal-box textarea, .form-panel input, .form-panel select, .form-panel textarea {
  box-sizing: border-box;
  width: auto;
  height: 28px;
  margin-bottom: 8px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: .82rem;
}

.modal-box textarea, .form-panel textarea {
  height: auto;
}

.form-grid {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 16px;
  display: flex;
}

.form-grid > div {
  flex-direction: column;
  flex: none;
  display: flex;
}

.pedido-form .form-grid input, .pedido-form .form-grid select {
  margin-bottom: 0;
}

.pedido-form .form-grid > div.full {
  margin-bottom: 8px;
}

.pedido-form table.data-table input {
  background: none;
  border: none;
  height: 24px;
  padding: 2px 4px;
}

.pedido-form table.data-table td {
  padding: 4px 6px;
}

.form-grid .full {
  flex: 100%;
}

.form-grid .full input, .form-grid .full select {
  width: 100%;
}

.form-section-title {
  color: #999;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #eee;
  margin-top: 10px;
  margin-bottom: 2px;
  padding-bottom: 3px;
  font-size: .72rem;
  font-weight: 700;
}

.form-section-title:first-child {
  margin-top: 0;
}

.section-toggle-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.section-toggle-btn:hover {
  background: var(--primary-dark);
}

.pp-buscador-item:hover {
  background: #f4f5f7;
}

.foto-nav {
  color: #666;
  background: none;
  width: 20px;
  height: 24px;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
}

.foto-nav:hover:not(:disabled) {
  color: #1a1a1a;
}

.foto-nav:disabled {
  opacity: .3;
  cursor: default;
}

.foto-btn {
  color: #1a1a1a;
  background: #e5e7eb;
  border-radius: 4px;
  width: 26px;
  height: 22px;
  padding: 0;
  font-size: .8rem;
  line-height: 1;
}

.foto-btn:hover:not(:disabled) {
  background: #d1d5db;
}

.form-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.form-actions button {
  padding: 6px 14px;
  font-size: .85rem;
}

.form-actions .secondary {
  color: #1a1a1a;
  background: #e5e7eb;
}

.column-config-panel {
  z-index: 40;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 260px;
  max-height: 360px;
  padding: 12px;
  font-size: .85rem;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  overflow-y: auto;
  box-shadow: 0 4px 16px #0000001f;
}

.column-config-row {
  border-bottom: 1px solid #f0f0f0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  display: flex;
}

.column-config-row button {
  color: #1a1a1a;
  background: #e5e7eb;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: .8rem;
}

.column-config-row.dragging {
  opacity: .4;
}

.drag-handle {
  cursor: grab;
  color: #888;
  padding: 2px 8px;
  font-size: 1rem;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/