.content-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.entry-title{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.btn,
.action-nav-button,
.form-nav-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-weight: 700;
  cursor:pointer;
  transition: background .15s, transform .1s, border-color .15s;
  box-sizing:border-box;
}

.btn-primary{
  background: var(--nexus-orange);
  border: 0;
  color:#fff;
}
.btn-primary:hover{ background: var(--nexus-orange-hover); transform: translateY(-1px); }

.btn-light{
  background:#808080;
  border: 1px solid #808080;
  color:#fff;
  box-shadow: var(--shadow-sm);
}

.action-nav-button{
  background:#ff9800;
  border: 1px solid #fb8c00;
  margin-bottom: 10px;
  color:#fff;
  box-shadow: var(--shadow-sm);
}

.action-nav-button:hover{
  background:#fb8c00;; 
  border-color:#fb8c00;
  transform: translateY(-1px);
}

.btn-light:hover{
  background:#6f6f6f;
  border-color:#6f6f6f;
  transform: translateY(-1px);
}

.card-fieldset{
  border:1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px 14px 10px;
  margin: 0 0 14px 0;
  box-shadow: var(--shadow-md);
}

.card-section__title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #000;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.card-section {
  margin-bottom: 6px;
}

.card-divider{
  height: 1px;
  background: #eef2f7;
  margin: 10px 0 12px;
}

.nexus-form-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.nexus-form .grid-x {
  margin-bottom: 14px;
}

.form-nav-text{
  margin-left:auto;
  font-size:12px;
  color: var(--muted);
}

.col-actions { overflow: visible; }             
.nexus-table td, .nexus-table th { overflow: visible; }  

.actions-controls{ position: relative; display:inline-flex; justify-content:flex-end; width:100%; }

.actions-button{
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.actions-button:hover{ background:#f9fafb; }

.actions-controls > .actions-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 6px;

  display: none !important;
  z-index: 9999;
}

.actions-controls > .actions-menu.is-fixed{
  position: fixed;
  right: auto;
  top: auto;
}

.actions-controls.is-open > .actions-menu{
  display: block !important; 
}

.actions-menu a{
  display: flex;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 13px;
}
.actions-menu a:hover{ background:#f3f4f6; }

.actions-controls.is-open .actions-menu{ display: block; }

.filters-card{
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 14px 14px;
  box-shadow: var(--shadow-md);
  margin: 12px 0 14px;
}

.filters-card__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #000000 !important;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filters-card__title i{
  color: #000000;
}

.filters-grid--tight.grid-margin-x{
  margin-left: -0.45rem;
  margin-right: -0.45rem;
}
.filters-grid--tight.grid-margin-x > .cell{
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.filters-actions{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
}

.filters-field > span{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 6px;
}

.filters-input{
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display:flex;
  align-items:center;
  gap:10px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.filters-input i{
  color: #9ca3af;
  width: 16px;
  text-align:center;
  font-size: 14px;
}

.filters-input input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.filters-input:focus-within{
  border-color: var(--nexus-orange);
  box-shadow: 0 0 0 3px rgba(255,152,0,.18);
  background: var(--nexus-orange-soft);
}

.filters-input:focus-within i{
  color: var(--nexus-orange);
}

.filters-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.nx-ms{ position: relative; z-index: 50; }

.nx-ms__button{
  width: 100%;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
}
.nx-ms__text{
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nx-ms__panel{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 8px);
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 9999;
  display:none;
  padding: 10px;
}
.nx-ms.is-open .nx-ms__panel{ display:block; }

.nx-ms__search{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.nx-ms__search i{ color:#9ca3af; }
.nx-ms__search-input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  font-size: 13px;
}

.nx-ms__list{
  max-height: 210px;
  overflow:auto;
  padding-right: 2px;
}
.nx-ms__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
}
.nx-ms__item:hover{ background:#f3f4f6; }
.nx-ms__item input{ width: 16px; height: 16px; }

.nx-acc{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.nx-acc__header{
  width: 100%;
  border: 0;
  background: #E5E7EB;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-weight: 900;
}

.nx-acc__title{
  display:flex;
  align-items:center;
  gap:10px;
  color: #111827;
  font-size: 13px;
  letter-spacing: .04em;
}

.nx-acc__chev{
  transition: transform .18s ease;
  color: #6b7280;
}

.nx-acc.is-open .nx-acc__chev{
  transform: rotate(180deg);
}

.nx-acc__body{
  padding: 12px 14px;
  display: none;
}

.nx-acc.is-open .nx-acc__body{
  display: block;
}

.nx-acc .card-divider{
  margin: 16px 0;
}

.nx-acc input[type="radio"],
.nx-acc input[type="checkbox"] {
    width: 16px;
    height: 16px;
    transform: none;
}

.nx-acc .nx-field__label {
    font-weight: 600;
}

.nx-file{
  width: 100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  box-sizing: border-box;
}

.nx-file__input{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nx-file__btn{
  flex: 0 0 auto;
  border:1px solid #d1d5db;
  background:#fff;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  font-weight:500;
}

.nx-file__text{
  flex: 1;
  font-size:13px;
  opacity:.75;
  white-space:nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px){
  .form-nav-text{ margin-left:0; width:100%; }
  .filters-actions{ justify-content:flex-start; }
  .filters-footer{ justify-content:flex-start; }
}
