.gotic-note{
  display:block;
  width:100%;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid #bae6fd;
  background:#f0f9ff;
  color:#075985;
  border-radius:10px;
  font-weight:800;
  line-height:1.8;
}

.gotic-inline-editor{
  display:block;
  width:100%;
  clear:both;
  position:static;
  margin:12px 0;
  padding:0;
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.gotic-subscription-workspace{
  display:grid;
  gap:18px;
  width:100%;
  max-width:100%;
}

.gotic-subscription-editor-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  width:100%;
  max-width:100%;
}

.gotic-subscription-section-title{
  margin:22px 0 8px!important;
  color:#0f172a;
  font-size:18px!important;
  line-height:1.5;
}

.gotic-inline-editor summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:54px;
  padding:13px 16px;
  cursor:pointer;
  font-weight:900;
  color:#0f172a;
  background:#f8fafc;
  border-bottom:1px solid transparent;
  list-style:none;
  overflow:hidden;
}

.gotic-inline-editor summary::-webkit-details-marker{
  display:none;
}

.gotic-inline-editor summary:before{
  content:"▸";
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e0f2fe;
  color:#0369a1;
  transform:rotate(180deg);
}

.gotic-inline-editor[open] summary:before{
  transform:rotate(90deg);
}

.gotic-inline-editor[open] summary{
  border-bottom-color:#e2e8f0;
  position:sticky;
  top:0;
  z-index:2;
}

.gotic-inline-editor summary strong{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.6;
}

.gotic-inline-editor summary .gotic-muted{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  max-width:46%;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:6px 10px;
  margin:0;
  line-height:1.5;
}

.gotic-inline-editor:not([open]) > *:not(summary){
  display:none!important;
}

.gotic-inline-editor:not([open]) > form,
.gotic-inline-editor:not([open]) > .inline-form{
  display:none!important;
}

.gotic-inline-editor > form{
  display:block;
  width:100%;
  padding:14px 16px;
  margin:0;
}

.gotic-inline-editor .gotic-form-grid.compact{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
  align-items:end;
  width:100%;
}

.gotic-inline-editor .gotic-form-grid.compact .wide{
  grid-column:1/-1;
}

.gotic-danger-inline{
  display:flex!important;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0;
  padding:12px 16px!important;
  border-top:1px dashed #fecaca;
  background:#fff7f7;
}

.gotic-danger-inline input[name="archive_reason"]{
  min-width:260px;
  max-width:460px;
  flex:1 1 260px;
}

.gotic-check-inline{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin:0!important;
  font-weight:800;
  color:#7f1d1d;
}

.gotic-danger-button{
  border-color:#fecaca!important;
  background:#fee2e2!important;
  color:#991b1b!important;
}

.gotic-danger-button:hover{
  background:#fecaca!important;
  color:#7f1d1d!important;
}

.gotic-table-wrap{
  max-width:100%;
  overflow:auto;
}

.gotic-table-wrap table{
  table-layout:auto;
}

.gotic-table-wrap td,
.gotic-table-wrap th{
  max-width:360px;
  overflow-wrap:anywhere;
  line-height:1.6;
}

.gotic-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 2px;
}

.gotic-pagination button{
  min-width:40px;
  min-height:36px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  cursor:pointer;
}

.gotic-pagination button.active{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
}

.gotic-pagination span{
  color:#64748b;
  font-weight:800;
  padding:0 4px;
}

.gotic-manual-lookup{
  margin:14px 0 0;
  padding:12px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
}

.gotic-manual-lookup input{
  width:100%;
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:9px 12px;
  margin-top:6px;
}

.gotic-login-body{
  min-height:100dvh;
  margin:0;
  direction:rtl;
  text-align:right;
  font-family:Alexandria,Cairo,Tahoma,Arial,sans-serif;
  background:linear-gradient(135deg,#f8fafc,#e0f2fe 52%,#f1f5f9);
  color:#0f172a;
}

.gotic-login-shell{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
}

.gotic-login-card{
  width:min(460px,100%);
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 30px 90px rgba(15,23,42,.14);
  padding:32px;
}

.gotic-login-brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:20px;
}

.gotic-login-brand img,
.gotic-login-brand span{
  width:58px;
  height:58px;
  border-radius:14px;
  object-fit:contain;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.gotic-login-brand strong{
  display:block;
  font-size:20px;
  font-weight:900;
}

.gotic-login-brand small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-weight:700;
}

.gotic-login-form{
  display:grid;
  gap:18px;
  padding:4px;
}

.gotic-login-form label{
  color:#334155;
  font-weight:900;
}

.gotic-login-form input[type="text"],
.gotic-login-form input[type="password"]{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-height:46px;
  margin-top:7px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:10px 12px;
  font-family:inherit;
}

@media(max-width:520px){
  .gotic-login-shell{padding:16px}
  .gotic-login-card{padding:24px 20px}
}

.gotic-login-form .button{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
}

.gotic-login-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.gotic-login-form p{
  margin:4px 0 0;
  color:#64748b;
  line-height:1.8;
  font-size:13px;
}

.gotic-login-error{
  margin:0 0 14px;
  padding:11px 12px;
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#991b1b;
  border-radius:12px;
  font-weight:900;
  line-height:1.7;
}

.gotic-login-reset-link{
  border:0;
  background:transparent;
  color:#075985;
  font:800 13px/1.7 Alexandria,Cairo,Tahoma,Arial,sans-serif;
  cursor:pointer;
  padding:2px 0;
  justify-self:center;
}

.gotic-login-reset-link:hover,
.gotic-login-reset-link:focus-visible{color:#0369a1;text-decoration:underline}

.gotic-reset-layer{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(4px);
}

.gotic-reset-card{
  box-sizing:border-box;
  width:min(500px,100%);
  max-height:calc(100dvh - 40px);
  overflow:auto;
  display:grid;
  gap:16px;
  padding:26px;
  border:1px solid #dbe4ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,23,42,.26);
}

.gotic-reset-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.gotic-reset-head h2{margin:0;color:#0f172a;font-size:22px;letter-spacing:0}
.gotic-reset-head p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.8}
.gotic-reset-close{width:38px;height:38px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:25px;cursor:pointer}
.gotic-reset-stage{display:grid;gap:14px}
.gotic-reset-stage[hidden]{display:none!important}
.gotic-reset-stage label{display:grid;gap:7px;color:#334155;font-weight:900}
.gotic-reset-stage input{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font:700 14px Alexandria,Cairo,Tahoma,Arial,sans-serif;color:#0f172a;background:#fff}
.gotic-reset-primary{min-height:44px;border:0;border-radius:10px;padding:9px 16px;background:#0f172a;color:#fff;font:900 14px Alexandria,Cairo,Tahoma,Arial,sans-serif;cursor:pointer}
.gotic-reset-primary:disabled{opacity:.6;cursor:wait}
.gotic-reset-hint{margin:-4px 0 0;color:#64748b;font-size:12px;line-height:1.7}
.gotic-reset-status{margin:0;padding:11px 12px;border:1px solid #bae6fd;border-radius:10px;background:#f0f9ff;color:#075985;font-size:13px;font-weight:800;line-height:1.8}
.gotic-reset-status.ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.gotic-reset-status.bad{border-color:#fecaca;background:#fef2f2;color:#991b1b}

@media(max-width:520px){
  .gotic-reset-layer{padding:12px}
  .gotic-reset-card{padding:20px;max-height:calc(100dvh - 24px)}
}

.gotic-print-ready{
  border-color:#bbf7d0!important;
  background:linear-gradient(180deg,#f0fdf4,#fff)!important;
}

@media(max-width:760px){
  .gotic-inline-editor summary{
    align-items:flex-start;
    flex-direction:column;
  }
  .gotic-inline-editor summary strong{
    white-space:normal;
  }
  .gotic-inline-editor summary .gotic-muted{
    max-width:100%;
    justify-content:flex-start;
    white-space:normal;
  }
  .gotic-danger-inline input[name="archive_reason"]{
    min-width:0;
    width:100%;
  }
}
