/* =============================================
   DESIGN SYSTEM - PREMIUM MODERN COLORS
   ============================================= */

:root {
  /* Primary Palette */
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-ultra-light: #f0f9ff;

  /* Neutral Palette */
  --ink-main: #0f172a;
  --ink-secondary: #334155;
  --ink-soft: #64748b;
  --ink-lighter: #cbd5e1;

  /* Semantic Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-ultra: #f0fdf4;

  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-ultra: #fffbf0;

  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-ultra: #fef2f2;

  --info: #06b6d4;
  --info-light: #cffafe;

  /* Backgrounds */
  --bg-main: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;

  /* Surfaces */
  --surface-primary: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;

  /* Borders */
  --border-light: #e2e8f0;
  --border-default: #cbd5e1;
  --border-dark: #94a3b8;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-main);
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  min-height: 100vh;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink-main);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ink-main);
}

h3 {
  font-size: 1.25rem;
  color: var(--ink-main);
}

h4 {
  font-size: 1.1rem;
  color: var(--ink-secondary);
}

p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.text-muted {
  color: var(--ink-soft) !important;
}

/* =============================================
   NAVBAR / TOPBAR
   ============================================= */

.topbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f8fafc;
  transition: var(--transition-fast);
}

.brand-wrap:hover {
  opacity: 0.9;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.nav-chip.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(167, 139, 250, 0.15));
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-chip.nav-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}

.nav-chip.nav-danger:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.5);
}

/* =============================================
   CONTAINERS & LAYOUTS
   ============================================= */

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
}

main {
  padding: 2rem 1rem;
}

@media (min-width: 992px) {
  main {
    padding: 3rem 0;
  }
}

/* =============================================
   CARDS & PANELS
   ============================================= */

.card,
.technical-card,
.hero-card,
.list-panel,
.metric-card,
.feature-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover,
.technical-card:hover,
.metric-card:hover,
.feature-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header,
.technical-card .card-header,
.list-panel-header {
  background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-tertiary) 100%);
  border-bottom: 1px solid var(--border-light);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 1.25rem;
  font-weight: 600;
  color: var(--ink-main);
}

.card-body {
  padding: 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card .btn {
  font-weight: 600;
}

.metric-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.metric-subtitle {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* =============================================
   SOFT BLOCKS
   ============================================= */

.soft-block {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-secondary);
  padding: 1rem;
  transition: var(--transition-fast);
}

.soft-block:hover {
  border-color: var(--primary-light);
  background: var(--primary-ultra-light);
}

.soft-block-success {
  background: var(--success-ultra);
  border-color: var(--success-light);
}

.soft-block-success:hover {
  background: var(--success-light);
}

.soft-block-warning {
  background: var(--warning-ultra);
  border-color: var(--warning-light);
}

.soft-block-warning:hover {
  background: var(--warning-light);
}

.soft-block-danger {
  background: var(--danger-ultra);
  border-color: var(--danger-light);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.65rem 1.5rem;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-secondary);
  color: var(--ink-main);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--surface-tertiary);
  border-color: var(--primary);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   FORMS
   ============================================= */

.form-control,
.form-select,
textarea {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-primary);
  color: var(--ink-main);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--surface-primary);
  color: var(--ink-main);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--ink-soft);
}

.form-label {
  font-weight: 600;
  color: var(--ink-main);
  margin-bottom: 0.5rem;
}

.input-group-text {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  color: var(--ink-soft);
}

/* =============================================
   STATUS PILLS & BADGES
   ============================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--surface-secondary);
  color: var(--ink-soft);
  border: 1px solid var(--border-light);
}

.status-pill.info {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: transparent;
}

.status-pill.success {
  background: var(--success-light);
  color: var(--success);
  border-color: transparent;
}

.status-pill.warning {
  background: var(--warning-light);
  color: var(--warning);
  border-color: transparent;
}

.status-pill.danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: transparent;
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
  border-radius: var(--radius-lg);
  border: 1px solid;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  animation: slideIn 0.3s ease-out;
}

.alert-info {
  background: var(--primary-ultra-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.alert-success {
  background: var(--success-ultra);
  border-color: var(--success-light);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-ultra);
  border-color: var(--warning-light);
  color: var(--warning);
}

.alert-danger {
  background: var(--danger-ultra);
  border-color: var(--danger-light);
  color: var(--danger);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* =============================================
   TABLES
   ============================================= */

.table {
  border-collapse: collapse;
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 1rem 0.75rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-hover > tbody > tr:hover {
  background: var(--surface-secondary);
  cursor: pointer;
}

.table thead {
  background: var(--surface-secondary);
  font-weight: 700;
  color: var(--ink-main);
  border-bottom: 1px solid var(--border-default);
}

/* =============================================
   UTILITIES
   ============================================= */

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.shadow-none {
  box-shadow: none !important;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.fw-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.75rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 767.98px) {
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .metric-value {
    font-size: 1.75rem;
  }

  .card,
  .metric-card {
    margin-bottom: 1rem;
  }
}

/* =============================================
   LOADING & SKELETON
   ============================================= */

.skeleton {
  background: linear-gradient(90deg, var(--surface-secondary) 0%, var(--surface-tertiary) 50%, var(--surface-secondary) 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =============================================
   DASHBOARD STAT CARDS - COLORFUL
   ============================================= */

.stat-card {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0.05;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

.stat-card-blue::before {
  background: #3b82f6;
}

.stat-card-purple::before {
  background: #a855f7;
}

.stat-card-green::before {
  background: #10b981;
}

.stat-card-orange::before {
  background: #f59e0b;
}

.stat-card .metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-card .metric-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.opacity-10 {
  opacity: 0.1;
}

/* =============================================
   ADMIN DASHBOARD RESPONSIVE
   ============================================= */

@media (max-width: 575.98px) {
  .stat-card .metric-value {
    font-size: 1.5rem;
  }

  .stat-card .metric-label {
    font-size: 0.65rem;
  }

  .stat-card .display-1 {
    font-size: 2rem;
  }
}
/* =============================================
   TABLE STYLING - MODERNIZED DATA TABLES
   ============================================= */

.table {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.table thead th {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  padding: 1rem 0.75rem;
  white-space: nowrap;
}

.table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.table tbody tr:hover {
  background-color: #f0f9ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
  color: var(--ink-secondary);
}

.table tbody tr td small {
  line-height: 1.5;
}

.table-light {
  background-color: #f8fafc !important;
}

/* Badge Styling in Tables */
.table .badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  display: inline-block;
}

/* Icon Styling in Tables */
.table th i,
.table td i {
  opacity: 0.75;
  font-size: 0.9rem;
}

.table tbody tr:hover i {
  opacity: 1;
}

/* Empty State Styling */
.table tbody tr td i.ri-folder-open-line,
.table tbody tr td i.ri-inbox-line {
  font-size: 1.75rem;
}

/* Responsive Table Behavior */
@media (max-width: 991.98px) {
  .table {
    font-size: 0.85rem;
  }

  .table thead th {
    padding: 0.7rem 0.5rem;
    font-size: 0.65rem;
  }

  .table tbody td {
    padding: 0.8rem 0.5rem;
  }

  .table thead th i,
  .table tbody td i {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .table {
    font-size: 0.8rem;
  }

  .table thead th {
    padding: 0.6rem 0.4rem;
    font-size: 0.6rem;
  }

  .table tbody td {
    padding: 0.7rem 0.4rem;
  }

  .table th i,
  .table td i {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
  }
}

/* Card Headers with Icons */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header i {
  font-size: 1.25rem;
  opacity: 0.9;
}

.card-header h6 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* =============================================
   TRANSFER DASHBOARD / SHARING UI ENHANCEMENTS
   ============================================= */

.section-context-note {
  color: #6b452f !important;
  font-weight: 600;
}

.access-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.access-tablist .nav-item {
  margin: 0;
}

.access-tab-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.65rem 1.1rem !important;
  border-radius: 999px !important;
  border: 1px solid #efc2a1 !important;
  background: linear-gradient(180deg, #fffaf7 0%, #fff1e8 100%) !important;
  color: #8a4c23 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(197, 113, 45, 0.08);
}

.access-tab-button:hover {
  border-color: #e79a66 !important;
  background: linear-gradient(180deg, #fff3eb 0%, #ffe6d2 100%) !important;
  color: #7b3f18 !important;
}

.access-tab-button.active,
.access-tab-button.show {
  border-color: transparent !important;
  background: linear-gradient(135deg, #f07a2f 0%, #f59e0b 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(240, 122, 47, 0.26) !important;
}

.access-tab-button .badge {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #8a4c23 !important;
  font-weight: 800;
}

.access-tab-button.active .badge,
.access-tab-button.show .badge {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #9b4d1f !important;
}

.sharing-admin-summary .soft-block {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sharing-admin-summary .fw-semibold {
  font-size: 1.3rem;
  color: #2d1c12;
}

.sharing-admin-table tbody td {
  vertical-align: top;
}

.sharing-admin-table .status-pill {
  align-self: flex-start;
}

.file-sharing-layout > [class*="col-"] {
  display: flex;
}

.file-sharing-layout > [class*="col-"] > .soft-block {
  width: 100%;
}

.internal-share-column .soft-block,
.public-share-column .soft-block,
.retention-column .soft-block {
  min-height: 100%;
}

.share-actions-stack {
  display: grid;
  gap: 1rem;
  height: 100%;
}

.internal-share-card,
.public-share-card {
  min-height: 0;
}

.internal-recipient-summary {
  border: 1px solid #d7e5db;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f7fffa 0%, #f0faf4 100%);
  padding: 0.8rem 0.9rem;
}

.internal-recipient-summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c6a57;
  margin-bottom: 0.4rem;
}

.internal-recipient-selected {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d8e5dd;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: #46624f;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.internal-recipient-selected.has-selection {
  color: #234533;
  background: #f8fffb;
}

.internal-recipient-selected.selection-required {
  border-color: #ef4444;
  background: #fff5f5;
}

.internal-recipient-picker {
  min-height: 13rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #cfe0d3;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
}

.internal-recipient-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}

.internal-recipient-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid #dbe7ef;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.72rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  color: #2f261e;
  box-shadow: 0 2px 8px rgba(24, 52, 34, 0.05);
  transition: 0.16s ease;
  min-height: 6rem;
}

.internal-recipient-card:hover {
  border-color: #6cb58a;
  background: #f6fff8;
  transform: translateY(-1px);
}

.internal-recipient-card.selected {
  border-color: #2f855a;
  background: linear-gradient(135deg, #ebfff1 0%, #f9fffb 100%);
  box-shadow: 0 0 0 2px rgba(47, 133, 90, 0.12);
}

.internal-recipient-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
  white-space: normal;
}

.internal-recipient-card-meta {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #4b5563;
  white-space: normal;
  word-break: break-word;
}

.internal-recipient-card-groups {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.internal-recipient-empty {
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  background: #fcfcfd;
}

.internal-recipient-status {
  color: #6b452f !important;
  font-weight: 600;
}

.share-form-note {
  color: #5c3d2a !important;
  font-weight: 500;
}

@media (max-width: 1199.98px) {
  .internal-recipient-picker {
    min-height: 15rem;
    max-height: 18rem;
  }
}

@media (max-width: 991.98px) {
  .internal-recipient-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .access-tab-button {
    width: 100%;
    justify-content: space-between;
  }

  .sharing-admin-summary .soft-block {
    min-height: auto;
  }
}
