/* ==========================
   PartenoMart - Professional UI
   ========================== */

:root{
  --pm-sidebar-w: 292px;
  --pm-topbar-h: 72px;

  --pm-btn: 42px;
  --pm-radius-sm: 12px;
  --pm-radius-md: 16px;
  --pm-radius-lg: 20px;

  --pm-border-soft: rgba(16,24,40,.10);
  --pm-border-strong: rgba(16,24,40,.14);
  --pm-muted-soft: rgba(16,24,40,.62);

  --pm-shadow-xs: 0 1px 2px rgba(16,24,40,.06);
  --pm-shadow-sm: 0 10px 24px rgba(16,24,40,.06);
  --pm-shadow-md: 0 18px 44px rgba(16,24,40,.10);

  --pm-transition-fast: .16s ease;
  --pm-transition-mid: .24s ease;
}

/* ===== BASE ===== */
html,
body{
  min-height: 100%;
}

body{
  background: var(--pm-bg);
  color: var(--pm-ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a{
  transition: all var(--pm-transition-fast);
}

h1, h2, h3, h4, h5, h6{
  letter-spacing: -0.02em;
}

small{
  font-size: .84rem;
}

/* ===== SHELL ===== */
.pm-shell{
  min-height: 100vh;
  display: flex;
}

/* ===== SIDEBAR ===== */
.pm-sidebar{
  width: var(--pm-sidebar-w);
  flex: 0 0 var(--pm-sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 26%),
    linear-gradient(180deg, #0B2D66 0%, #0A2554 100%);
  color: rgba(255,255,255,.94);
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 8px 0 30px rgba(11,45,102,.08);
}

.pm-sidebar-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
}

.pm-brand{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.pm-brand:hover{
  color: #fff;
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.pm-brand-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 42px;
}

.pm-brand-icon i{
  font-size: 1.2rem;
}

.pm-brand .title{
  font-size: 1.02rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pm-brand .badge{
  display: inline-block;
  margin-left: 6px;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .48rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.14);
  vertical-align: middle;
}

.pm-brand-subtitle{
  margin-top: 4px;
  font-size: .79rem;
  color: rgba(255,255,255,.74);
}

/* ===== NAV ===== */
.pm-nav{
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.pm-nav .section{
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: rgba(255,255,255,.60);
  padding: 12px 10px 6px;
}

.pm-nav a{
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,.90);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  line-height: 1.2;
}

.pm-nav a i{
  width: 18px;
  text-align: center;
  font-size: 1rem;
  opacity: .95;
}

.pm-nav a:hover{
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
  transform: translateX(2px);
}

.pm-nav a.active{
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ===== USER BOX ===== */
.pm-userbox{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.pm-user-meta .line1{
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.pm-user-meta .line2{
  margin-top: 3px;
  font-size: .77rem;
  color: rgba(255,255,255,.74);
}

.pm-logout{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  transition: all var(--pm-transition-fast);
}

.pm-logout:hover{
  color: #fff;
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

/* ===== MAIN ===== */
.pm-main{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */
.pm-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--pm-topbar-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pm-border);
}

.pm-topbar-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

.pm-title{
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pm-ink);
}

.pm-subtitle{
  margin: 2px 0 0;
  font-size: .86rem;
  line-height: 1.2;
  color: var(--pm-muted);
}

.pm-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pm-action-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--pm-border-soft);
  background: #fff;
  color: var(--pm-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pm-shadow-xs);
  transition: all var(--pm-transition-fast);
}

.pm-action-btn:hover{
  color: var(--pm-blue-900);
  border-color: rgba(11,45,102,.22);
  background: #fff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--pm-shadow-sm);
}

/* ===== CONTENT ===== */
.pm-content{
  padding: 22px;
}

/* ===== PUBLIC ===== */
.pm-public-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 28px 0;
}

/* ===== LOGIN ===== */
.pm-login-card{
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: var(--pm-shadow-md);
  border-radius: 24px;
  padding: 28px;
}

.pm-login-head{
  display: flex;
  align-items: center;
  gap: 14px;
}

.pm-login-logo{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0B2D66 0%, #0A2554 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11,45,102,.22);
}

.pm-login-logo i{
  font-size: 1.45rem;
}

.pm-login-title{
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--pm-ink);
}

.pm-login-subtitle{
  color: var(--pm-muted);
  font-size: .92rem;
}

.pm-form-label{
  font-weight: 700;
  color: var(--pm-ink);
  margin-bottom: .45rem;
}

.pm-input{
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--pm-border-soft);
  background: #fff;
  box-shadow: none;
}

.pm-input:focus{
  border-color: rgba(11,45,102,.35);
  box-shadow: 0 0 0 .18rem rgba(11,45,102,.10);
}

.pm-login-btn{
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
}

/* ===== BUTTON PRIMARY ===== */
.btn-pm{
  background: linear-gradient(180deg, #0B2D66 0%, #0A2554 100%);
  border: 1px solid rgba(11,45,102,.14);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(11,45,102,.18);
  font-weight: 800;
  transition: all var(--pm-transition-fast);
}

.btn-pm:hover,
.btn-pm:focus{
  background: linear-gradient(180deg, #103878 0%, #0B2D66 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(11,45,102,.22);
}

/* ===== FLASH ===== */
.pm-flash{
  border-radius: 16px;
  border-width: 1px;
  box-shadow: var(--pm-shadow-xs);
}

/* ===== CARDS ===== */
.pm-card{
  background: var(--pm-surface);
  border-radius: 20px !important;
  border: 1px solid var(--pm-border-soft) !important;
  box-shadow: var(--pm-shadow-sm);
}

/* ===== TYPO ===== */
.pm-h-title{
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.pm-sub{
  font-size: .94rem;
  color: var(--pm-muted) !important;
}

/* ===== CHIPS ===== */
.pm-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: .45rem .8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--pm-border-soft);
  background: #fff;
  color: var(--pm-ink);
  font-weight: 700;
  font-size: .88rem;
  transition: all var(--pm-transition-fast);
}

.pm-chip:hover{
  color: var(--pm-blue-900);
  border-color: rgba(11,45,102,.20);
  transform: translateY(-1px);
  box-shadow: var(--pm-shadow-xs);
}

/* ===== TABLES ===== */
.table{
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > *{
  padding-top: .8rem;
  padding-bottom: .8rem;
  vertical-align: middle;
  border-bottom-color: rgba(16,24,40,.07);
}

.table thead th{
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--pm-muted);
  background: rgba(0,0,0,.012);
}

.table tbody tr{
  transition: background var(--pm-transition-fast);
}

.table tbody tr:hover{
  background: rgba(11,45,102,.025);
}

/* ===== ICON ACTIONS ===== */
.pm-icon-actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: nowrap;
}

.pm-inline-form{
  display: inline-flex;
  margin: 0;
}

.pm-icon-btn{
  width: var(--pm-btn);
  height: var(--pm-btn);
  border-radius: 50%;
  border: 1px solid var(--pm-border-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--pm-shadow-xs);
  transition: all var(--pm-transition-fast);
}

.pm-icon-btn i{
  font-size: 1rem;
  line-height: 1;
}

.pm-icon-btn:hover{
  transform: translateY(-1px) scale(1.04);
  box-shadow: var(--pm-shadow-sm);
}

.pm-icon-btn:active{
  transform: translateY(0) scale(.98);
}

.pm-icon-btn--dark{
  color: #101828;
}

.pm-icon-btn--dark:hover{
  color: #0B2D66;
  border-color: rgba(11,45,102,.24);
}

.pm-icon-btn--muted{
  color: #475467;
}

.pm-icon-btn--muted:hover{
  color: #0B2D66;
  border-color: rgba(11,45,102,.24);
}

.pm-icon-btn--danger{
  color: #dc2626;
  border-color: rgba(220,38,38,.28);
}

.pm-icon-btn--danger:hover{
  background: rgba(220,38,38,.05);
  color: #b91c1c;
}

.pm-icon-btn--success{
  color: #fff;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #16a34a;
  box-shadow: 0 10px 22px rgba(22,163,74,.22);
}

.pm-icon-btn--success:hover{
  color: #fff;
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(22,163,74,.28);
}

/* ===== MODAL ===== */
.modal-content{
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16,24,40,.18);
}

.modal-header{
  border-bottom-color: rgba(16,24,40,.08);
  padding: 1rem 1.2rem;
}

.modal-footer{
  border-top-color: rgba(16,24,40,.08);
  padding: 1rem 1.2rem;
}

.modal-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ===== FILE UPLOAD PREVIEW ===== */
.pm-file-upload{
  width: 100%;
}

.pm-preview-list{
  display: grid;
  gap: 10px;
}

.pm-preview-item{
  border: 1px solid rgba(16,24,40,.10);
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  box-shadow: var(--pm-shadow-xs);
}

.pm-preview-thumb{
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pm-preview-thumb i{
  font-size: 1.35rem;
  color: var(--pm-blue-900);
}

.pm-preview-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-preview-name{
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.2;
  word-break: break-word;
  color: var(--pm-ink);
}

.pm-preview-meta{
  margin-top: 4px;
  font-size: .79rem;
  color: var(--pm-muted);
}

/* ===== DETAIL PAGE ===== */
.pm-detail-block{
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 14px 16px;
  height: 100%;
}

.pm-detail-label{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pm-muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.pm-detail-value{
  font-size: 1rem;
  font-weight: 800;
  color: var(--pm-ink);
  line-height: 1.25;
}

.pm-detail-sub{
  margin-top: 4px;
  font-size: .88rem;
  color: var(--pm-muted);
}

.pm-detail-text{
  font-size: .95rem;
  line-height: 1.6;
  color: var(--pm-ink);
  white-space: pre-wrap;
}

.pm-attachments-grid{
  display: grid;
  gap: 12px;
}

.pm-attachment-card{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  color: inherit;
  box-shadow: var(--pm-shadow-xs);
  transition: all var(--pm-transition-fast);
  overflow: hidden;
  min-width: 0;
}

.pm-attachment-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--pm-shadow-sm);
  border-color: rgba(11,45,102,.18);
}

.pm-attachment-thumb{
  width: 84px;
  height: 84px;
  min-width: 84px;
  max-width: 84px;
  min-height: 84px;
  max-height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.08);
  background: rgba(16,24,40,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.pm-attachment-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.pm-attachment-thumb i{
  font-size: 1.5rem;
  color: var(--pm-blue-900);
}

.pm-attachment-body{
  min-width: 0;
  overflow: hidden;
}

.pm-attachment-name{
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pm-attachment-meta{
  margin-top: 4px;
  font-size: .8rem;
  color: var(--pm-muted);
  overflow-wrap: anywhere;
}

/* ===== OFFCANVAS ===== */
.pm-offcanvas{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 26%),
    linear-gradient(180deg, #0B2D66 0%, #0A2554 100%);
  color: #fff;
}

.pm-offcanvas .offcanvas-header{
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pm-offcanvas .btn-close{
  filter: invert(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px){
  .pm-content{
    padding: 16px;
  }

  .pm-topbar-inner{
    padding: 0 14px;
  }

  .pm-login-card{
    padding: 22px;
    border-radius: 20px;
  }

  .pm-attachment-card{
    grid-template-columns: 72px 1fr;
  }

  .pm-attachment-thumb{
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    min-height: 72px;
    max-height: 72px;
  }

/* ==========================================
   DETAIL TICKET - PREMIUM REFINEMENT
   ========================================== */

.pm-page-title{
  margin: 0;
  font-size: clamp(1.7rem, 2.1vw, 2.25rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--pm-ink);
}

.pm-page-subtitle{
  margin-top: 6px;
  font-size: .95rem;
  color: var(--pm-muted);
}

.pm-btn-ghost{
  min-height: 44px;
  border-radius: 14px;
  font-weight: 700;
}

.pm-section-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pm-section-title{
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--pm-ink);
}

.pm-section-subtitle{
  font-size: .9rem;
  color: var(--pm-muted);
}

.pm-detail-hero{
  height: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11,45,102,.03) 0%, rgba(11,45,102,.01) 100%);
  border: 1px solid rgba(16,24,40,.06);
}

.pm-detail-value-text{
  font-size: 1rem;
  font-weight: 800;
  color: var(--pm-ink);
  line-height: 1.25;
}

.pm-detail-block{
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(16,24,40,.08);
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(16,24,40,.04);
  transition: transform var(--pm-transition-fast), box-shadow var(--pm-transition-fast), border-color var(--pm-transition-fast);
}

.pm-detail-block:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16,24,40,.06);
  border-color: rgba(11,45,102,.14);
}

.pm-detail-block--soft{
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
}

.pm-detail-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pm-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.pm-detail-value{
  font-size: 1rem;
  font-weight: 900;
  color: var(--pm-ink);
  line-height: 1.25;
  word-break: break-word;
}

.pm-detail-sub{
  margin-top: 6px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--pm-muted);
  word-break: break-word;
}

.pm-note-card{
  height: 100%;
}

.pm-note-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16,24,40,.08);
}

.pm-note-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  box-shadow: var(--pm-shadow-xs);
}

.pm-note-card--client .pm-note-icon{
  background: linear-gradient(180deg, rgba(11,45,102,.10) 0%, rgba(11,45,102,.06) 100%);
  color: #0B2D66;
}

.pm-note-card--maint .pm-note-icon{
  background: linear-gradient(180deg, rgba(34,197,94,.14) 0%, rgba(22,163,74,.08) 100%);
  color: #15803d;
}

.pm-note-title{
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pm-ink);
  line-height: 1.1;
}

.pm-note-subtitle{
  margin-top: 3px;
  font-size: .86rem;
  color: var(--pm-muted);
  line-height: 1.3;
}

.pm-note-body{
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
  padding: 16px 18px;
  min-height: 190px;
}

.pm-note-text{
  font-size: .96rem;
  line-height: 1.72;
  color: var(--pm-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.pm-note-text ul,
.pm-note-text ol{
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.pm-note-text li + li{
  margin-top: 4px;
}

.pm-note-empty{
  font-size: .94rem;
  color: var(--pm-muted);
  line-height: 1.55;
  font-style: italic;
}

.pm-attachments-grid{
  display: grid;
  gap: 12px;
}

.pm-attachment-card{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  color: inherit;
  box-shadow: var(--pm-shadow-xs);
  transition: all var(--pm-transition-fast);
  overflow: hidden;
  min-width: 0;
}

.pm-attachment-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--pm-shadow-sm);
  border-color: rgba(11,45,102,.18);
}

.pm-attachment-thumb{
  width: 84px;
  height: 84px;
  min-width: 84px;
  max-width: 84px;
  min-height: 84px;
  max-height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.08);
  background: rgba(16,24,40,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.pm-attachment-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.pm-attachment-thumb i{
  font-size: 1.5rem;
  color: var(--pm-blue-900);
}

.pm-attachment-body{
  min-width: 0;
  overflow: hidden;
}

.pm-attachment-name{
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pm-attachment-meta{
  margin-top: 4px;
  font-size: .8rem;
  color: var(--pm-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px){
  .pm-note-body{
    min-height: 150px;
  }

  .pm-attachment-card{
    grid-template-columns: 72px 1fr;
  }

  .pm-attachment-thumb{
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    min-height: 72px;
    max-height: 72px;
  }
}

.pm-timeline {
  position: relative;
  margin-top: .5rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(15, 23, 42, .10);
}

.pm-timeline-item {
  position: relative;
  padding: 0 0 1.15rem 0;
  margin: 0 0 1.15rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.pm-timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pm-timeline-dot {
  position: absolute;
  left: -1.72rem;
  top: .35rem;
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .14);
}

.pm-timeline-content {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}

.pm-timeline-meta {
  font-size: .76rem;
  color: #6c757d;
  line-height: 1.35;
}

.pm-timeline-title {
  font-size: .92rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.pm-timeline-text {
  font-size: .88rem;
  color: #212529;
  line-height: 1.5;
  white-space: pre-line;
}

.pm-timeline-meta-extra {
  font-size: .78rem;
  color: #6c757d;
  line-height: 1.4;
  padding-top: .15rem;
}

}
/* ===== TIMELINE TICKET ===== */
.pm-card .pm-timeline {
  position: relative;
  margin-top: .5rem;
  padding-left: 1.4rem;
  border-left: 2px solid #e2e8f0;
}

.pm-card .pm-timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
}

.pm-card .pm-timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pm-card .pm-timeline-dot {
  position: absolute;
  left: -1.8rem;
  top: .3rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #1d4ed8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}

.pm-card .pm-timeline-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.pm-card .pm-timeline-meta {
  font-size: .74rem !important;
  color: #94a3b8 !important;
  line-height: 1.3;
}

.pm-card .pm-timeline-title {
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35;
}

.pm-card .pm-timeline-text {
  font-size: .85rem !important;
  color: #475569 !important;
  line-height: 1.5;
  white-space: pre-line;
}

.pm-card .pm-timeline-meta-extra {
  font-size: .76rem !important;
  color: #94a3b8 !important;
  line-height: 1.4;
}
