/* ---------- COLORS  ---------- */
/* Brand primary: black (replaces former blue #1864F2). */
/* ---------- FONTS  ---------- */
/* Expiry & reminders panel + Expiry date settings modal.
   Loaded from index.html - Blazor .razor.css isolation is not included in this app. */
/* ---------- Panel ---------- */
.document-expiry {
  margin-top: 1.5rem;
}
.document-expiry--embedded {
  margin-top: 0;
}
.document-expiry__header-action {
  margin-left: auto;
}
.document-expiry__rule {
  border: 0;
  border-top: 1px solid #aaa;
  margin: 0 0 0.75rem;
}
.document-expiry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.document-expiry__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.document-expiry__card {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #DADEE5;
  background: #FFFFFF;
}
.document-expiry__card--primary {
  border-color: #C5CCD6;
  background: #F8F9FC;
}
.document-expiry__card--primary .document-expiry__chip {
  background: #FFFFFF;
  border-color: #E3E6E9;
}
.document-expiry__card-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 8px 10px 10px;
}
.document-expiry__label {
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.document-expiry__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #131315;
}
.document-expiry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6b7280;
}
.document-expiry__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #F8F9FC;
  background: #F8F9FC;
  color: #1B1B1E;
  font-size: 12px;
  font-weight: 500;
}
.document-expiry__action {
  flex: none;
  align-self: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  padding: 0;
  border: 1px solid #1B1B1E;
  border-radius: 0;
  background: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.document-expiry__action:disabled {
  opacity: 0.5;
  cursor: default;
}
.document-expiry__footer {
  margin-top: 0.75rem;
}

/* ---------- Modal (from Serusi Expiry Notifications template) ---------- */
.modal-wrap:has(.exp-modal) {
  padding: 24px 20px;
  align-items: center;
}

.modal-wrap.active .exp-modal {
  width: 720px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(20, 24, 31, 0.28);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  height: auto !important;
}

.exp-modal__mhead {
  display: flex;
  align-items: flex-start;
  padding: 28px 32px 0;
}
.exp-modal__mhead h1 {
  font: 500 28px/1.2 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: #131315;
}
.exp-modal__sub {
  font: 400 13px/1.5 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  margin: 6px 0 0;
}
.exp-modal__xbtn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #6F767E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.exp-modal__xbtn:hover {
  background: #F5F7F9;
  color: #131315;
}
.exp-modal__tabs {
  display: flex;
  gap: 0;
  padding: 22px 32px 0;
  border-bottom: 1px solid #E3E6E9;
}
.exp-modal__tab {
  font: 500 14px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  padding: 10px 0 12px;
  margin-right: 26px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}
.exp-modal__tab:hover {
  color: #1A1D1F;
}
.exp-modal__tab.on {
  color: #131315;
  font-weight: 600;
}
.exp-modal__tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #131315;
}
.exp-modal__n {
  font: 600 11px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  background: #EEF1F4;
  color: #3C4247;
  border-radius: 999px;
  padding: 3px 6px;
}
.exp-modal__body {
  padding: 24px 32px 8px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.exp-modal__lbl {
  font: 600 15px/1.3 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  display: block;
  margin: 0 0 7px;
  color: #131315;
}
.exp-modal__hint {
  font: 400 12.5px/1.5 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  margin: 6px 0 0;
}
.exp-modal__err {
  font: 400 12.5px/1.4 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #FA4D56;
  margin: 0;
}
.exp-modal__input,
.exp-modal input[type=text],
.exp-modal input[type=number] {
  font: 400 15px/1.3 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #23282C;
  border: 1px solid #DADEE5;
  border-radius: 2px;
  padding: 11px 12px;
  width: 100%;
  background: #FFFFFF;
  outline: none;
  box-sizing: border-box;
}
.exp-modal__input:focus,
.exp-modal input[type=text]:focus,
.exp-modal input[type=number]:focus {
  border-color: #131315;
}
.exp-modal__dim {
  opacity: 0.5;
  pointer-events: none;
}
.exp-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-modal__chip {
  font: 500 13px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  border: 1px solid #DADEE5;
  background: #FFFFFF;
  color: #3C4247;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exp-modal__chip:hover {
  border-color: #B4BAC2;
}
.exp-modal__chip.on {
  background: #131315;
  border-color: #131315;
  color: #FFFFFF;
}
.exp-modal__chip.add {
  border-style: dashed;
  color: #6F767E;
}
.exp-modal__chip input {
  width: 52px;
  border: none;
  padding: 0;
  font: 500 13px "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  background: transparent;
  outline: none;
  color: inherit;
}
.exp-modal__rcpt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-modal__rrow {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #E3E6E9;
  border-radius: 4px;
  padding: 10px 12px;
}
.exp-modal__av {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #EEF1F4;
  color: #3C4247;
  font: 600 11px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.exp-modal__rname {
  font: 500 14px/1.3 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
}
.exp-modal__rmeta {
  font: 400 12px/1.3 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
}
.exp-modal__owner-check {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  cursor: pointer;
}
.exp-modal__ico {
  border: none;
  background: none;
  color: #9299A6;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-left: auto;
}
.exp-modal__ico:hover {
  color: #FA4D56;
  background: #F5F7F9;
}
.exp-modal__addrow {
  display: flex;
  gap: 8px;
}
.exp-modal__addrow .exp-modal__input,
.exp-modal__addrow input {
  flex: 1;
}
.exp-modal__search {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.exp-modal__search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.exp-modal__search-field .exp-modal__input {
  width: 100%;
  padding-right: 36px;
}
.exp-modal__search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #9299A6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 0;
}
.exp-modal__search-clear:hover {
  color: #131315;
  background: #F5F7F9;
}
.exp-modal__tag {
  display: inline-block;
  margin-left: 6px;
  font: 500 10px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  background: #EEF1F4;
  border-radius: 999px;
  padding: 3px 6px;
  vertical-align: middle;
}
.exp-modal__picker {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid #E3E6E9;
  border-radius: 4px;
  max-height: 180px;
  overflow: auto;
}
.exp-modal__picker-item {
  width: 100%;
  text-align: left;
  border: none;
  background: #FFFFFF;
  padding: 10px 12px;
  cursor: pointer;
  font: 500 13px/1.3 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #131315;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.exp-modal__picker-item span {
  color: #6F767E;
  font-weight: 400;
}
.exp-modal__picker-item:hover {
  background: #F5F7F9;
}
.exp-modal__btn {
  font: 600 15px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  border-radius: 2px;
  padding: 13px 20px;
  cursor: pointer;
  border: 1px solid transparent;
}
.exp-modal__btn--p {
  background: #131315;
  color: #FFFFFF;
}
.exp-modal__btn--p:hover:not(:disabled) {
  background: #000000;
}
.exp-modal__btn--o {
  background: #FFFFFF;
  color: #131315;
  border-color: #DADEE5;
  padding: 11px 16px;
}
.exp-modal__btn--o:hover:not(:disabled) {
  border-color: #131315;
}
.exp-modal__btn--g {
  background: none;
  color: #131315;
  border: none;
}
.exp-modal__btn--g:hover:not(:disabled) {
  background: #F5F7F9;
}
.exp-modal__btn:disabled {
  background: #EEF1F4;
  color: #9299A6;
  cursor: not-allowed;
  border-color: transparent;
}
.exp-modal__tl {
  border: 1px solid #E3E6E9;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 16px;
}
.exp-modal__tl h4 {
  font: 600 13px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  margin: 0 0 12px;
  color: #1A1D1F;
}
.exp-modal__tlrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 13px/1.4 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #3C4247;
  padding: 6px 0;
}
.exp-modal__tlrow.end .exp-modal__pt {
  background: #FA4D56;
}
.exp-modal__dt {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #6F767E;
  width: 96px;
  flex: none;
}
.exp-modal__pt {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #131315;
  flex: none;
}
.exp-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.exp-modal__check.on .exp-modal__bx {
  background: #131315;
  border-color: #131315;
}
.exp-modal__bx {
  width: 18px;
  height: 18px;
  border: 1px solid #DADEE5;
  border-radius: 2px;
  flex: none;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}
.exp-modal__ct {
  font: 400 14px/1.4 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #23282C;
  display: block;
}
.exp-modal__cd {
  font: 400 12.5px/1.4 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  display: block;
  margin-top: 2px;
}
.exp-modal__opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-modal__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 32px 28px;
  border-top: 1px solid #EDEFF1;
  margin-top: 8px;
}
.exp-modal__st {
  font: 400 12.5px/1.4 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: #6F767E;
  margin-right: auto;
}
.exp-modal__toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: #131315;
  color: #FFFFFF;
  font: 500 14px/1 "Inter", sans-serif, -apple-system, "Segoe UI", sans-serif;
  padding: 14px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(20, 24, 31, 0.2);
  z-index: 10150;
}

.modal-wrap:has(.exp-modal) ~ .flatpickr-calendar,
.flatpickr-calendar {
  z-index: 10100;
}

/*# sourceMappingURL=document-expiry.css.map */
